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.

Widgets

Discuss SilverStripe Widgets.

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

How do you render the widget differently depending on the page class?


Reply

429 Views

Avatar
otherjohn

1 October 2011 at 3:29am (Last edited: 1 October 2011 3:29am), Community Member, 125 Posts

Hi all,
I would like to apply a different template to the widget(s) on that page depending on what page classname they are on. So if the page ClassName is HomePage then render one way but if its BlogHolder or Page, render another.

How can I do this?