Wednesday 16 July 2003 5:53:15 pm
Have you cleared all cache manually? WHen things do not work as expected I go to the cache directory and delete everything manually.
If cache is not an issue, the following is how I created my own view modes with "extension":
1. create the following directories under ezpublish folder /extension/YOUREXTENSION/design/standard/templates/node/view (replace YOUREXTENSION with whatever you want to call your extension)
2. Let ezpublish knows about your newly created extension by adding the following line to
setting/override/site.ini.append.php: (create the directories and the file site.ini.append.php if they do not exist)
[ExtensionSettings] ActiveExtensions[]=STEExtension
3.
Let ezpublish knows to look for extra template files under the design folder of YOUREXTENSION, add the following to /extension/YOUREXTENSION/settings/design.ini.append (create the directories and the file design.ini.append if they do not exist)
[ExtensionSettings] DesignExtensions[]=STEExtension
4. Create any template file for your view mode. Say you want to use a mode called "simple". Create simple.tpl and put it in the directory you created in step 1(/extension/YOUREXTENSION/design/standard/templates/node/view).
5. Now you should be able to view any content node (for example node 123) by typing this url: .../content/view/simple/123 I hope that I didn't miss any steps. Good luck. Claire Lin
|