Skip to main content
Inspiring
Jul 1, 2017 7:54 PM UTC
Answered

Template Editable tag attributes removes editable region

Hi,

I have a nested template.

In it's parent template I have several editable regions, one of them is for the document title:

<title>
<!-- InstanceBeginEditable name="title" -->
DnD-Production
<!-- InstanceEndEditable -->
</title>

I am trying to add an editable text attribute in the nested template, in a "submit" form, which is near the bottom of my doc

Before:

<input name="orderSubject" type="hidden" value="formValue" />

I use the editable tag attribute:

after:

<input name="orderSubject" type="hidden" value="@@(submitValue)@@" />

The problem is that it also places the TemplateParam in the middle of the "title" editable region.

<title>
<!-- InstanceBeginEditable name="title" -->
DnD-Production
<!-- TemplateParam name="submitValue" type="text" value="formValue" -->
<!-- InstanceEndEditable -->
</title>

This causes a problem because when i try to update descendant pages i get a message  that the "title" region is unresolved

Is this normal? Am i doing something wrong here?

How can I fix this, I mean add the editable text without removing the title editable region?

This topic is closed to new replies. Start a new post to keep the conversation going.
Nancy OShea
Nancy OSheaCorrect answer
Community Expert
Jul 3, 2017 3:11 PM UTC

Use Server-Side-Includes (SSIs) for common headers, footers and navigation.

Alt-Web Design & Publishing: Server-Side Includes with PHP

Nancy

Nancy O'Shea— Product User & Community Expert

10 replies

karpiyonAuthor
Inspiring
Jul 3, 2017 7:04 AM UTC

I have a basic template which has the navbar and an editable regions.

From this i prepare the contact page, info page and other pages.

I also have 3 different kinds of image pages:

  1. A carousel with some structure
  2. A page which shows before/after slides of imagees
  3. An images gallery

For each of the above 3 I have several different version, each with differenty images and text.

For the above 3 I have 3 different nested templates.

If I a make one template it would be too complicated.

Translate
Nancy OShea
Community Expert
Nancy OSheaCommunity ExpertCorrect answer
Community Expert
Jul 3, 2017 3:11 PM UTC

Use Server-Side-Includes (SSIs) for common headers, footers and navigation.

Alt-Web Design & Publishing: Server-Side Includes with PHP

Nancy

Translate
Nancy O'Shea— Product User & Community Expert
karpiyonAuthor
Inspiring
Jul 3, 2017 5:41 PM UTC

Great that solve the navbar tough i will still need templates to modify the images in each page.

Translate
karpiyonAuthor
Inspiring
Jul 2, 2017 9:10 AM UTC

Or perhaps the answer I ma looking for is how to  define editable tag attributes in a nested template.

Translate
Nancy OShea
Community Expert
Community Expert
Jul 2, 2017 3:32 PM UTC

I cannot think of a single user case where nested templates are beneficial.   Not one.   I don't recommend nesting Templates. 

Create 1 Template with all the elements & layouts required for your entire site.

Add Optional Editable Regions for elements that will be used on some pages but not others.  In this way, you are fully covered by 1 template instead of several.

If you need an extra navigation element on some pages, use Server-Side Includes.  But please don't nest Templates.

Nancy

Translate
Nancy O'Shea— Product User & Community Expert
karpiyonAuthor
Inspiring
Jul 2, 2017 7:05 PM UTC

I appreciate your reply.

I am sure you have more experience yet i do find some good things in nested templates and the fact that adobe still supports it implies that they may have some use.

I wanted to use them but probably what i was trying to achieve is not possible.

thank you anywya.

Translate
karpiyonAuthor
Inspiring
Jul 2, 2017 7:40 AM UTC

Thank you,

I am following the definitions in: https://helpx.adobe.com/dreamweaver/using/creating-nested-template.html

The base template have 3 editable regions:

Begin editable

>Title…

End editable

Begin editable

>Body…

End editable

Begin editable

>Scripts…

End editable

In the nested one, I do not touch the Tilte region, hnce I should be passede on as editable to the pages.

I added 2 editable regions inside the body editable region:

Begin editable

>Body_text1

End editable

Begin editable

>Body_text2

End editable

I tried to add the editable attribute HERE

So far all is well and
This was wokring fine.

When I tried to add the editable attribute, it coruppted the Title editable region as I showed in the first message of this post.

I think I followd adobe
method for using nested templatep properly.

Translate
Nancy OShea
Community Expert
Community Expert
Jul 2, 2017 12:55 AM UTC

You cannot nest editable regions under any circumstances.

You have to close one editable before you can begin a new one.

Nancy

Translate
Nancy O'Shea— Product User & Community Expert