|
Tuesday 06 September 2005 1:31:38 pm
Comment19930
I'm afraid I don't get the problem 100%, but I'll try anyway.
As Xavier Dutoit suggests you should fetch the promos from the template. That means <i>indipendent</i> of the related objects in the node 2. http://ez.no/products/ez_publish_cms/documentation/reference/data_fetching/content/list explains how to do this. Then you insert the fetched objects pretty much anywhere you want - comletely indipendent of any attribute from node 2. You maybe find it convinient to override the full.tpl for node2 as well as pagelayout.tpl. At least I find it a bit more relaxing when I have to modify a template completly.
When I need to pick topstories for my frontages I usally avoid using the related content-feature. This is mainly because I can't controll the order of the objects. In stesad I add two attributes to the class: one ezObjectRelationList (ORL) and one ezObjectRelation (OR). In the ORL I manualle choose the first topstories. This is usally articles, but you can offcourse use your promp-class. The object/node in OR holds the parent from which the x newst stories should be fetched from. In the template I then use spesific views ( http://ez.no/products/ez_publish_cms/documentation/reference/template_functions/gui/content_view_gui ) to present the topstories. You don't need to do that, but if you do so you can set up several classes to have their own "promo-view". For me it has (almost) ruled out the need for an own promo-class. I know this is not the intended use of ORL but...
Hope this can help, or at least give you some ideas. - Roy
|