17488 Posts in 4473 Topics by 1978 members
|Go to End|
10 July 2008 at 2:28am
can anyone tell me how can i add an external file like html file ,.js etc in silverstripe
10 July 2008 at 2:34am
Could you explain a bit more?
for adding in a js file you can generally do something like this in your Page_Controller init():
For including html, not sure what you mean, normally html goes into the templates...
21 September 2008 at 11:19pm Last edited: 21 September 2008 11:20pm
doesnt work because it generates code like this:
Any help appreciated!
22 September 2008 at 7:58pm
You can always put it in the template...
22 September 2008 at 8:54pm Last edited: 22 September 2008 8:55pm
so there is no way to add an external script in the code? like with??
i just saw that in the "maps" module all google script have been included like this and didnt work (of course). or can i configure something that paths to JS starting with "http://..." arent linked relatively? but maybe i have to aks & tell the "google map module" people about it.
thanks dio5 for your help!
22 September 2008 at 9:03pm Last edited: 22 September 2008 9:05pm
Are u sure it really doesn't work, or something else might be causing this?
I'm using the maps module as well on a site of mine and didn't have any problems with that.
22 September 2008 at 9:50pm
yes, i tried it yesterday and it always created this useless tags (check src attribute):
what SS version did you use? i used a pretty new checkout from the SVN. maybe that's the problem because something changed lately in the SVN code? strange anyway.
|Go to Top|