Dreamweaver Templates and Include files

Hi,
I am using dreamweaver templates so that my users can create
new pages on our Intranet using Contribute.
When I create a template and try and use an inculde file for
the menu systems I get an error. I am trying to use the following
code to inculde the asp file:
<!--#include file="/includes/menu.asp" -->
And I get the following error when saving the template:
Unbalanced body tag
I have checked and I definetly have opening and closing body
tags in the HTML. So I am wondering whether the error is caused by
the fact that the file is a dwt and not as asp.
So, is there anyway of using include files in a dreamweaver
template?
Thanks in advance for any help.

That's the wrong syntax for a file include. It should be
either of these -
<!--#include virtual="/includes/menu.asp" -->
or
<!--#include file="includes/menu.asp" -->
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Alan" <[email protected]> wrote in
message
news:C568040E.31895D%[email protected]..
>
>
>> <!--#include file="/includes/menu.asp" -->
>>
>> And I get the following error when saving the
template:
>>
>> Unbalanced body tag
>>
>> I have checked and I definetly have opening and
closing body tags in the
>> HTML.
>
> Is the include file JUST the html that would be correct
syntax for where
> it
> is used in the main file?
>
> In other words- included files should not be complete
html docs with their
> own head and body tags. That would result in multiple
head and body tags
> in
> the assembled files.
>
>
> --
> Alan
> Adobe Community Expert, dreamweaver
>
>
http://www.adobe.com/communities/experts/
>
>
>

