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.

Themes /

Discuss SilverStripe Themes.

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

a picture only on the Homepage


Reply


3 Posts   1293 Views

Avatar
Megabyte

Community Member, 13 Posts

21 December 2008 at 6:24am

Hello,

I installed the theme "andreas2" (http://www.silverstripe.org/andreas02/). But now I have got a question: How can I realize that the picture withe the text "Welcome to your site!" is only shown on the homepage???

Thank your for your help!

Avatar
Liam

Community Member, 470 Posts

21 December 2008 at 8:23am

I would assume that area is a div.

So edit the template file where it is located, and do something like

<% if inSection(home) %>
div with picture here
<% end_if %>

Avatar
Megabyte

Community Member, 13 Posts

21 December 2008 at 9:49am

It works perfectly!!! Thanks for the fast help!!!