Jump to:

10929 Posts in 2613 Topics by 1809 members

All other Modules

SilverStripe Forums » All other Modules » Sifr Module link colour

Discuss all other Modules here.

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

Page: 1
Go to End
Author Topic: 945 Views
  • mhull
    Avatar
    Community Member
    79 Posts

    Sifr Module link colour Link to this post

    I have the following working, as per the Readme file, but how to I add link colour and hover colour?
    I can see the instructions for the old Sifr, but not the newer version of Sifr.
    Anybody have this successfully working with links?

       class Page_Controller extends ContentController {
             function init() {
                parent::init();
                Sifr::add_font('din', 'themes/obcrest/fonts/Din-Bold.swf');
                Sifr::replace_element('din', 'h3', "'.sIFR-root { text-align: left; color: #001755;'");
                Sifr::activate_sifr();
             }
          }

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: Sifr Module link colour Link to this post

    Anyone have any ideas?

  • Martijn
    Avatar
    Community Member
    271 Posts

    Re: Sifr Module link colour Link to this post

    You found this documentation?

    http://wiki.novemberborn.net/sifr/How+to+use

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: Sifr Module link colour Link to this post

    sLinkColor doesn't seem to apply, I can't understand why. Does anyone have it working for sifr 3 in silverstripe?

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: Sifr Module link colour Link to this post

    Am I adding it incorrectly?

  • mhull
    Avatar
    Community Member
    79 Posts

    Re: Sifr Module link colour Link to this post

    Well, in unsupported modules I found another version if sifr module. This is called from _config.php with:

    Sifr::set_js_custom_file_location("sifr/javascript/sifr-config.js");
    Sifr::disable();
    Sifr::load_sifr();

    which doesn't seem to work for me at all, not showing up any includes in the site at all.

    945 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.