Share » Forums » Install & configuration » Can someone explain me the template...

Can someone explain me the template organization ?

Can someone explain me the template organization ?

Friday 03 January 2003 4:58:48 am - 5 replies

Author Message

Alexandre Cunha

Friday 03 January 2003 1:07:37 pm

> First try the dir /design/user/override/templates - there
> you find files beginning with pagelayout_... - these are the
> templates for secctions e.g pagelayout_design_3.tpl is for
> news24 section. Look at all the files in this dir - that's
> all.
> Rafa³ Chmielewski

Ok, i can understand this:

news24 is template pagelayout_section_3.tpl
forum - pagelayout_section_4.tpl
mycompany - pagelayout_section_6.tpl
intranet - pagelayout_section_7.tpl
etc ...

So, where i can associate the content with templates ?
Example, i want use pagelayout_section_4.tpl for section news24. Where i need change ?

axel

http://AlexandreCunha.com

Richard Wood

Friday 03 January 2003 4:17:21 pm

> > Can someone explain me the template organization of the
> html
> > templates included on ezP3 beta examples ?
> > I see 2 dirs: design/standard and design/user.
> > But no understand where I begin. How setup on ezP3 a new
> > template ? Where is the main template inside this folders
> ?
> > the specific template for news, the specific template
> for
> > shop, etc ..
> First try the dir /design/user/override/templates - there
> you find files beginning with pagelayout_... - these are the
> templates for secctions e.g pagelayout_design_3.tpl is for
> news24 section. Look at all the files in this dir - that's
> all.
> Rafa³ Chmielewski

The main user template is:
/design/user/templates/pagelayout.tpl
The idea it seems is to use the override templates for specific sections when they vary from the main one. I simply deleted all the override ones but made a copy of the news one as the main one only as I wanted totally consistent frame look and my site is relatively simple.
You can vary the main content within the frame by changing the files in:
/design/user/override/templates/node/view
full_class_n means a single item view of class n.
line_class_n means a list view of class n.
You set up the classes in the admin section where they are ascribed a number.
As yet no one has answered my question on this forum yet on how to do a simple include file in a tpl file. This would otherwise provide for a consistent look across different override templates if you go down that path. If you or anyone else knows how to do this then please advise.
Richard.

Richard Wood

Friday 03 January 2003 4:19:01 pm

> > Can someone explain me the template organization of the
> html
> > templates included on ezP3 beta examples ?
> > I see 2 dirs: design/standard and design/user.
> > But no understand where I begin. How setup on ezP3 a new
> > template ? Where is the main template inside this folders
> ?
> > the specific template for news, the specific template
> for
> > shop, etc ..
> First try the dir /design/user/override/templates - there
> you find files beginning with pagelayout_... - these are the
> templates for secctions e.g pagelayout_design_3.tpl is for
> news24 section. Look at all the files in this dir - that's
> all.
> Rafa³ Chmielewski

The main user template is:
/design/user/templates/pagelayout.tpl
The idea it seems is to use the override templates for specific sections when they vary from the main one. I simply deleted all the override ones but made a copy of the news one as the main one only as I wanted totally consistent frame look and my site is relatively simple.
You can vary the main content within the frame by changing the files in:
/design/user/override/templates/node/view
full_class_n means a single item view of class n.
line_class_n means a list view of class n.
You set up the classes in the admin section where they are ascribed a number.
As yet no one has answered my question on this forum yet on how to do a simple include file in a tpl file. This would otherwise provide for a consistent look across different override templates if you go down that path. If you or anyone else knows how to do this then please advise.
Richard.

Alexei Pechekhonov

Saturday 04 January 2003 6:45:01 am

> As yet no one has answered my question on this forum yet on
> how to do a simple include file in a tpl file. This would
> otherwise provide for a consistent look across different
> override templates if you go down that path. If you or
> anyone else knows how to do this then please advise.
> Richard.
http://sdk.ez.no/sdk/eztemplate/view/function_include/
and see code at lib/eztemplate/sdk/templates/include.tpl
I hope it's help :)
Cheers...
Alexei

Richard Wood

Saturday 04 January 2003 5:48:33 pm

> > As yet no one has answered my question on this forum yet
> on
> > how to do a simple include file in a tpl file. This
> would
> > otherwise provide for a consistent look across different
> > override templates if you go down that path. If you or
> > anyone else knows how to do this then please advise.
> > Richard.
> http://sdk.ez.no/sdk/eztemplate/view/function_include/
> and see code at lib/eztemplate/sdk/templates/include.tpl
> I hope it's help :)
> Cheers...
> Alexei

Thanks for pointing me to the that directory. I had looked at http://sdk.ez.no/sdk/eztemplate/view/function_include/ but it had no examples so I just figured the documentation was incomplete!
I hadn't clicked that that page was pointing people to look at lib/eztemplate/sdk/templates/include.tpl. There's other template examples in that directory to look at as well.
So for other beginners a simple template include file statement, that allows you to put your header in a common file for your various templates is
{include uri="design/user/templates/pagelayout_section_header.tpl" name="commonheader"} and yes the forward slashes will work on a windows implementation.
Richard

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu