Monday 06 March 2006 11:53:26 am
Hi Brian,
I'm not that familiar with the default ez setup, so it might be an easy way to do it there. Maybe the factbox-tag in an xml-field can do the trick? (See comment under http://ez.no/doc/ez_publish/technical_manual/3_6/reference/xml_tags)
My approach has been to make a custom content class, containgin varous attributes depending on my needs:
- Title (textline)
- Text (xml)
- Show on all children/grandchildren etc. as well (checkbox) - etc. This can aslo be made by customizing an existing content class.
To make the box I create a Box-object/node under the page I want it to appear on, containing the box content. In pagelayout.tpl I create the appropriate template code to fetch Box-nodes and display them, depending on witch page (node_id) is being shown. (Yes, I know. This is the hard part if your unfamiliar with the template language) Has someone else an other approach? I would be glad to know, because my way has too many fetches/databasecalls to be optimal. Roy
|