Skip navigation
Currently Being Moderated

if I have a temp1.dwt.php with 60 files on it and one editable region, how apply to this template a

Jul 22, 2012 11:56 AM

if I have a temp1.dwt.php with 60 files on it and one editable region, how apply to this template a new temp2.dwt.php with same one editable region same place, without need to create new files and copy / paste editable region contents???

 

eg I have a 3-region layout(template) with one editable region with html tables and want to convert it to:

3-region layout(template) with one editable region with DIVs

 

editable region contents all files remain the same...

 

well?

 

dw cs6 and dw cs4

 
Replies
  • Currently Being Moderated
    Jul 22, 2012 12:01 PM   in reply to lsepolis123

    Q: "How do I convert my 60 page, table-based site to a CSS Layout?"

    A:  You must rebuild the site.

     

     

    Nancy O.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 22, 2012 12:05 PM   in reply to lsepolis123
     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2012 4:27 AM   in reply to lsepolis123

    Build a new template that is not a table-based layout. Name your editable regions the same in the new template as they were named in the existing one.  Apply the new template, one-by-one to each existing page.

     

    Alternatively, after creating and saving your template as above, close ALL files.  Then do a site-wide Find and Replace to find the old template's file name, and replace it with the new template's file name.  Now open the new template, make a trivial change to it, and save it.  Allow all files to be updated.

     

    Please make a backup copy of your entire site before attempting either of these two.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 23, 2012 4:42 AM   in reply to lsepolis123

    Yes - apply manually to each page.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 5:45 AM   in reply to lsepolis123


    Name your editable regions the same in the new template as they were named in the existing one.

     

    ???

     

    Look at the code in the old template.  Find all regions like this -

     

    <!-- TemplateBeginEditable name="whatever" -->

     

    Make note of the name.  Ensure that all corresponding regions in the new template have the same name as they did in the old template.

     

    Then do a site-wide Find and Replace to find the old template's file name, and replace it with the new template's file name.

     

    if the old template is templ.dwt and new templ.dwt.php???

     

    Find SITE-WIDE "templ.dwt" and replace with "templ.dwt.php".

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 5:47 AM   in reply to lsepolis123

    lsepolis123 wrote:

     

    how delete an editable region... and delete all content from all descentant pages?

     

    Open the template file.  In Design view, click on the editable region's cyan-colored tab.  Press the delete key.  That will delete the editable region in the template, and when the template is saved, it will delete the editable region on all child pages, including the content.

     
    |
    Mark as:
  • Currently Being Moderated
    Jul 27, 2012 8:40 AM   in reply to lsepolis123

    So - you deleted the editable region, and saved the modified template file?  Then after saving it, you elected to apply the changes to all child pages?  Can you post a link to one of these child pages so I can see the code on it?

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points