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.

Customising the CMS /

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

Changing the icons of pages in the CMS


Go to End


5 Posts   5527 Views

Avatar
shazbat

Community Member, 6 Posts

10 November 2009 at 5:12am

Hi All

Im taking SS for a test drive today and I have to say Im v impressed from a usability perspective!

However I've just hit a snag but I'm almost certain its an oversight on my part. I’m using SilverStripe-v2.3.3 and Im currently trying to change the home page icons.

Ive so far managed to change the 'news page' icons by following the tutorial and adding the following code to 'ArticleHolder' and 'ArticlePage' classes within code directory:

static $icon = "themes/tutorial/images/treeicons/news";

As instructed, I then tried to add the following to homePage.php in the same directory:

static $icon = "themes/tutorial/images/treeicons/home";

I may be missing something here but homePage.php looks more HTML driven (below) and Im unsure of where to put the above line of code?

<div id="Banner">
  <img src="/themes/tutorial/images/welcome.png" alt="Homepage image" />
</div>
<div id="Content" class="typography">
  $Content  
</div>

If anybody can help Id be most grateful :)

Thanks

Shazbat

Avatar
biapar

Forum Moderator, 435 Posts

11 November 2009 at 12:05am

Avatar
shazbat

Community Member, 6 Posts

11 November 2009 at 12:43am

Thanks for your reply biapar. I managed to fix this.

Avatar
biapar

Forum Moderator, 435 Posts

11 November 2009 at 2:52am

-:)

Avatar
bbudy

Community Member, 3 Posts

12 November 2009 at 8:38pm