Friday 14 May 2004 11:14:48 pm
Hi Jesper, A crucial point in ensuring your site is able to grow gracefully with ezPublish is creating sensible content classes, and then categorising instances of those classes (content objects) in a nice folder structure. Alex has made a good explanation and I'll expand on it by providing a practical example, based upon what I *think* your trying to do. Here's two different ways you could do what your trying to do: class furnature:
attributes:
period_begin (date)
period_end (date)
category (designer | contemporary | art | etc) (option)
picture (image) description_text (xml_text) and then publish all furnature objects under /root/furnature/
+'s:
Fast creation Easy
-'s: More complex fetch calls within your templates to display appropriate furnature to your users. You'll have to do attribute filters as opposed to simply calling all nodes below a parent with the next example: class furnature: (no category)
attributes:
period_begin (date)
period_end (date)
picture (image) description_text (xml_text) Then you would do something like the following when you publish to make up for the lack of categorisation on the content object:
/root/furnature/designer (publish designer furnature here) /root/furnature/art (publish arty furnature here)
+'s Much easier fetch calls in your templates. Each folder to categorise furnature objects you use can simply display all nodes below it (this is a simple fetch call... a real 'one liner')
-'s Its a bit more time consuming to publishing objects as if a peice of furnature belongs in multiple categories or time periods etc you'll have to select multiple publish locations. I would suggest stongly (unless you describe what your trying to do in more detail that raises issues I was unaware of) that you use a folder structure. Its much simple, especially for a newbie. Good luck and post any other questions!
Regards, Willie
|