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.

All other Modules

Discuss all other Modules here.

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

Sifr Module link colour


Reply

6 Posts   966 Views

Avatar
mhull

22 July 2009 at 4:35am Community Member, 79 Posts

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();
         }
      }

Avatar
mhull

22 July 2009 at 8:58am Community Member, 79 Posts

Anyone have any ideas?

Avatar
Martijn

22 July 2009 at 9:47am Community Member, 271 Posts

You found this documentation?

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

Avatar
mhull

22 July 2009 at 10:04am Community Member, 79 Posts

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

Avatar
mhull

22 July 2009 at 10:45am Community Member, 79 Posts

Am I adding it incorrectly?

Avatar
mhull

22 July 2009 at 10:28pm Community Member, 79 Posts

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.