In this example we'll be adding "Favorite" template to the "Demo element" item type.
1. In the folder
media/zoo/applications/jbuniversal/templates/catalog/renderer/item
copy favorite.php to the "demo-elements" folder.
2. Open
media/zoo/applications/jbuniversal/templates/catalog/renderer/item/demo-elements/metadata.xml
and add this code to "metadata":
<layout name="favorite"> <name>Favorite</name> <description>Layout for element favorite</description> </layout>3. Open
media/zoo/applications/jbuniversal/templates/catalog/renderer/item/demo-elements/positions.xml
and add this code to "renderer":
<positions layout="favorite"> <position name="title">Title</position> <position name="image">Image</position> <position name="properties">Properties</position> <position name="text">Text</position> <position name="meta">Meta</position> </positions>You can change or add new positions but be sure to accordingly edit favorite.php in order to include new positions there.
4. After this, configure your new template layout like any other:
Click on its name
Add needed elements to their positions
Сообщение отредактировал SmetDenis: 13 September 2013 - 12:43