Solved

Removing contents off the tables

Posted on 2004-10-05
4
143 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Insert multiple row form with checkboxes 9 1,038
Create login page using dreamweaver cs6 and mysql (phpMyAdmin) 6 12,184
Setting up PHP server 3 213
Site contents shift off page in IE 32 131
For those who don't know, Adobe Dreamweaver is a popular commercial web editor that enables you to design, build and manage complex websites. The editor is a WYSIWYG (What You See Is What You Get) web editor, which means that you can create your web…
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 …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

860 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