Jump to:

794 Posts in 409 Topics by 304 members

Widgets

SilverStripe Forums » Widgets » How do you render the widget differently depending on the page class?

Discuss SilverStripe Widgets.

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

Page: 1
Go to End
Author Topic: 421 Views
  • otherjohn
    Avatar
    Community Member
    125 Posts

    How do you render the widget differently depending on the page class? Link to this post

    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?

    421 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.