Content last modified Tuesday 24 August 2021
hop to #bottom
Categories:
Author:
Stanislav Müller
Current version:
0.3
About It:
Get it:
Rate it:
  • Helpful?
  • 6 Yes
  • 0 No
Flag it:

If you'd like to provide updated information and do not have access to directly edit, please contact the site admin; thanks!

stm_javascript

Stores JavaScript files within the database and handles them similar to CSS files.

In admin section, go to tab “presentation > javascript” and create one ore more javascript files that you want to embed within your page templates. This is similiar to the “styles” tab – the JavaScript files get stored in the database and you can embed them with a new Textpattern tag:

<txp:js /> (embeds default JavaScript file)
<txp:js n="myDomScript" /> (embeds JavaScript file named "myDomScript")

Output:
<script type="text/javascript" src="http://mysite.com/?js=myDomScript"></script>

PS: if you have got some bugs, just drop me a mail

Article Request Count:
Keywords/tags:
Initially released:
30.11.2006
Posted here:
30 Nov 2006

You know you want to visit the Archives.
Published with Textpattern