The power of MODx is TV’s! Create a textarea [*headEXTRAS*] tv, insert placeholder into template.
Then go to doc and paste your js!
Okay that’s starting to make sense. How do I tell my new TV to put things in the head?
EDIT: oh I get it, drop that into the template.
So if I don’t have anything set for that TV on a particular page then nothing gets dropped into that area?
EDIT2: Now to get it to work. I think Im doing what I want now. Just have to get my javascript to work on MODx. Was working locally and just hosted on my server, something is getting lost.
The only output for this simple tv (w/o widgets and empty) is a new white line.
Things are going where they need to but something is getting in the way with my jQuery script.
The PHx Plugin can do this:
[+phx:if=`[*HeadExtras*]`:is=``:then=``:else=`[*HeadExtras*]`+]
something is getting in the way with my jQuery script.
Maybe
http://docs.jquery.com/Using_jQuery_with_Other_Libraries