Forum Moderators: open

Message Too Old, No Replies

can you make the head an editable region in a template?

         

futureknight

12:14 pm on Sep 24, 2004 (gmt 0)

10+ Year Member



I've got a template I use as the basis for the site pages, but I've become aware than I'm gonna need to call different javascripts (variations of one script) for my menu system. I don't want to use a new template for each variation, so I thought it would be easier to just make the an editable region in the head where I declare scripts.

I can't seem to make this happen. When I put my cursor there in code view and create an editable region, the region begin and end tags always go in the body somewhere.

thanks in advance for any assistance.

Jon_King

12:45 pm on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This should work fine:

<head>
<!-- InstanceBeginEditable name="doctitle" -->

Head and Javascript here....

<!-- InstanceEndEditable -->
<body>

Essentially this just moves the closing doctitle tag down to just above the body tag...

[edited by: Jon_King at 1:00 pm (utc) on Sep. 24, 2004]

Jon_King

12:49 pm on Sep 24, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Or add this right after the doctitle closing tag:

<!-- TemplateBeginEditable name="head" -->

Javascripts here

<!-- TemplateEndEditable -->