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   1240 Views

Avatar
Rube_25

Community Member, 36 Posts

16 September 2008 at 9:45am

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

Forum Moderator, 5513 Posts

16 September 2008 at 10:03am

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

Community Member, 36 Posts

16 September 2008 at 11:01am

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

Community Member, 787 Posts

16 September 2008 at 7:09pm

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

Community Member, 36 Posts

17 September 2008 at 1:29am

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

Community Member, 787 Posts

17 September 2008 at 1:43am

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