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.

We're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

Hiding Right DIV in the home page

Go to End

2 Posts   1052 Views


Community Member, 3 Posts

20 April 2011 at 5:11am


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


Forum Moderator, 5523 Posts

20 April 2011 at 8:54pm

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