17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1104 Views |
-
incorporate JavaScript

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 pagesthanks..
Rube -
Re: incorporate JavaScript

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
-
Re: incorporate JavaScript

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 -
Re: incorporate JavaScript

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".
-
Re: incorporate JavaScript

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 -
Re: incorporate JavaScript

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 .....
| 1104 Views | ||
|
Page:
1
|
Go to Top |


