Is it possible to create a region in a Dreamweaver template where the *content* repeats?
August 11, 2009 4:41 PM   Subscribe

Is it possible to create a region in a Dreamweaver template where the *content* repeats?

I have a bunch of dreamweaver templates for a new site - CS4 to be precise. While there is a div that pulls db driven data, most of the content of the pages themselves are static. Each page will a contain a headline and body content containing 3 tabbed sections. The user will be able to tab between the three sections on the page.

There is a "blurb" below each tab that is not part of the tab, a sort of subheadline. The blurb's content is the same below each tab. In Dreamweaver, I have the tab content is an editable region. What I would like to do is make the blurb an editable region but one where the content person can add the blurb's content once (say on the first tab) and then the second and third blurb regions will automatically have that first blurbs content. Repeating regions won't do it.

The Interwebs and all the Dreamweaver books mention all sorts of great optional, repeating, nested regions but not specifically this.

If there is no way, perhaps using Javascript's getElementByID? or using JSON (of which I know NOTHING!) and have the user populate the first tab?

Thanks to all.
posted by xetere to Computers & Internet (3 answers total)
 
I'm not clear on what you're trying to do from your description, but maybe library items will get you closer to your goal? They work similar to server side includes. From the link:

"A library is a special Dreamweaver file that contains a collection of individual assets or copies of assets you have created for placement in your web pages. These assets in a library are called library items. You can update all the pages that use a library item whenever you change the item's contents."
posted by geeky at 5:19 PM on August 11, 2009


Response by poster: Thanks but Library items won't do it. Since we have hundreds of pages, we'd need hundreds of library items which seem kind of strange.

Basically I have a section heading that I want to have repeat in three different places on the page. The "content" of the heading will always be the same, so I would rather not create three separate editable regions where a user types in the exact same thing with the attendant possibility of error.
posted by xetere at 5:31 PM on August 11, 2009


>The user will be able to tab between the three sections on the page.

How will that be done? It sounds like you're going to be using Javascript to do that, in which case, including the same content in the three tabs could easily be done in the Javascript.
posted by AmbroseChapel at 11:04 PM on August 11, 2009


« Older Bash scripting problem   |   Seeking "Hard" Sci-Fi Novel Recommendations Newer »
This thread is closed to new comments.