Ask a Question related to Macromedia Dreamweaver, Design and Development.
-
Murray *TMM* #1
Re: Updating template problem
Raphael:
Basic Introduction -
In DMX, the region outside of the <html> tag can be made to be -
1. EDITABLE (by setting that parameter to false - the default) - meaning
that any server code may be added to this region on any child page, and that
any changes made to code already in that region in the Template page will
NOT be propagated to existing child pages, or
2. NON-EDITABLE (by setting that parameter to true - as you have done) -
meaning that ALL child pages will have *only* the code that is present in
the Template page in that region, and that changes to that code in the
Template page will be propagated to all child pages of that Template.
These two options are mutually exclusive, meaning that it's either an
editable region or a non-editable region. If you take a template with
existing child pages, and if these child pages already have unique
server-code in that region, then by setting that parameter to "true" you
will have 'homogenized' that region for all child pages. In other words,
you will have deleted all of the unique server code that may have already
been there, and replaced it with the standard code that you added to the
template page. I hope you didn't do that, or at least I hope you have
backups of the original files.
Now -
The error message you are getting most likely means that DMX encountered
some *other* error on the page while trying to implement the code that you
added. The only way to know that is to look at the code on your Template
page. Can you save it as a text file (e.g., template.txt), upload it
somewhere, and post a URI to it, so that I can examine the code?
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
ANSWERS
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Fal" <webforumsuser@macromedia.com> wrote in message
news:begvtr$1ni$1@forums.macromedia.com...creating a template, and then inserting some dynamic content into it.> Hello everyone
> I am wondering if anyone can help me with a little problem I am having inmy website is going to be, and from there I create index.asp etc?> I created the template to be an ASP VBscript template because that is whatthe template page itself. Up until now I had recordsets on the pages>
> The problem is that now I want to create some dynamic content to exist on
themselves, But what I want to do now is have some dynamic form content on
the template page itself, as I want it to appear on every page that uses the
template.have a heading next to it, called something like ?Quick links?> In my case I want a list/menu, that is connected to a recordset. I willthat is where I have the problem.> I tried creating this, inserting a recordset on the template page, andfollowing error> As soon as I try adding the recordset to the template page. I get thebe copied to documents based on the template unless you insert this tag in>
> ?you have added or changed code outside the HTML tag, This change will not
the head section of this template.inside the <head></head> tag of my template page.> <!- -Templateinfo codeOutsideHTMLIsLocked=?true? - - >
>
> I understood that as meaning that I must copy the above line somewheretemplate page, and updating all the pages using the template. What?s more is> I?ve tried that and then I still get the same error when saving the
that none of my pages work now.outside the <html> of my page.> It?s obvious that what?s prompting this, is the asp recordset beingwhat to do.>
> As I?m not into hand coding, only using the ASP generators I do not know>
> Please can someone help me?
>
> Many thanks
>
> Raphael
>
>
>
Murray *TMM* Guest
-
dreamweaver template not updating Contribute pages
Currently I'm trialing Dreamweaver (MX) and Contribute (3.11), to check that it's a workable solution for my company, in terms of editing and... -
Template Updating Non-HTML ext.
I have successfully used templates for my site with files that end in htm. My ecommerce portion of my site is based on an asp page and html... -
Problem updating PHP 4.3.0 DEV to PHP 4.3.3
Hi! I had Apache 2.0.47 and PHP 4.3.0 DEV running successfully on a W2k Server. For some reason, I couldn't get PHP to read XML-Attributes with... -
Error message when updating template
Hi...I've created a template that I use to update several pages on a website. When I make changes to the template...and save it, I'm asked if I want... -
Auto updating a popup-menu link in document created from a template. Possible?
I have created a set of popup-menus in a document and saved it as a template. However when I create a new document from the template the... -
Fal webforumsuser@macromedia.com #2
Re: Updating template problem
Well Hey Murray
First of all thank you very much for replying and sorry for taking so long to get back to you.
I think you are completely right, as to what has gone wrong with my pages.
As you stated indeed, I do have unique server scripting (ASP) on the child pages of my template. So a page like index.asp has it?s own recordset, since it?s a master/detail page, as does class.asp and a few other pages I created.
I seemed to understand from your reply that when I create some dynamic content in a template page, that., this is where the trouble starts.
I don?t have a place to upload the pages at the moment, but I think that is the root of the problem.
So what is the solution? How do you create a template page, and then update child pages, to contain the template dynamic code too, and not overwrite the dynamic code of the child pages?
Thanks so much
Raphael
Fal webforumsuser@macromedia.com Guest
-
Fal webforumsuser@macromedia.com #3
Re: Updating template problem
Hi, I hope this thread is still active,
I am sorry I haven?t got back to you. I was too busy trying to sort out some webspace, and I still haven?t got any, coz it?s an asp page.
But in the meantime, I noticed something that might be the cause of the problem, see I tried the recordset on a regular page, i.e not as part of a template and it worked.
And still coupled with the error of not reading code outside the html, I noticed this on one of my pages, index.asp
<html><!-- InstanceBegin template="/Templates/primary.dwt.asp" codeOutsideHTMLIsLocked="false" -->
Would that have any bearing on my problem? As to why it?s not picking up the code of my recordset on my template page.
I?m struggling to find a place to upload. That is my difficulty.
Raphael
Fal webforumsuser@macromedia.com Guest
-
Fal webforumsuser@macromedia.com #4
Re: Updating template problem
Hi, I hope this thread is still active,
I am sorry I haven?t got back to you. I was too busy trying to sort out some webspace, and I still haven?t got any, coz it?s an asp page.
But in the meantime, I noticed something that might be the cause of the problem, see I tried the recordset on a regular page, i.e not as part of a template and it worked.
And still coupled with the error of not reading code outside the html, I noticed this on one of my pages, index.asp
<html><!-- InstanceBegin template="/Templates/primary.dwt.asp" codeOutsideHTMLIsLocked="false" -->
Would that have any bearing on my problem? As to why it?s not picking up the code of my recordset on my template page.
I?m struggling to find a place to upload. That is my difficulty.
am i allowed to attach code thru the forum, or should i not even consider it?
Raphael
Fal webforumsuser@macromedia.com Guest
-
Murray *TMM* #5
Re: Updating template problem
Fal:
the code of my recordset on my template page.> Would that have any bearing on my problem? As to why it?s not picking up
That code means that a) any changes made to the region on the template page
will not propagate to child pages, and b) that region of the child page is
available to modification - in other words, the region above <html> behaves
exactly like an editable region.
it?> am i allowed to attach code thru the forum, or should i not even consider
There is a cap on the length of a post that you can make to the forum.
If you are looking for a server that supports ASP, then don't worry about> I?m struggling to find a place to upload. That is my difficulty.
it. In fact, that's better - since what I need to see is the code....
--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver MX
(If you *MUST* email me, don't LAUGH when you do so!)
==================
[url]news://forums.macromedia.com/macromedia.dreamweaver[/url] - THE BEST WAY TO GET
ANSWERS
==================
[url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
[url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
[url]http://www.DreamweaverFAQ.com[/url] - DW FAQs, Tutorials & Resources
[url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
==================
"Fal" <webforumsuser@macromedia.com> wrote in message
news:bf4ai0$ddk$1@forums.macromedia.com...some webspace, and I still haven?t got any, coz it?s an asp page.> Hi, I hope this thread is still active,
>
> I am sorry I haven?t got back to you. I was too busy trying to sort outproblem, see I tried the recordset on a regular page, i.e not as part of a>
> But in the meantime, I noticed something that might be the cause of the
template and it worked.noticed this on one of my pages, index.asp> And still coupled with the error of not reading code outside the html, IcodeOutsideHTMLIsLocked="false" -->> <html><!-- InstanceBegin template="/Templates/primary.dwt.asp"the code of my recordset on my template page.>
> Would that have any bearing on my problem? As to why it?s not picking upit?> I?m struggling to find a place to upload. That is my difficulty.
>
> am i allowed to attach code thru the forum, or should i not even consider>
> Raphael
>
>
>
Murray *TMM* Guest
-
tif25 webforumsuser@macromedia.com #6
Re: updating template problem
Try putting :
<!-- InstanceBegin template="/Templates/template.dwt" codeOutsideHTMLIsLocked="false" -->
after the <html> tag and before the <head> tag.
Don't forget to change the path to your template path.
tif25 webforumsuser@macromedia.com Guest
-
Fal webforumsuser@macromedia.com #7
Re: updating template problem
Just checking
codeOutsideHTMLIsLocked="false" -->
you meant false, and not true,
correct?
Fal webforumsuser@macromedia.com Guest
-
tif25 webforumsuser@macromedia.com #8
Re: updating template problem
sorry about that, no true... i forgot to change it. after trying to recreate your problem, i think you should stick with the code the dreamweaver help tells you. the code i gave is actually what will be written inside the child documents. did you put code outside the <html> in the child docs? thats what would cause that error to come up "the template that you are trying to apply does not allow changes outside..." if you add the <!-- TemplateInfo codeOutsideHTMLIsLocked="true" --> code to your template page and do not have anything outside the <html> tag on the child documents, that should work for you to only have to change the code in the template. if you need to edit the code on each individual page, then add <!-- TemplateInfo codeOutsideHTMLIsLocked="false" -->. Then you can edit each individually and will not be able to edit just the tempate for global changes.
tif25 webforumsuser@macromedia.com Guest
-
Fal webforumsuser@macromedia.com #9
Re: updating template problem
Hi, sorry for taking so long to get back, but it looks like you have given me the right answer. Indeed I have created unique code inside some of the pages that use the template.
See the template page is just the outline for my pages, the menubars on the left and top of my page.
My index.asp page for example carries it?s own unique master/detail recordsets, that are of course placed outside the <html> tags.
What I was trying to do was to create a recordset now on my template page. I thought about doing this, as part of the navigation of the site, which the menu bar is technically for. Specifically I am trying to create a list/menu of quick links to appear at the top of every page, that uses the template, so index.asp will show that too. The problem is that I have to include code on the template page, for the recordset for this list/menu, and that is why I need codeOutsideHTMLIslocked=?true? but then as you have just told me I need to have ?false? because I have unique code on every page already!
So how do I proceed from here?
Have I done it all wrong? And can I get round this?
Thanks so much for your help, I really appreciate it.
Fal webforumsuser@macromedia.com Guest
-
tif25 webforumsuser@macromedia.com #10
Re: updating template problem
i'm a little unfamiliar with the whole recordsets/asp thing... do you need unique code on each individual document? or is it global like the navigation?
if not, i would say to set <!-- TemplateInfo codeOutsideHTMLIsLocked="true" --> and put the code on the template page only. This way the code will be consistent throughout the site and only need to be updated on the template page. this will also lock the code outside the HTML tag so you can not change it on the child documents. It will overwrite/delete the code outside the HTML tag in the child docs when you first do it... but in the future it will update automatically.
If you need to change the code the unique pages than you should probably set it to <!-- TemplateInfo codeOutsideHTMLIsLocked="false" --> so this way you will be add code outside the HTML tag and not have the template overwrite it.
tif25 webforumsuser@macromedia.com Guest
-
Fal webforumsuser@macromedia.com #11
Re: updating template problem
Yes, i have code on each individual page, unique to that particular page, and now i want to add alittle code to the template page, this is going to be for every page.
Am i asking the impossible or is there a way round?
thanks so much
Fal webforumsuser@macromedia.com Guest
-
tif25 webforumsuser@macromedia.com #12
Re: updating template problem
unfortunately, i think its one way or the other. i could be wrong, but i think you can either put it in the template or put it on the individual pages. maybe someone else will know if there is a workaround.
sorry i couldnt help more.
tif25 webforumsuser@macromedia.com Guest
-
Fal webforumsuser@macromedia.com #13
Re: updating template problem
Still, you tried
and i want to thank you for that
Thank you, and if i come across a solution, i will let you know
Raphael
Fal webforumsuser@macromedia.com Guest
-
Alan Ames #14
Re: updating template problem
you have to have the code above html unlocked- because you want different
code there on some of the pages based on the template- it's not identical.
so- what you'll have to do is use find and replace-
If the code string can go directly before the <html> tag- that would be the
way to go. Just be careful the search doesn't turn up multiple <html> tags
on a page that has alternate body sections...
or- with asp there's a common page header? if you code will work as the
first thing seen, you could search for that tag and replace with that tag,
and your code snip.
Don't put is locked="true" because then when you update the template- it
will wipe out all the unique code above the html tag on each page and
replace it with JUST what is there in the template....
that would wipe out many hours of work...
--> Still, you tried
>
> and i want to thank you for that
>
> Thank you, and if i come across a solution, i will let you know
>
> Raphael
>
>
>
Team Macromedia Volunteer for Dreamweaver
Certified Dreamweaver MX Developer
Alan Ames Guest



Reply With Quote

