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
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
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.
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
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
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
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".
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
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 .....