Apply new page layout to existing HTM files

Posted on 2004-11-05
Last Modified: 2010-05-18
I have nearly 1300 htm files that need to be updated to a new look.  I don't want to change the content of the page, but want to put that content in a new layout.  Does anyone know of a way to do this without having to touch and modify each of  the 1300 files?

Question by:johnson00
    LVL 12

    Assisted Solution

    As far as i know, i dont think there is an easy way of doing that. Unless your initial design of the site was everything dynamically driven and all content are from the database or some other similar method, which means that your content is totally separated from your page layouts. So all the content is basically retrieved depending on the given parameters and populated on the same file, i.e. although the content of the pages are different but it all get displayed in the same page.
    If that's the case then you can easily change that page and should change the whole site layout, otherwise i am afraid there is no easy way, but doing page by page. Please someone correct me if i am wrong with this, thanks.

    One thing i think you should be able to update easily is the CSS file, the stylesheet file. It should be only one stylesheet that is shared across the site. You only have to change the styles in the CSS file (but not changing the name of the styles), it should get changed across the whole site.


    Accepted Solution

    The only way I know is if the intial pages were created using templates, you can apply a new template to all the new pages you want.
    LVL 2

    Author Comment

    Well, you've both confirmed my fear that those were the only answers to my question.  I was hoping that there was just some trick out there that I was unaware of.  Looks like I'll be busy for the next few weeks with my 1300 pages.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    I still run into .cgi files every now and then. In some instances, I actually prefer the simplicity of a .cgi script to other options. Since I use DreamWeaver extensively, what I needed was a way to open .cgi scripts in Dreamweaver. And I wanted to …
    This article is very specific and is only intended to help if you are installing Dreamweaver 8 in a Windows 7 environment with Office 2007 installed.   I'm not sure why Microsoft tends to release OS' that should not be released but they do.  Windows…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    794 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now