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

MetaTagger


Go to End


1573 Views

Avatar
Joshuarr

Community Member, 37 Posts

29 January 2010 at 11:05am

Hi,
Trying to get the additional js and css to show up using the metatagger module.

you can also add additional css and JS:
$this->addRequirements($additionalJS = array(), $additionalCSS = array()
doing so adds the following files:

Except doing so really throws an error:

[User Error] Uncaught Exception: Object->__call(): the method 'addrequirements' does not exist on 'Page_Controller'
GET /&flush=1

Line 576 in /Users/joshuarr/Sites/MFuss/sapphire/core/Object.php
Source

567 				case isset($config['function']) :
568 					return $config['function']($this, $arguments);
569 				
570 				default :
571 					throw new Exception (
572 						"Object->__call(): extra method $method is invalid on $this->class:" . var_export($config, true)
573 					);
574 			}
575 		} else {
576 			throw new Exception("Object->__call(): the method '$method' does not exist on '$this->class'");
577 		}
578 	}

Any help?