The CreatorCon Call for Content is officially open! Get started here.

I want to put some scripting (javascript) on the CMS portal, how to include it on my page?

wcandro
Kilo Explorer

Hi,

I want to put some scripting (javascript) on the CMS portal and i understand there's noway i can include it in the CSS part. What are the options for me? i want to put a scripting to impact the body element of HTML?

Regards,

Andro

1 ACCEPTED SOLUTION

Ui can put it in UI Macro. In your Layout what you have selected for you site


View solution in original post

7 REPLIES 7

Ashutosh Munot1
Kilo Patron
Kilo Patron

What do you want to achieve?


Rashmi Bansal
Mega Guru

Hi Andro,



You can use <script> tag, and inside that you can write scripting. you can write script tag inside body tag or inside <head> tag.


And you can also put the script in a UI Script and then call for it like this:


<g:requires name="testing.jsdbx" />


where testing is the name of the UI script.



//Göran


Thanks for all the responses. I'am trying to put some javascript which would refresh the background of my page to new image every time it's refreshed.



My question is , where to put the <script> tag in CMS structure? Is it in the macro jelly script, CSS or somewhere else?



Regards,


Andro