Forums / Setup & design / show always full.tpl ...

show always full.tpl ...

Author Message

mario feichtinger

Friday 16 May 2003 2:25:09 am

hello!
i'm new to ezpublish. now i have a problem with templates.
my pagelayout.tpl shows always the full.tpl (from the standard design) and also line_class_2.tpl.
line_class_2.tpl is ok but not full.tpl.
please help me. i can't figure it out.
thanks

mario

Jo Henrik Endrerud

Friday 16 May 2003 3:00:45 am

When you are accessing an url like /content/view/full/2 eZ publish will use the template full.tpl (in templates/node/view/ in your design directory). This is decided by the third item in your url. If you wish to use a different template you can either modify this file or create a new one and change the url's accessing the different parts of your site.

In addition, you can create override templates to have templates only for spesific classes, nodes, sections and so on. These are located in your override/templates/.... in your design directory. Look at this thread: http://www.ez.no/developer/ez_publish_3/forum/setup_design/directory_structure_explained for more information about override templates and so on.

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

mario feichtinger

Friday 16 May 2003 3:58:56 am

i have already made the templates for my classes in design/mydesign/override/templates/node/view/.
for a list i have line_class_2.tpl, for my news class i have full_class_2.tpl.
but pagelayout show above full.tpl (from the standard design) and under full.tpl my line_class_2.tpl. and this on one page.

### pagelayout.tpl ###
content of pagelayout

### standard full.tpl ###
Aktuelles

Name
Aktuelles

Description

Aktuelles der spö


Name Class Section
### spoe line_class_2.tpl ###

2003.05.15 aktuelles zum erstenasdf lasdflö klöasdf klöasdfkl löjsdaföjlasdfjlk dsfa asdf
...weiter Aktuelles 1
### spoe line_class_2.tpl ###

2003.05.16 Aktuelles zum zweitenasdf asfd sadf sdaf dasf sadf sdaf sdfa sdaf
...weiter Aktuelles 1

Karsten Jennissen

Friday 16 May 2003 4:38:14 am

Did you disable cache or clear cache?

mario feichtinger

Friday 16 May 2003 4:49:12 am

yes.

if i create an full.tpl in my directory design/mydesign/templates/node/view/ the pagelayout.tpl show only my full.tpl. it seems my line_class_2.tpl don't override my full.tpl.

Jo Henrik Endrerud

Saturday 17 May 2003 8:01:20 am

line_class_2.tpl will never override full.tpl line_class_2.tpl will only override line.tpl if line is requested with /content/view/line/ID
line is made to be included in lists with the node_view_gui function. For more information about node_view_gui check http://www.ez.no/sdk/eztemplate/view/function_list/

Jo Henrik Endrerud | System Developer @ Seeds Consulting | http://www.seeds.no

mario feichtinger

Monday 19 May 2003 12:24:03 am

hi!
thank you for the info.
my class "aktuelles" has the id 2.
the objects of "aktuelles" are in the folder with object id 16.
now i have the template line_class_2.tpl for the list
and the full_class_2.tpl for the full view of the articels.
if i type in the browser http://ez/index.php/mydesign/content/view/line/16 it shows me the line.tpl.
if i type http://ez/index.php/mydesign/content/view/full/16 it shows me the full.tpl - which it is ok.
in the demo http://ez/index.php/demo/content/view/full/26 it shows however the line_class_2.tpl.
why not the full.tpl?
i hope i'm not too silly for ezpublish

mario feichtinger

Monday 19 May 2003 12:54:42 am

i believe i have it.
i have forgotten the template for the class 1 (folders) in which stores the articels.
... i hope so ...