Jump to:

1851 Posts in 1606 Topics by 561 members

Blog Module

SilverStripe Forums » Blog Module » Extending Site Tree class not showing up in Blog Module

Discuss the Blog Module.

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

Page: 1
Go to End
Author Topic: 371 Views
  • Optic Blaze
    Avatar
    Community Member
    162 Posts

    Extending Site Tree class not showing up in Blog Module Link to this post

    Hi there,

    I extended Site Tree with the following code in the page.php file in my mysite/config:

    public static $db = array(
       'Colour' => 'Text'
       );

    The idea is to be able to assign different colours to pages by integrating and assigning css class names to it through the above variable. That works well.

    The problem i have is that when i try to call $Colour when i am on any blog page, i cannot access the values. I have tried calling it as $Page.Colour as well but that also does not work.

    Please help

    Thanks

    371 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.