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   939 Views

Avatar
blackiss

Community Member, 1 Post

8 September 2008 at 9:14pm

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

Community Member, 787 Posts

8 September 2008 at 11:08pm

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 !