Hi all,
Though the sifr module has its page it lacks the detailed installation guide. Also the http://doc.silverstripe.com/doku.php?id=modules:sifr
page is missing.
Can somebody point me in the right direction for a proper sifr module installation?
Like after putting the sifr folder in the root, where exactly has to be added the calls for the Sifr::replaceElement() and Sifr::loadSifr() to Page.php file. And why there are two instances in the readme file, code pasted below:
// Page.php
class Page_Controller extends ContentController {
function init() {
parent::init();
Sifr::replaceElement("h1", "calliopemvb",'sColor:"#fe6e0e",sLinkColor:"#fe6e0e", sBgColor:"#f6f6f5", sHoverColor:"#fe6e0e"');
Sifr::loadSifr();
}
}
||| IN > 0.2 |||
// Page.php
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();
}
}