ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

How to Link to a Script Template File Above Root

September 24, 2011 3:37pm

Subscribe [2]
  • #1 / Sep 24, 2011 3:37pm

    PixelGrinch

    48 posts

    I wasn’t able to find anything through the forum ...

    I would like to like to link my javascript template file which is above root ...

    Linking to the stylesheet is explained: {stylesheet='template_group/css_template'}

    But how do I link to a Javascript template above root?
    the following obviously doesn’t work:

    ...script type=“text/javascript” src=”{path='scripts/somescript'}”></script….

    thanks!

  • #2 / Sep 24, 2011 5:06pm

    PixelGrinch

    48 posts

    I figured it out. Might be helpful to others in the same situation.

    I checked out CodeIgnitor and it seems anything can be loaded through the index file since it is a controller structure:

    ... script type=“text/javascript” src=”/index.php?scripts/somescript”></script ...

  • #3 / Sep 26, 2011 8:22am

    Sue Crocker

    26054 posts

    Glad you were able to figure out what the problem was. Don’t hesitate to post again as needed.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases