Jump to:

3445 Posts in 1031 Topics by 872 members

Template Questions

SilverStripe Forums » Template Questions » Changing the layout for just the ForumMemberProfile pages

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

Page: 1
Go to End
Author Topic: 761 Views
  • HansR
    Community Member
    140 Posts

    Changing the layout for just the ForumMemberProfile pages Link to this post

    I want to remove the sidebar for just the forum pages. I managed to do this for the actual forum pages using the InSection() property:

    <% if InSection(forums) %>

    However, for the ForumMemberProfile pages nothing that I do seems to work, I've tried using InSection and ClassName and neither will recognize that it's in the ForumMemberProfile section. I'm guessing that the problem is caused by ForumMemberProfile being a child-class of Page_Controller instead of Page, and there is no associated Page child-class.

    Any ideas on how to perform an if/else in a template that detects when it's on a ForumMemberProfile page?

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.