Jump to:

17452 Posts in 4473 Topics by 1971 members

Archive

SilverStripe Forums » Archive » incorporate JavaScript

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

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

Page: 1
Go to End
Author Topic: 1189 Views
  • Rube_25
    Avatar
    Community Member
    36 Posts

    incorporate JavaScript Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5490 Posts

    Re: incorporate JavaScript Link to this post

    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

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: incorporate JavaScript Link to this post

    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

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: incorporate JavaScript Link to this post

    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".

  • Rube_25
    Avatar
    Community Member
    36 Posts

    Re: incorporate JavaScript Link to this post

    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

  • Fuzz10
    Avatar
    Community Member
    787 Posts

    Re: incorporate JavaScript Link to this post

    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

    1189 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.