Solved

Removing contents off the tables

Posted on 2004-10-05
4
142 Views
Last Modified: 2010-04-25
Helle everyone,
I need to remove tables from about 700 pages, in a batch. Here is the problem. To create a frame effect I had built two tables and then placed my images or text in em. Now if i remove the tables it takes the content away too. Is there any way to remove the template and then remove the 'titles and meta' from page and contents from within the tables and apply content to new template in a batch. I am pressing for time and can't strip them out pages by pages. Your assistance would be greatly appreciated. Here is the sample code:

<html>
<head>
<title>Times Trinidad Port of Spain</title>
<META Name="description" Content="Times">
<META Name="keywords" Content="Time Times Table">
</head>
<body><table width="100%" border="1" cellspacing="10" cellpadding="7" bgcolor="#AAAAAA" bordercolor="#000000">
<tr>
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#CCCCCC">
<tr>    
<td valign="top" width="646" bgcolor="#FFFFFF" bordercolor="#000000">
<p align="center"><img src="../../images/Times/TrinidadSpain.gif"
alt="Image is loading ............" name="Trinidad" width="720"
height="1751" id="Trinidad"></p>
</td>    
</tr>
<tr>
</tr>
</table>
</body>
</html>
0
Comment
Question by:tahirr
  • 2
  • 2
4 Comments
 
LVL 14

Accepted Solution

by:
Esopo earned 500 total points
ID: 12233845
Hi,

>>Is there any way to remove the template...<<
What template? Is this design based on a DW template? if so, it should be as easy as 1, 2, 3.

If you did not build your site based on a template, then it's easy too.

First of all back-up your files ;) (we don't want to click the wrong button and damage 700 pages)

Now, DreamWeaver allows you to Search & Replace code in the entire site.

Basically, what you want to do is hit - Ctrl + F - to open the Search dialog and so something like this:

**********************
FIND IN: Entire current local site (or selected folder, or selected files)

SEARCH: Source code

FIND:
<table width="100%" border="1" cellspacing="10" cellpadding="7" bgcolor="#AAAAAA" bordercolor="#000000">
<tr>
<td>
<table width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#CCCCCC">
<tr>    
<td valign="top" width="646" bgcolor="#FFFFFF" bordercolor="#000000">


REPLACE:
<table width="100%" border="1" cellspacing="0" cellpadding="0" bgcolor="#FFFFFF" bordercolor="#CCCCCC">
<tr>    
<td valign="top" width="646" bgcolor="#FFFFFF" bordercolor="#000000">

click REPLACE ALL.
**********************

That search will look for the unique code of the table you want to remove and then replace it with similar code but without the first table.
That search will remove to upper code for the table, now you remove the lower part with a new similar search.

Make sure you check ALL your pages are ok after this. Chances are you might have to modify a few by hand.

Good luck,

Esopo.



0
 

Author Comment

by:tahirr
ID: 12234528
Hi Esop,

Thanks for the posting.
Yes they are attached to Dreamweaver template. But when I detach them from template they loose the link to that one tempalate but the coding remains intact. Know any way to remove the design of template to be removed too when I detach it? and how can I detach the whole site from template instead of doing one at a time.

Thanks.
Tahirr.
0
 

Author Comment

by:tahirr
ID: 12283268
Hi.

Thanks Esopo for intruducing me to that valuable search and replace feature in dreamweaver. I did not have to search and replace. All I did was that pasted the codes needed to be replaced and left the replace field empty. Cleaned out the whole site. Thanks again.

Tahirr.
0
 
LVL 14

Expert Comment

by:Esopo
ID: 12283345
You are welcome! I'm glad it worked for you. I use Search & Replace all the time, it's very useful and powerful.
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Dreamweaver CS5.5 Error 5 537
dreamweaver cs6 keep getting error 2 msg 16 393
Spry missing in DWcc 6 316
can't connect to server via ftp from dreamweaver 22 2,441
Adobe Dreamweaver CS5 is a WYSIWYG web page editor that has advanced HTML, CSS, and Javascript rendering functionality and is probably the most well-known HTML editor available. Much of Dreamweaver's appeal centers around the Design View interfac…
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…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

776 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