Our site www.viart.com site is operated by latest Viart Shop 5 with default Clear design
Topic Information
dani
dani
http://www.fedstats.gov/508workshop/Brown/tabletalk.html
 
This site shows some regular expressions that can be used to remove table tags quickly... they can also be used to edit the attributes of HTML tags in general. You can use them in the Find/Replace functions of most html editors; including Dreamweaver, Notepad++, and TextWrangler.
 
This was a HUGE help to me since I'm quite attached to CSS based layouts and removing the tables was Wall Bash using the manual Find/Replace technique.
 
Hope this helps someone Broad grin
Last modified: 13 Aug 2008 8:07 PM
 
dani
dani
Here's a basic example..
 
You could use this regex in the search field:
<tr.*?>
which would select all tr tags with or without attributes. Replace them with whatever you want, you can use any other html tag to achieve the same result.
 
arkid
arkid
just to add, for anyone with dreamweaver.
 
Simply goto the Commands/CleanUp HTML menu option and then tick the "specify tags" option and add the tags of tables here.
 
So simply enter table,td,tr
 
...and voila!
 
TOCDCO
TOCDCO
what does this do? why would this be necessary?
 
NTM
NTM
Just wondering, Dani, how it's going with getting the templates out of tables? I've considered trying this for a new client, and wondered if there were some issues I should watch out for when cleaning up the code.
 
dani
dani
Oh.. I didn't notice this thread has been bumped.
 
NTM - I stripped out most of the tables except for the ones in the checkout pages to save time, but I still tried to simplify them a bit. The main issues to watch out for is making sure the Viart comment tags stay intact because they determine where/if dynamic data is placed within the template. You should also experiment with where to place your <div> and other tags in relation to the comment tags.
 
Edited: Great Dreamweaver tip arkid :)
Last modified: 2 Feb 2009 3:59 PM
 
NTM
NTM
Ah, the comment tags - thanks for that bit of info. I'm hoping to work on this when I have some free time (whenever that might be!)
 
Thanks!
 
Also, thanks to arkid also, this tip has been extremely helpful on a number of occasions.