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've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Themes /

Discuss SilverStripe Themes.

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

a picture only on the Homepage


Go to End


3 Posts   2418 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!!!