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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Sifr Module link colour


Go to End


6 Posts   1472 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?

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

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.