Jump to:

23453 Posts in 18904 Topics by 2877 members

General Questions

SilverStripe Forums » General Questions » integrating outside php code into silverstripe

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Page: 1
Go to End
Author Topic: 1004 Views
  • theoldlr
    Avatar
    Community Member
    103 Posts

    integrating outside php code into silverstripe Link to this post

    Hi all,

    http://www.agilecarousel.com/instructions

    I am trying to figure out how to make this carousel that uses jQuery, css, and some php code SilverStripe friendly. I know the proper way to include the javascript for use and know I should put this php into controller functions but I'm not quite understanding how this all connects--I'm still quite weak with php. The instructions tell you to alter a few lines of the javascript to match your relative path to the included php file, but I'm not sure what to do in this case if the code will end up being in a controller function.

    Thanks in advance!

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: integrating outside php code into silverstripe Link to this post

    Why outside if u can use inside page type make page in mysite code with needed fields as holder and then make the page for holder then make the holder template and use the holders children page as a slider item. If also wanna make it linkable then just make the page where u need to link as allowed_children in holder .php file

    what fields u mean i can make sample code.

  • theoldlr
    Avatar
    Community Member
    103 Posts

    Re: integrating outside php code into silverstripe Link to this post

    Maybe I phrased some of my original post poorly. What I want to do is to take the code for the agile carousel ( http://www.agilecarousel.com ) and convert it into silverstripe friendly code. I plan on using it on my Page page type.

    They give you a few js files, a css file, and a php file. The download link is here: http://agile-carousel.googlecode.com/files/jquery.agile_carousel-beta.2.0.zip

    and the non-silverstripe installation instructions here: http://www.agilecarousel.com/instructions

    Now all I need are silverstripe friendly instructions. Heck, I'll settle for silverstripe friendly guidance.

    Thanks, all!

  • Webdoc
    Avatar
    Community Member
    332 Posts

    Re: integrating outside php code into silverstripe Link to this post

    Ok i look what i can do but if u use it in page.php and layout/page.ss
    then its gonna be in everypage where u use normal Page as page.

  • theoldlr
    Avatar
    Community Member
    103 Posts

    Re: integrating outside php code into silverstripe Link to this post

    Having it on every page is what i intended, so that will work great. Thanks, Webdoc!

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