Skip to content

lifedraft/stm_javascript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

This plugin is outdated please use this alternative instead:

https://github.com/spiffin/spf_js

Simon, Thank you!

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

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>

About

Textpattern Plugin, stores JavaScript files within the database and handles them similar to CSS files.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published