Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

News from multiple holders within a section


Reply

14 Posts   2392 Views

Avatar
headless_pnub

21 February 2009 at 6:44am Community Member, 17 Posts

Yes, that does seem to be the simplest way to achieve this.
When you say create a Section tag do you mean to do this in the same way the tutorial does with adding an author to the articlepage?

Avatar
Carbon Crayon

21 February 2009 at 7:00am Community Member, 598 Posts

Yep exactly, using the $db and getCMSFields to add a field to the page in the CMS which you can then populate with the pages uppermost parents URLSegment

Avatar
headless_pnub

21 February 2009 at 8:00am Community Member, 17 Posts

That's brilliant. Thank you so much for all your help.

Avatar
Carbon Crayon

21 February 2009 at 8:51am Community Member, 598 Posts

You are most welcome :)

Avatar
Taffy

1 April 2009 at 8:46pm Community Member, 119 Posts

Hi headless_pnub, I'm looking to implement something similar. Any chance you could share your final code on the forum? Cheers

Avatar
innyinskip

2 July 2010 at 11:12pm Community Member, 46 Posts

Im trying to do exactly the same.
Would be v kind if you could share your code with us?