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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

help with integration of script


Go to End


2 Posts   1371 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, 791 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 !