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


459 Views

Avatar
otherjohn

Community Member, 125 Posts

1 October 2011 at 3:29am

Edited: 01/10/2011 3:29am

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?