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.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Files where allocated the Metadata


2 Posts   876 Views


18 May 2011 at 6:48am (Last edited: 18 May 2011 6:50am), Community Member, 9 Posts


I would like to know where are allocated the files that have the Metadata of each page that composes a site, in order to put a Javascript code in them

Regards and thanks with anticipation


21 May 2011 at 5:32pm Forum Moderator, 5511 Posts

I don't exactly follow your question - are you trying to alter the meta tags on your site? You cannot include javascript in metatags AFAIK, but they're generated from SiteTree.php, If you want to manually override them copy the MetaTags function from SiteTree.php to Page.php