Forum Moderators: open

Message Too Old, No Replies

Dreamweaver Template Re-Editable Areas

I need to put one within an HTML tag. Possible?

         

dragonlady7

6:15 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



I have a complicated site, about 130 pages, all done by hand in Dreamweaver. There's a master template, and about seven subtemplates.
Problem:
I have an expanding Javascript menu. Boss wants it to automatically open the section of the menu pertaining to the part of the site that the visitor is in.

Best way to do this: within the Body tag, put in an onload event that expands the section in question.
Looks like this: <body onload="ExpandMenu('overview')">

Where it says 'overview', I NEED to be able to have a re-editable region. Because overview is only one of the templates. So I need to be able to put the name of the proper ID in there.

...

Can't. It simply won't insert a re-editable region there.

I've had trouble repeatedly over the last eight or nine months while using DW-- The borders of editable regions in templates will shift, resulting in things I needed re-editable being locked, and things I needed locked getting removed, and the like. It's been a royal p.i.t.a. to cope with, and has greatly eroded my early enthusiasm for the program.

Can anyone think of a way to make Dreamweaver do what I need? I can't do SSI or anything else. I'm pretty much stuck doing this by hand or close to it.
Am I going to have to make a huge reeditable area just so I can manage this one thing? *groans* That's when things start getting impossible to manage.

dragonlady7

9:30 pm on Dec 2, 2003 (gmt 0)

10+ Year Member



Jeez, I posted this question in Macromedia's support forums and the single solitary response I've gotten was a guy saying "I know how to do it, and any idiot should know, but you have to buy my tutorial at this site to find out how."
Great. *vomit*
For my home business, I will be doing all my webdesign in BBEdit, thanks.

limbo

11:19 am on Dec 3, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



theoretical suggestion: I would stick the Javasccript in an external file. Create as many different versions of the script as you need then link to them using an editable region.

Not and ideal solution but I have never seen templates that worked when inserting editable regions into Javascript.

noah_body

4:35 pm on Dec 3, 2003 (gmt 0)

10+ Year Member



This is off the top of my head, so I'm not sure it'll work, but....

Put a javascript variable relating to the menu you want displayed.... then, in your onLoad statment, refer to that variable... ie menuType="overview"; then onLoad=ExpandMenu('menuType').

You may have to tweak the javascript someplace to keep the variable in scope.