Open frisi opened 10 years ago
@skaeser i'd love to get your comment on this one. did you use raptus.articles for news too?
Hmm, we do not use the collection component that often.. but I guess the only ways around your problem would be the ones you suggested or by introducing another nesting level:
/news (raptus.article - collection component activated) /news/aggregator (collection, filters for articles - location ../storage and subfolders) /news/storage (simple folder containing the year fodlers) /news/storage/2014 (folder containing news articles)
this would remove the requirement for the yearly adaption but would introduce a not that nice URL..
i'd like to use raptus.article for news items too - since components such as teaser image, galleries and the like are nice to have for news-items too (and the layout of articles is consitent across the portal)
for listings the news it's good to use collections in order to sort news by effective date. on the other hand, having a teaser image and optionally other components available on the listing-view would be a good thing - so let's use an article for this too
i tried a setup with raptus.article.collections
/news (raptus.article - collection component activated) /news/aggregator (collection, filters for articles - location ../ and and subfolders) /news/2014 folder containing news articles
downsides: the collection will return the article /news (used to display the collection results) too we could work around this by requiring a certain keyword for articles used as news items, or by altering the location of the collection-criteria to the 2014 subfolder (and adapt it every year)
i wondered whether you guys at raptus ever had similar problems and do have other solutions for this.