Model save Code deletes on all Pages

I'll try to explain what I can because I work only on the end front of the best site. We have built a site based on a template I created. All the pages have been built based on this model. The site uses a SQL database to propagate a list depending on what you are on the page. This info is a string of code that is located at the top of the HTML (aspx). When I change the main template, it updates all pages and deletes or should I say rewrote all the code before the model info begins. I tried to make one area editable all at the top of the page, but I get an error because it has outside the model begin code. Here is an example of code that is removed after you change the template: (thanks in advance)!

< % @ Page Language = "VB" AutoEventWireup = "true" CodeFile = "oilpastels - neocolor.aspx.cs" Inherits = "pages_oilpastels_neocolor" % >

<! DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional / / IN" " http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" >
"< html xmlns =" http://www.w3.org/1999/xhtml "" > <! - InstanceBegin template="/Templates/site-template.dwt" codeOutsideHTMLIsLocked = "false" - > "
< head >
< meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
<!-InstanceBeginEditable name = "doctitle"-->
< title > Dakota Pastels - Carand'Ache < / title >
<! - InstanceEndEditable - >
<!-InstanceBeginEditable name = "head"--> <! - InstanceEndEditable - >
"" < link href = ".. / includes/dakota.css" rel = "stylesheet" type = "text/css" / >
< style type = "text/css" >
<!--
{body
left margin: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
->
< / style > < / head >

< body >

I found a solution on another Board. Simply put <%--'comment--%> after the code (lines) I want to keep above! DOCTYPE, prevents remove it during the updating of the Dreamweaver template. Hope this helps someone else.

See you soon!

Tags: Dreamweaver

Similar Questions

  • Model slightly moving content from one page to another?

    Hi people,

    I use Dreamweaver MX (Yes, I know) on OS x 10.6.8 and I have problems with the content of the navigation in the models of moving slightly to the left and right between pages almost as created.

    See example in http://www.darrylvance.com/design_print.html and note the movement during the passage of the subpages (which are in the same position) back to the print, motion, other pages, etc..

    Top level pages have been created using a template (for navigation) and the subpages of printing have been created using a new model, which is identical to the first, except that there are navigation links added below.

    Another example is http://www.darrylvance.com/art_painting.html where the same model has been used for ALL pages, but the other and on the pages have a similar scale as in the first example.

    I'm assuming that the width of the content of the pages is causing these specific shifts, which are never seen in DW but appear when in the browser.  I rebuilt and rebuilt the offenders of the same correct pages and changed the width of the content, but I still get the same problem.

    I guess that there is some kind of anomaly in the table settings, but for the life of me I can't find.

    Thanks for your help.

    DV

    D M Vance wrote:

    The tutorial that you referenced uses a CSS style, but I'm not (AFAIK)

    No, you're not. Time to start. To maintain your site much easier.

    Linked to the head of your template CSS file contains the HTML code so it doesn't help.

    In your model, change

    ""... / 2011%20darrylvance.com/noline.css "rel ="stylesheet"type ="text/css">" "

    .

    TO

    NoLine.CSS"rel ="stylesheet"type ="text/css">" "

    Save the template and update all the child pages.

    Create a file only empty text named noline.css and insert:

    HTML {}

    Overflow-y: scroll;

    }

    Save inline.css in the directory of your Web site and upload to the server.

  • Cannot print continue on all pages except the last page in the xml editor

    I designed a model that prints continues on all pages except the last page in my xml report. Currently, it works very well when the report has two continuous pages prints the first page and last page prints my footer which is exactly my requirement. But if the release of the report is more that continue to two pages, that prints the first page and last page prints my footer but in the pages of the Middle continue is not printed

    Can someone help me with this problem. Its urgent

    Thank you

    Neednt have you checked.
    If you have inserted a front section break , and then click the new section and remove "link to the previous.

    This will ensure that you will have the same header/foot in all but the last page.

    See the user guide
    http://download.Oracle.com/docs/CD/E10415_01/doc/bi.1013/e12187/T421739T481157.htm#4535357

  • Change, detach the model could not allow a normal page save.

    After the early use of a template page, it came back to haunt me.

    I decided from the outset that the site has a few pages, do not use a template, then followed the following instructions:

    1. open the document based on a template that you want to detach.

    2. Select Edit > templates > detach the model.

    Library deleted, template updated and thought everything was fine. But, I now have page, on any change and save, come back as a model. I have watched every line of code and the research tools used and can find no template code.

    I know that this can potentially cause problems on the road and I'm looking for other solution (than to start over completely.) All pages validate and work on multiple platforms.

    Test site at: http://www.actionappliance.us

    Thank you...

    Sounds to me like there is a model that is nested within another model at some point in this process.   Basically, the index became damaged.

    I would like to make a new page.

    Nancy O.

  • How to add google remarketing code at the bottom of all pages before the closing &lt; / body &gt; tag in muse adobe

    I try to add the google remarketing code JUST before the < / body > tag to end on all my pages... they require would be at the exact spot. I tried it added via insert html and that place in the footer, but that did not work. I also tried 'page properties' 'metadata' html for the head, and that's not good either. I could go through ftp to each html page and add the code myself (125 pages) but then the next time I change and upload my site again he will crush it and is not a solution. Any help would be appreciated.

    It's googles exact statement:

    1. Place the code at the bottom of all the pages on your website, before closing </body> tag. If your site uses a common file for a footer, you can place the code snippet here rather than on each page of your Web site.

    Hi Austin,.

    Please refer to the following thread: How do I embed a Google's Remarketing tag closing "<\body> tag to all pages of Muse? "

    Kind regards

    Akshay

  • Include the code for menu on all pages at once

    Hello to everyone.

    How can I add menu navigation from the top, on folio pages at the same time, without copying the menu code in all pages separately? And how to solve this menu at the top of the page, without using the framework scrolling of content on the page?

    Similar menu, that you can see in Bloomberg Business week. When browse you the article, menu still upstairs and do scroll with the content.

    There is no way to DPS in native mode to add a menu at the top of each page which remains fixed while the player navigates. As you suggest, a moving image is a workaround. Another is to make HTML articles where your not the header code and the guard in a place fixed. In both cases, you will still see the header to move the content when the user slides left and right.

    Bloomberg Businessweek is not a publication of DPS, so I don't know how they do it.

    Neil

  • form using the trial version and it continues to repeat the information to a page (either first or last page) to all pages and deleted the contents entered in

    form using the trial version and he continues to repeat the information of a page (either first or last page) to all pages and remove the content that has been entered into.

    The fields with the same name will be the same content. You must change the names of the fields.

  • How can I combine all pages of the site to a new page of the site?

    Hello

    I use Dreamweaver cs4 on a windows pc. I have 12 pages of my site with a spry vertical navigation bar. Whenever I create a new page I then add that to the spry navigation bar. All other pages do not show this new page in the navigation bar. Thus, the spry NAV. must be site wide update. Is it possible to update the spry navigation bar site wide in a few clicks? Is there an easy way of all the other page a link to this new page? I have a rendering template, but all pages on my site are now detached from this model. Whenever I saved the template in an html file to create a new page in the navigation bar was the word inside template, so I just deleted it out of the code. As you can probably I'm pretty new to dreamweaver so any help will be greatly appreciated to say the least. I checked everywhere wherever I can think of for the answer

    Thank you for taking the time to help, dluthier

    Is it possible to update the spry navigation bar site wide in a few clicks? Is there an easy way of all the other page a link to this new page?

    Yes, there are ways to have all the pages to be updated when you make changes to a navigation bar.  However, the way you describe the situation you currently do it all manually.

    The easiest way to update a navigation bar:

    1. the use of serverside includes: this is a basic tutorial explaining what is a SSI and how it's done.

    http://bignosebird.com/SSI.shtml

    2. the other is the use of models - that you tried.

    I have a rendering template, but all pages on my site are now detached from this model. Whenever I saved the template to a file html to create a new page in the navigation bar was the word inside template, so I just deleted it out of the code

    That's where you went wrong, you save the template with a new name, and save it as an html file.  You must use: Create New > model.  This way, you create a new page of the master model and save it in the root of your site - and this is what is called a "page of the child".

    Using DW templates:

    http://www.Adobe.com/devnet/Dreamweaver/templates.html

    The differences between the use of SSIs and DWTs (template file):

    With a SSI file, you make changes to the file and all the pages, the inclusion of which will update automatically and you need only download a SSI whenever you make a page.

    If you use a model, whenever you make a change, once again all children pages are updated, but you need to download * all * changed pages.

    I hope this helps.

    --

    Nadia

    Adobe® Expert community: Dreamweaver

    http://Twitter.com/nadiap

    --------------------------------------------------

    Unique templates CSS | Tutorials | SEO articles

    http://www.DreamweaverResources.com

    http://csstemplates.com.au/

  • [basiljs] remove all pages except one

    In a script, I create pages, export to PDF, remove pages and then create a new etc.

    Right now I use this:

    [code]

    for (var j = b.pageCount (); j > 1; j-) {}

    b.removePage (j);

    }

    [/ code]

    But it's really slow. I think that indesign made many calculation after deleting a page (deadline: link textfields) so it would be more efficient to remove all pages at once.

    Now my question is how do?

    I tested and if I delete about 5500 empty pages with the script it takes about 8 minutes.

    If I select all in indesign, and then delete it takes about 10 seconds.

    Another way to speed up a litle is to erase all the content. It will take a long time but probably a bit faster.

    Thing is that I have

    b.Clear (b.doc ());

    but this removes the master page as well and I need to keep the master page.

    In short, how to remove all pages (except one since indesign needs a single page) at the same time?

    Hello

    I will remove a lot of pages in indesign with

    • Use documentPreferences.pagesPerDocument (faster)
    • use while loop or for
    • Close doc without saving changes, and then open again. (in some cases)

    Here's the test code, run with old Macbook Air + CS5 + OSX10.7

    var pp = function (args) {
      $.writeln(args);
    }
    
    var remove_all_pages_use_pref = function (doc) {
      pp("start deleting (use preferences)");
      $.hiresTimer;
      doc.documentPreferences.pagesPerDocument = 1;
      pp("end deleting");
      pp($.hiresTimer);
    }
    
    var remove_all_pages_use_loop = function (doc) {
      var i = doc.pages.length;
      pp("start deleting (while --)");
      $.hiresTimer;
    
      while (i--) {
        if (i==1) {break;}
        doc.pages[i].remove();
      }
      pp("end deleting");
      pp($.hiresTimer);
    }
    
    function main() {
      var doc = app.documents.add();
      $.hiresTimer;
      doc.documentPreferences.pagesPerDocument = 5500;
      pp('# create 5500 pages');
      pp($.hiresTimer);
      var indd = new File("~/Desktop/5500.indd");
      doc.save(indd);
    
      pp("------------");
      remove_all_pages_use_pref(doc);
      doc.close(SaveOptions.NO);
    
      pp("------------");
      pp("# try another way");
      var doc2 = app.open(indd);
      remove_all_pages_use_loop(doc2);
      doc2.close(SaveOptions.NO);
    }
    main();
    

    result

    # create 5500 pages
    30395026
    ------------
    start deleting (use preferences)
    end deleting
    28215999
    ------------
    # try another way
    start deleting (while --)
    end deleting
    268641063
    

    Thank you

    mg

  • Deletion of a page template

    This topic has been published and responded in support of apple community.  However, as I followed the instructions... HD, users, your Acct, library, Application support, iWork... here!  That's where I hung up.  I don't have the option of "iWork" in my application support folder.  I have these choices only: Adobe, iWeb, and iDvd.  So now I'm stuck.  Please help me navigate my way through this!  THX.

    She begins by telling us which specific version of Pages you use. It is located in the application menu Pages: pages. According to this information, the next step to remove a model can be satisfied.

    Deleting a custom pages ' 09 template approach is more complex.

    If you are using any release of v5 Pages, then all you have to do is say pages to create a new document, and once the model selector is present, you select the my templates category, find the template you want to delete and then Ctrl-click on this model and choose Remove in the rollout.

  • Assignment of a model of Muse to the 404 Page not found page

    I recently create a template for my blog by following these steps:

    1. I created a template in Muse
    2. I have added the {tag_pagecontent} tag on a page of Muse and assigned the page model.
    3. Then, I upload this page to Business Catalyst.
    4. BC looked the page I created in Muse as a template. I guess that's because he had the {tag_pagecontent} tag.
    5. Then I assigned the page on the blog and everything worked perfectly.

    I will now assign the main template on my website to the error page 404 Page not found so that the pages are compatible. How can I do this?

    How can I get BC to recognize a page created in Muse as a model of BC? Or simply, how can I assign a model created in Muse on 404 pages without adding a {tag_pagecontent} or similar floor in Muse? I currently don't see any models that I created in Muse as an option to select.

    Hi Rick,

    In order to access all the menu items in British Colombia, please follow the steps below: -.

    (1) on the dashboard of BC, expand the drop-down list on the upper right side that has your name.

    (2) select "my details".

    (3) scroll down and check the box 'enable editing of content online.

    (4) save the details.

    (5), it will ask for the password, enter it and click on continue.

    (6) controls the site again Manager menu. It must contain all the submenus.

    Kind regards

    Neha

  • Export all pages in JPG format

    Hi friends

    I use to write scripts for Photoshop, Bridge and Illustrator. But it s my firt time to write scripts for Adobe InDesign (and my first on this forum too). I m used to with the reference document JavaScript to this software 3, so I m getting direct assistance via the "Viewer object model" within the scope of the Script Toolkit for writing with InDesign.

    I want to export all pages in my document using JPG in the file format. Set the properties of an instance of JPEGExportPreference and I would like to use this configuration to export all pages. I'm just using the app.activeDocument.exportFile () method?

    Because I have not found a place to declare the method to read my JPG preference. It s also a range of error pages was not defined. Could you analyze my code and see what I m lack?

    Thank you very much:

    myDoc var = app.activeDocument;

    fName var = myDoc.name.slice (0, myDoc.name.lastIndexOf ('.)) »)) ;


    var older = new file (myDoc.filePath + ' / ' + fName + '(exported)');

    If (! oFolder.exists) {}

    oFolder.create ();

    };

    var fOutput = new queue (older + ' / ' + fName + ".jpg");

    var opJPG = new JPEGExportPreference();

    opJPG.antiAlias = true;

    opJPG.embedColorProfile = true;

    opJPG.exportResolution = 300;

    opJPG.jpegColorSpace = JpegColorSpaceEnum.RGB;

    opJPG.jpegExportRange = ExportRangeOrAllPages.EXPORT_ALL;

    opJPG.jpegQuality = JPEGOptionsQuality.HIGH;

    opJPG.jpegRenderingStyle = JPEGOptionsFormat.BASELINE_ENCODING;

    opJPG.simulateOverprint = true;

    opJPG.useDocumentBleeds = false;

    myDoc.exportFile (ExportFormat.JPG, fOutput, false);

    Gustavo, otherwise than in Illustrator (don't know about PS and bridge), in InDesign scripts you cannot 'create' new objects using this notation:

    var opJPG = new JPEGExportPreference();
    

    Try one with... statement rather directly modify the existing object:

    with (app.jpegExportPreferences)
    {
      antiAlias = true;
      embedColorProfile = true;
      .. etc.
    }
    

    (I know, there are a lot of articles that claim "with statement considered harmful", but for this particular case I don't see why, because it's just a shortcut for writing)

    app.jpegExportPreferences.antiAlias = true;
    app.jpegExportPreferences.embedColorProfile = true;
    .. app.jpegExportPreferences.etc.
    

    .. and so on.)

  • Returns Code deleted after the closing/opening file

    Hello

    I have a strange problem with the code I deleted a .cfm page in DW (CS4) back once the document has been closed and reopened. All changes to the file are there, it's just that some code that prevents his return. Sometimes with just this file, no one else.

    The code keeps returning is "< tr >" and it does not appear until 3 "< td >" tags that are on the page. There is already a "< tr >" properly tag placed on the page.

    A simplified example of what is happening...

    < b >

    < tr > <> < table > 1 td

    < tr > <> < table > 2 td

    < tr > <> < table > 3 td

    < /tr >

    Anyone know why this is happening and how to stop it?

    Thank you!

    A fix for this problem that I had understood for what it's worth, a co-worker. Installs the first inside the tr tag cfoutput tag.

    Bad code. "Dreamweaver inserted the"'tag where it belongs.

    Good code.

    class = "" #thisClass # ">"

  • How auto update a section on all pages.

    Hello

    I have an article on the right side of a website that I am developing with txt and it is controlled by CSS, which also appears on all the other pages, so I want to be able to do is when I add some new text on a single page, it will be automatically updated with the new txt on all other pages to save copy me and paste the same bit of txt on all pages.

    Hope that makes sense and hope that someone can help.

    Thank you

    Bignosebird, link com I provided in my initial response will guide you through the creation of a SSI :-)

    If your server supports php, you can also use a php include

    http://www.w3schools.com/php/php_includes.asp

    What you need to do is create an inclusion - this is the text that will be replaced or updated on every page.  The only thing that goes in this document is the text, without html/code tags at all.   Save it as for example: news.php

    And then on the index page, you select an area - probably a div (style so that it looks like a news box) and in this area, you'd call the include file...

    for example: according to the w3schools above link:

    You would then create this include on every page of the site.

    When the client wants to update the article, it just needs to open the news.php file and change or add to the need and save the file - pages would automatically update.

    You really need to read the links already provided - its all pretty explicit :-)

  • Same header on all pages

    What is the preferred method to place the same header in all your pages? In this case, it's a logo with navigation buttons that were created in Fireworks.
    1. Insert Fireworks HTML code in each page.
    2. make a library item and put it on every page.
    3. put on a page PHP and a PHP require or include all pages.
    4 put in a model and to make all pages.
    Options 2-4 would automatically update on every page, if it was modified, no?
    Other options?
    Thanks to you all.

    I mean that FW HTML (and the HTML written by all graphics applications) is not suitable for anything other than gross prototyping.  Unfortunately, I guess that something over 20% of all the posts on this forum are people who have tried to use this HTML in a production environment.

    If you want the navigation on the page elements, create your buttons in FW and export them in the DW website.  Then, build your navigation item by applying a link on each button, then a swap image behavior.  It is simple and reliable.

Maybe you are looking for