Jump to:

3435 Posts in 1026 Topics by 866 members

Template Questions

SilverStripe Forums » Template Questions » Hiding Right DIV in the home page

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

Page: 1
Go to End
Author Topic: 654 Views
  • Muj
    Avatar
    Community Member
    3 Posts

    Hiding Right DIV in the home page Link to this post

    Hi,

    Guys please let me know how I can hide a div ( related menu) on only the home page but to appear on all inner page..My home page requires only 2 columns but inner page requires 3 columns..Many thanx

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: Hiding Right DIV in the home page Link to this post

    <% if URLSegment == home %>
    On the homepage
    <% else %>
    Not on the homepage
    <% end_if %>

    654 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.