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.

Archive

Our old forums are still available as a read-only archive.

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

incorporate JavaScript


Reply

6 Posts   1207 Views

Avatar
Rube_25

16 September 2008 at 9:45am Community Member, 36 Posts

Hi everyone

I need to incorporate JavaScript code, to each of the pages that went into creating the admin

he asked in that folder are creating these pages.
look in the folder sapphire, but did not find the pages

thanks..
Rube

Avatar
Willr

16 September 2008 at 10:03am Forum Moderator, 5511 Posts

Sorry what are you trying to do? Include Javascript in the back end or the front end of the site - the side the users see?

If you want to add javascript to a page you need to use the Requirements class - http://doc.silverstripe.com/doku.php?id=requirements

Avatar
Rube_25

16 September 2008 at 11:01am Community Member, 36 Posts

Thanks for the reply. I´d like to know in which folder I can find each page that I have created in the administrator, in order to incorporate my javascript for each page.
rube

Avatar
Fuzz10

16 September 2008 at 7:09pm Community Member, 787 Posts

Rube,

The pages are not being stored on the file-system. The content is stored in the database , and the templates on disk.

If you are looking for the templates , look in your project directory our in "themes".

Avatar
Rube_25

17 September 2008 at 1:29am Community Member, 36 Posts

Thanks Fuzz10,

Search the database pages that I was creating, to put my code JavaScript.

Is this possible?

Again thanks..
Rube

   
Sorry for my English

Avatar
Fuzz10

17 September 2008 at 1:43am Community Member, 787 Posts

I don't exactly understand what you want to do.

If you need to include a javascript on every page , you can either edit your template(s) or include it by using requirements in your (page)-classes .....

See :
http://doc.silverstripe.com/doku.php?id=requirements