Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive

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

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

help with integration of script


Reply

2 Posts   908 Views

Avatar
blackiss

8 September 2008 at 9:14pm Community Member, 1 Post

hy

i just need to integrate on my home page at least (prefferably in sidebar for space economy)
the following script

<script type="text/javascript">t_rid="urbanart";</script>
<script type="text/javascript" src="http://storage.trafic.ro/js/trafic.js"
></script><noscript><a href="http://www.trafic.ro/top/?rid=urbanart"
target="_blank"><img border="0" alt="trafic ranking"
src="http://log.trafic.ro/cgi-bin/pl.dll?rid=urbanart"/></a>
</noscript>

and i just can't do that.

can someone help me with this

Avatar
Fuzz10

8 September 2008 at 11:08pm Community Member, 787 Posts

Currently, there is no "out of the box" method of doing so through the backend. It takes 5 minutes to solve it though :

You have multiple options :
1> Just stick it in your template
2> Create a custom field , put the script in there and call it in the template

Also see :
http://www.silverstripe.com/site-builders-forum/flat/438
http://www.silverstripe.com/extending-hacking-silverstripe-forum/flat/78033

Good luck !