How to create an override template for node_list?

How to create an override template for node_list?

Friday 14 January 2005 8:27:32 am - 3 replies

Author Message

Kristian Hole

Saturday 15 January 2005 5:10:20 am

If you have a template and want to change this (and override it). Copy it to your design in the same directory structure.
Example:
copy
/design/standard/templates/toolbar/full/node_list.tpl to
/design/YOURDESIGN/templates/toolbar/full/node_list.tpl

where YOURDESIGN is the one specified in the <i>SiteDesign</i> of <i>[DesignSettings]</i> in <i>site.ini.append.php</i> of your siteaccess.

Remember to clear the cache after you copied it.

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

Badger Mushroom

Saturday 15 January 2005 9:43:29 am

Thanks,

I have three questions.

In my site.ini..., I saw the following:
[DesignSettings]
SiteDesign=plain
AdditionalSiteDesignList[]=base

What does AdditionalSiteDesignList mean, and how does 'base' design affect my 'plain' site design?

Also, in my /design/plain/templates/, there's no more directories that lead to /design/plain/templates/toolbar/full/. Does this mean I have to create my own and that EZPublish will be able to recongize my dir changes?

Kristian Hole

Monday 17 January 2005 1:05:04 am

In my site.ini..., I saw the following:
[DesignSettings]
SiteDesign=plain
AdditionalSiteDesignList[]=base

What does AdditionalSiteDesignList mean, and how does 'base' design affect my 'plain' site design?

The short answer is: When eZ publish looks for a template, it starts looking in SiteDesign. If it finds the template there it uses that, otherwise it looks through all your Additional designs (Specified in AdditionalSiteDesignList). If the template is not found there either, it looks in StandardDesign.

http://ez.no/ez_publish/documentation/incoming/design/siteaccess_configuration

Also, in my /design/plain/templates/, there's no more directories that lead to /design/plain/templates/toolbar/full/. 
Does this mean I have to create my own and that EZPublish will be able to recongize my dir chang

Yes. When you create the new dirs in the plain design eZ publish will automatically find them (but remember to clear the cache).

Kristian

http://ez.no/ez_publish/documenta...tricks/show_which_templates_are_used
http://ez.no/doc/ez_publish/techn...te_operators/miscellaneous/attribute

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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.