Similar Messages

  • Dreamweaver templates and relative file paths

    It seems on occasion - especially with the embed tag - a
    relative file path in the dwt file becomes an absolute file path in
    the file it makes. The worst thing is that it doesnt happen
    consistently, Ive created 4 files from a template and now all of a
    sudden when i make a new one the path doesnt update. I'm also using
    coldfusion with these tags which could be the problem. Either way I
    dont want to have to reedit every page with notepad. Heres my code
    template code:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="730" height="295" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <cfoutput>#IEcat#</cfoutput>
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <cfoutput><embed
    src="../new/flash/navigation6a.swf#cat#" quality="high"
    bgcolor="##ffffff" width="730" height="295" align="middle"
    allowscriptaccess="sameDomain" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    </object>
    code rendered from template:
    <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
    width="730" height="295" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <cfoutput>#IEcat#</cfoutput>
    <param name="quality" value="high" />
    <param name="bgcolor" value="#ffffff" />
    <cfoutput><embed
    src="file:///D|/KMI%20websites/centerplate.ca/site/new/flash/navigation6a.swf#cat#"
    quality="high" bgcolor="##ffffff" width="730" height="295"
    align="middle" allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash" pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    </object>
    on a side note, in the object param tag when using the output
    tags inside the quotation marks of the value it turns all non
    alphanumeric characters into ascii
    any help on either problem will be much appreciated

    Whe you spawn the child page from the template, you will see
    ALL of the
    links look like that until you save the page. Once you save
    it, DW knows
    how to adjust the links so that they remain relative to the
    saved document.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ogre11" <[email protected]> wrote in
    message
    news:[email protected]...
    > It seems on occasion - especially with the embed tag - a
    relative file
    > path in
    > the dwt file becomes an absolute file path in the file
    it makes. The
    > worst
    > thing is that it doesnt happen consistently, Ive created
    4 files from a
    > template and now all of a sudden when i make a new one
    the path doesnt
    > update.
    > I'm also using coldfusion with these tags which could be
    the problem.
    > Either
    > way I dont want to have to reedit every page with
    notepad. Heres my code
    >
    > template code:
    >
    > <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    > codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    > version=7,0,0,0" width="730" height="295"
    align="middle">
    > <param name="allowScriptAccess" value="sameDomain"
    />
    > <cfoutput>#IEcat#</cfoutput>
    > <param name="quality" value="high" />
    > <param name="bgcolor" value="#ffffff" />
    > <cfoutput><embed
    src="../new/flash/navigation6a.swf#cat#"
    > quality="high"
    > bgcolor="##ffffff" width="730" height="295"
    align="middle"
    > allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    > </object>
    >
    > code rendered from template:
    >
    > <object
    classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
    > codebase="
    http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#
    > version=7,0,0,0" width="730" height="295"
    align="middle">
    > <param name="allowScriptAccess" value="sameDomain"
    />
    > <cfoutput>#IEcat#</cfoutput>
    > <param name="quality" value="high" />
    > <param name="bgcolor" value="#ffffff" />
    > <cfoutput><embed
    >
    src="file:///D|/KMI%20websites/centerplate.ca/site/new/flash/navigation6a.swf#ca
    > t#" quality="high" bgcolor="##ffffff" width="730"
    height="295"
    > align="middle"
    > allowscriptaccess="sameDomain"
    type="application/x-shockwave-flash"
    > pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /> </cfoutput>
    > </object>
    >
    > on a side note, in the object param tag when using the
    output tags inside
    > the
    > quotation marks of the value it turns all non
    alphanumeric characters into
    > ascii
    >
    > any help on either problem will be much appreciated
    >

  • Location of downloaded templates and other files

    As there is almost 4GBs of templates and related files that are downloaded for Premiere Elements 12, I would like to ensure these files are backed up. Therefore can someone please tell me where these files are stored, i.e., the fullpath name? Thanks.

    GeorgeG
    SG appears to have answered your thread question already.
    I have written blog posts about the Content situation for Premiere Elements 11 and 12. If you think that supplemental information would be of interest, these are the links to that information....
    Most recent one targets version 12, including attention to 11 user who switches to 12
    http://www.atr935.blogspot.com/2013/12/pe12-content-download-considerations.html
    The following was the first blog post on the topic - information for 11 before 12 was released
    http://www.atr935.blogspot.com/2013/05/pe11-no-content-disc-content-downloads.html
    ATR

  • Dreamweaver template update ftp files without synchronizing

    Today I change Template - Update all files based on the template - synchronize entire site.
    What I Like to do: change Template - Update all files based on the template
    and then in the same window button with ftp upload changed files!
    Why do I want this:
    The synchronization can take time on big sites, I have cms and billing system on my site with many files.
    The synchronization can take time on slow connection.
    When the time betwen two synchronization is to small Dreamweaver select all files (or many) for synchronization. I do not know if this is only my problem (maybe there is different time on my computer and the server?).
    Do we have solution for this today?
    Or can this be something to suggest for next version?
    Thanks for any suggestion

    Not sure if there is anything set up in DW yet, it does give a status window of what files were updated, you could possibly work backwards form that list (still a bit cumbersome). I also believe that if you change the template and upload it to your server, it will prompt you as to whether or not you'd like to "include dependant files", and (in theory) it will also upload the files linked associated with it... but that may need to be tested to see how well it works on a larger site.
    As a possible alternative, you could use "Server Side Includes" - which is a single file which contains a portion of your page (the top navigation, footer area, etc.), and any page that uses this element will automatically update when you upload just that one element. Here is a link which explains it better: http://www.smartwebby.com/web_site_design/server_side_includes.asp and there are several others on the web that offer more detailed explainations - one caveat is that the web server you use would need to be set up to accept SSI... most do, but something you'd need to look into beforehand...
    Hope that helps,
    Jesse

  • Concerning header files and include files

    I presently have a site I created in Frontpage 2003, Gunshows-USA.com.  It has seperate pages for each state and month.  I had a header file called head.shmtl that I included on each page.  This allowed me to create one file and reuse it on 50 different pages.  I was also able to place it on the page in such a way that I could include it under the Title of the page and even iinsert an indiviual banner above the header.shtml.  Will I be able to do basically  the same thing with Dreamwaver 5.5s header and footer function?  If so, is there anything special I need to be aware of?

    I guess I didn't quite explain myself as well as I should have. 
    1st I had used include files on my site for a header and a footer but the site broke and when I got it back up it was necessary to load code for each header file to each page to get it to appear.  I am not presently using include files on the site.  The site was created in FrontPage 2003 and I intend on migrating it to Dreamweaver as soon as I know a little more about what I'm doing with DW
    2nd.  When I had the include files working I did NOT have to change everything on every page when I wanted to change something in the header or footer.  The way I have it set up now I do.
    3rd.  Going through different tutorials books, etc I see that I can create a file with a header, a body, and a footer from the templates that are built into the program.  An example is the 3 column fixed, header and footer. My question is, if I use this layout will that layout follow throughout the site and will I be able to basically do the same as I did when I was using includes?  Will a change to the header file change every header file?
    4th.  Can I position the header file sot that it has space above it.  Or another words can I have the header file appear in the middle of the page?
    5th.  Is if possible to have more than one header or footer file and be able to call the one I want or use all one after another?

  • Dreamweaver template to update file other than html?

    Hi,
    I am using Dreamweaver CS4 to manage my website.
    The problem is i cannot get Dreamweaver to update my .tpl (php template)
    Any idea?
    Thanks

    Thanks,
    I finally figure it out how to get if fix.
    May be i should say it clear, i use dreamweaver template which is a dwt file to update all html pages in my website.
    But some of the file i use which is tpl extension (the same as html file but with template variables). The dreamweaver
    did not recognize it. The page did not show up when i make changes in dwt file.
    Then what i do is change the "configuration" > "DocumentTypes", so that dreamweaver recognize tpl as a type of html file.
    After that i change extension.txt file also. Rebuild site cache. And now its done.

  • Dreamweaver CS6 and .ctp files

    I've just installed Dreamweaver CS6 and have followed the usual instructions to get CakePHP template files (.ctp) recognised. I'm now getting a strange behaviour: existing .ctp files are working and displayed as PHP (only 'code view' is available), but when I create a new .ctp file it is being classed as plain text. Has anyone else encountered (and hopefully solved) this issue?

    If you followed the correct instructions, then all should be to plan:
    .ctp files will open as PHP files
    Design View will be available

  • RTF Templates and report file (.xdo)

    Hi all,
    I use Oracle report and I would like to migrate from that software to Oracle BI Publisher. During my tests, I encountered various problems like the following:
    I create my report (.xdo file is generated) in development with one RTF template. I load my template in the report and the system copy the rtf file is the same directory as the .xdo file. Also, the system modify the .xdo file to add a line like:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    When my report and template are ok, I update my customer to install them in production mode. When they are installed, my customer would modify the RTF template so he duplicates the RTF template, modify the file and load it in the report. Now, in the report, I have two lines:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    <template label="stkcinv2" type="rtf" url="stkcinv2.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    For my part, I modify the report in development to add a new value in the datamodel. Then I update another time my customer and erase the standard report by the new.
    the problem is that doing that, if I look at the .xdo file, I see that in the <templates> section, I have:
    <templates default="stkcinv">
    <template label="stkcinv" type="rtf" url="stkcinv.rtf" outputFormat="html,pdf,rtf"/>
    </templates>
    So the templates loaded in the .xdo file is lost and my customer must reload it in the new report. If my customer has 100 reports, each time I update the soft, he will have to reload all templates... Amazing...
    How can I do to avoid that problem ?

    Well there appears to be a bug in the RTF generator.
    It appears that Oracle want to use paragraph left and right indentation properties to pad text in cells away from cell borders. There is a bug in the rtf reader in word that causes problems if cell padding properties are used so paragraph indentation appears a sensible work round.
    By default there appears to be a left hand indentation of 5 applied to all paragraphs in cells. If a left hand cell maring is applied to cells then the left hand cell margin in the report increases in size.
    However, right hand cell margins appear to be ignored and NOT written as attributes to cell paragraph text in the the generated report, and this causes problems when trying to print an RTF report as numbers in cells get clipped by cell borders.
    Edited by: user7137712 on 18-Mar-2010 03:21

  • Data definition, templates and ldt files

    Can anyone,please, advise me where should i look up for templates,data definitions and ldt files for certain concurrent requests? I am relatively new to EBS, not quite sure where I should start looking..
    Edited by: maylo on Feb 23, 2013 4:28 AM

    maylo wrote:
    Thank you All for your reply.
    What entities (rdf, xml, concurrent programs, data definitions.....) are required to consider when migrating customization reports? Is it enough to move rdf, ldt (for concurrent program) and xml template? Do I need to get ldt for Data Definition and Templates using something like this:
    FNDLOAD apps/$CLIENT_APPS_PWD O Y DOWNLOAD $XDO_TOP/patch/115/import/xdotmpl.lct XX_CUSTOM_DD.ldt XDO_DS_DEFINITIONS APPLICATION_SHORT_NAME='XXCUST' DATA_SOURCE_CODE='XX_SOURCE_CODE' TMPL_APP_SHORT_NAME='XXCUST' TEMPLATE_CODE='XX_SOURCE_CODE'
    If anyone could give just a big picture of what is required to migrate when migrating customization reports.
    Thank you
    Maylo
    Edited by: maylo on Mar 13, 2013 1:53 AMPlease see these docs.
    How To Use XDOLoader to Manage, Download and Upload Files? [ID 469585.1]
    Running XDOLoader to Download Data for XML Publiser Data Definitions Fails with ORA-6401 [ID 374195.1]
    Unable to Download Data Templates With XDOLoader: java.lang.NullPointerException [ID 428956.1]
    How To Upload Xliff Files for XML Publisher Using XDOLoader [ID 810163.1]
    Thanks,
    Hussein

  • Where do the XMP metadata templates and keywords files go WIN XP?

    I've just changed computers and upgraded to CS6. I am trying to import my Bridge metadata templates and keywords. I have the files from the old computer but I don't know where to put them on the new computer. The same folder structure where I found them (documents and settings/username/AppData/Adobe/BridgeCS5) does not exist on my new computer after installation of CS6. I tried pasting them in the program files folder for CS6, but this didn't work. I am using Windows XP. Thanks in advance.

    I tried pasting them in the program files folder for CS6, but this didn't work.
    Not familiair with Windows but on a Mac the path you show is still the same. Did you already used Bridge once?
    Quickest way I can think of is putting the files on your desktop and from Bridge metadata and keyword panel use the little menu icon top right of the panel and choose import settings. Find and select both settings and you should be OK.
    Also check this blog out, especially if you have subscribed to the cloud:
    http://blogs.adobe.com/jnack/2012/09/photoshop-windows-xp-end-of-the-line.html

  • Dreamweaver templates and search engines

    I am running into a problem while building sites using
    Dreamweaver's Template option. These sites are not easily found by
    search engines. Anyone have any solutions?... without having to
    stop using templates?
    THANKS MUCH
    cineaste_grrl

    I can unequivocally guarantee you that there is no relation
    between your use
    of templates and your site's ranking by search engines. Can
    you post a link
    to the site, though, so we can see what the problem might be?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Cineaste_grrl" <[email protected]> wrote in
    message
    news:el1r2q$r0j$[email protected]..
    >I am running into a problem while building sites using
    Dreamweaver's
    >Template
    > option. These sites are not easily found by search
    engines. Anyone have
    > any
    > solutions?... without having to stop using templates?
    >
    > THANKS MUCH
    > cineaste_grrl
    >

  • Dreamweaver templates and video aaargh.

    I've designed a general template for my website and put in a
    general editable region for the content. I've created pages based
    on this template and find I can add text or images to the content
    area but not video. It says it has to edit the main template code
    and won't go any further.
    So, I noticed that it's trying to put a bit of script
    checking for the flash player version into the page, so I copied
    and pasted this bit of script into the template and tried just
    pasting the relevant code to load the video flv in my actual page
    but it doesn't play anything. All a bit tedious and long winded. I
    thought the idea of templates was to enable a single point of
    defining page layout and that one could creating pages based on
    this with anything you wanted in, but they seem a bit limited. Is
    this true? Am I wasting my time or can someone point me in the
    right direction?.
    cheers

    Here's the problem. When you enable that check for Flash
    version, DW tries
    to write it into the body tag of the child page. That is
    impossible since
    you cannot write into the body tag of a Template child page.
    The simple
    solution is to NOT check for Flash version. That will work.
    If you MUST check for Flash version, then you would need to
    make a dummy,
    non-Template controlled page, insert your Flash there. Copy
    the code placed
    between <body> and </body> into the editable
    region of your child page, and
    copy the call to the Flash check into a new editable region
    that you place
    immediately above the </body> tag in the Template page
    (and allow to
    propagate to all child pages. You would then place this call
    in script tags
    into that editable region.
    But first, tell us which DW you are using, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "little liz" <[email protected]> wrote in
    message
    news:[email protected]...
    >
    >
    > I've designed a general template for my website and put
    in a general
    > editable
    > region for the content. I've created pages based on this
    template and find
    > I
    > can add text or images to the content area but not
    video. It says it has
    > to
    > edit the main template code and won't go any further.
    >
    > So, I noticed that it's trying to put a bit of script
    checking for the
    > flash
    > player version into the page, so I copied and pasted
    this bit of script
    > into
    > the template and tried just pasting the relevant code to
    load the video
    > flv in
    > my actual page but it doesn't play anything. All a bit
    tedious and long
    > winded.
    > I thought the idea of templates was to enable a single
    point of defining
    > page
    > layout and that one could creating pages based on this
    with anything you
    > wanted
    > in, but they seem a bit limited. Is this true? Am I
    wasting my time or
    > can
    > someone point me in the right direction?.
    >
    > cheers
    >
    >
    >

  • Dreamweaver template and conditional logic

    I would like to create a DW template and show or hide content using conditional logic. Can this be done?
    Thx!

    tangonovember wrote: I would like to create a DW template and show or hide content using conditional logic. Can this be done?
    If the following quote is of interest to you, check out Chapter 14 of the CS3 DW manual.
    "An optional region is a region in a template that users can set to show or to hide in a template-based document. Use an optional region when you want to set conditions for displaying content in a document.
    When you insert an optional region, you can either set specific values for a template parameter or define conditional statements (If...else statements) for template regions. Use simple true/false operations, or define more complex conditional statements and expressions. You can later modify the optional region if necessary. Based on the conditions you define, template users can edit the parameters in template-based documents they create and control whether the optional region is displayed.
    You can link multiple optional regions to a named parameter. In the template-based document, both regions will show or hide as a unit. For example, you can show a “closeout” image and sales price text area for a sale item."
    Roddy

  • Error in saving template and updating files

    I'm using Dw CS3 on Windows XP. I have created a template I created from another page and then created my new pages from the template. I am still working on the site so it's all on my computer - not yet uploaded to the remote site. It was working fine for quite some time but suddenly now when I make a change to the template I am getting the following error message:
    The code on line 6 is:
    <!-- TemplateBeginEditable name="doctitle" -->
    The code immediately above and below, in case that is relevant, is:
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <meta name="keywords" content="Creighton Bookkeeping, Creighton Book Keeping, bookkeeping, book keeping, Creighton, Creighton services" />
    <!-- TemplateBeginEditable name="doctitle" -->
    <title>Your Page Title Goes Here</title>
    <!-- TemplateEndEditable -->
    <style type="text/css">
    <!--
    #wrapper {
    position:relative;
    etc ...
    As you can see, I had a problem with Dw CS3 giving my pages a tiltle so I had to adopt the workaround I found in the Dreamweaver forum.
    I can't see what the problem is on line 6; and I clearly have to give my pages a title. I have no idea how to find column 47.
    This is my first site, and yes I have used AP Divs. I have since seen all the warnings about dangers using them (after the event) and won't in future except where absolutely required. For this initial site I am using fonts in points which does not seem to be a problem in the browser when I enlarge the fonts - because they won't enlarge so the AP divs don't cause a problem that I can see. When I re-design the site in the future I'll move away from the AP divs to allow for the fonts to be enlarged in the browser.
    So, any clues as to how to clean up this code so the .dwt will save and update pages properly. Hopefully I have provided sufficient information (I haven't yet worked out how to upload the page so you can see all the code).
    Look forward to hearing of possible solutions.
    Many thanks.

    Hi Medel,
    We fully support Windows 8.1 Enterprise, therefore it is alright to use that SKU. As long as you have Windows 8.1, all that Siena needs, will be provided by the Operating System.
    As a follow up for you, on the other laptop, if you do the following what happens?
    1) Reboot
    2) Start Siena, once the machine comes back up
    3) Start a new document and save as something other than "test.siena", on your desktop
    Does it save? If it does not, you may have to post on the Windows Forum and see what suggestions are available.
    Thanks.

  • Session variable being lost between parent and include file

    I am running into the following scenario: Page 1 includes page 2, on both pages a session variable is returned to the screen. On occasions, page 2 throws an error on the session variable even though it was successfully called on page 1.
    It only happens occassionally, and is very difficult to recreate in order to debug it in realtime. Has anyone run into something like this before? Thanks!

    semi star gazer wrote:
    I am running into the following scenario: Page 1 includes page 2, on both pages a session variable is returned to the screen. On occasions, page 2 throws an error on the session variable even though it was successfully called on page 1.
    It only happens occassionally, and is very difficult to recreate in order to debug it in realtime. Has anyone run into something like this before? Thanks!
    I suspect it has less to do with page-inclusion, more to do with the code on page 2. Suppose, instead of using cfinclude, you had copied the code from page 2 into page 1, and made 1 page of it. Then the error would still have occurred. That's at least my theory.
    Have a look at how the code in page 2 handles the session. There is bound to be something not quite right about it. What kind of error do you get anyway?
    Runtime debugging can be as simple as this:
    <cftry>
    <cfinclude template="page2.cfm">
    <cfcatch type="any">
    <cfdump var="#cfcatch#"><cfabort>
    </cfcatch>
    <cftry>

Maybe you are looking for