Thursday 01 May 2003 4:45:26 am
Lance,
This is my view on template-usage in EZP (please feel free to correct me if I'm wrong).
It all works with IDs. For instance, to view a content-item, you'll get a url like:
http://mysite.com/index.php/user/content/view/full/11. With this url you indicate that you want to view (obviously) the content-item with node-id 11 with the 'full' template (defined in /design/standard/templates/node/view/).
If you want to use a custom 'full' template, you have to go to /design/yoursite/override/templates/node/view, and create one. This could be a full_node_11.tpl (used whenever a 'full' view of the content-item with node-id 11 is asked for). Or, if you want something more generic, you could redefine the 'full' template of a class, i.e. full_class_xx.tpl (in which xx is the id of the class of the content-items that you want to view in this way).
Now, you can also design your own views, which you put in /design/yoursite/templates/node/view. If you want to use these templates you have to access them from the page in which you want them to be shown, like:
{node_view_gui view=myownview content_node=$node} where myownview.tpl is in the directory /design/yoursite/templates/node/view. I'm not really sure myself yet about the difference between viewing content or nodes (except the fact that you use content_view_gui (and the /content/view directory) in the first case and node_view_gui (and the /node/view directory) in the second). Hope this helps. Vivienne
|