Forums / Developer / relating objects / Comment40363

Author Topic

John Dalton

Monday 19 April 2004 4:35:02 pm

Comment40363

Ok, perhaps another approach would be to add an "issue" attribute to your article class. Put the issue number (or date, or whatever) in this field for each article, and then use fetch with an attribute filter to grab all of the articles with that attribute set to a certain value.

Have a look here:
http://ez.no/ez_publish/documentation/reference/data_fetching/content/list
I think example 10 would do the job if you checked for something like "article/issue = 200404" instead.

The related objects appraoch probably isn't too bad though if they're just all related to the homepage for that issue.