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.

Customising the CMS

Changing the icons of pages in the CMS


Reply

5 Posts   3097 Views

Avatar
shazbat

10 November 2009 at 5:12am Community Member, 6 Posts

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

11 November 2009 at 12:05am Forum Moderator, 435 Posts

See http://www.ssbits.com/spice-up-your-cms-sitetree-/

Avatar
shazbat

11 November 2009 at 12:43am Community Member, 6 Posts

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

Avatar
biapar

11 November 2009 at 2:52am Forum Moderator, 435 Posts

-:)

Avatar
bbudy

12 November 2009 at 8:38pm Community Member, 3 Posts

what?

__________________________
[url=http://www.golfsetbase.com/]cheap golf clubs[/url]
[url=http://www.golfsetbase.com/goods-720.html]taylormade r9 driver[/url]
[url=http://www.golfsetbase.com/goods-763.html]ping g15 driver[/url]
[url=http://www.golfsetbase.com/goods-565.html]callaway x-22 irons[/url]
[url=http://www.golfsetbase.com/goods-488.html]titleist AP2 irons[/url]
[url=http://www.golfsetbase.com/goods-393.html]taylormade r7 CGB MAX irons[/url]