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   970 Views

Avatar
mhull

Community Member, 79 Posts

22 July 2009 at 4:35am

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

Community Member, 79 Posts

22 July 2009 at 8:58am

Anyone have any ideas?

Avatar
Martijn

Community Member, 271 Posts

22 July 2009 at 9:47am

You found this documentation?

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

Avatar
mhull

Community Member, 79 Posts

22 July 2009 at 10:04am

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

Avatar
mhull

Community Member, 79 Posts

22 July 2009 at 10:45am

Am I adding it incorrectly?

Avatar
mhull

Community Member, 79 Posts

22 July 2009 at 10:28pm

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.