This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Dreamweaver > January 2005 > can you batch apply templates?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author can you batch apply templates?
deltadada

2005-01-18, 11:19 pm

I want to rip out the top and bottom of about 800 html files in my site and
replace them with SSIs. I was thinking templates might be a way to accomplish
this, but I can't figure a way to automatically attach template to multiple
existing files.

Any ideas?

Murray *TMM*

2005-01-18, 11:19 pm

Nope - there is not a way to batch apply templates. And it's a good thing -
since applying a template to a page with existing content is messy. But if
it's a piece of code that will be replaced with an SSI, then use a sitewide
Find and Replace (after making a backup of the site) to find the code, and
replace it with the include link.

--
Murray --- ICQ 71997575
Team Macromedia Volunteer for Dreamweaver
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com - Template Triage!
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
==================

"deltadada" <webforumsuser@macromedia.com> wrote in message
news:cs5vfr$hvn$1@forums.macromedia.com...
>I want to rip out the top and bottom of about 800 html files in my site and
> replace them with SSIs. I was thinking templates might be a way to
> accomplish
> this, but I can't figure a way to automatically attach template to
> multiple
> existing files.
>
> Any ideas?
>



Alexandro Colorado

2005-01-18, 11:19 pm

The way I would go with this is using the rather dangerous and
"backup-before-doing this" find and replace across the site.

Then again you should be proficient on regular expression and like I said,
make a zip of the site before doing this.

On Thu, 13 Jan 2005 14:10:03 +0000 (UTC), deltadada
<webforumsuser@macromedia.com> wrote:

> I want to rip out the top and bottom of about 800 html files in my site
> and
> replace them with SSIs. I was thinking templates might be a way to
> accomplish
> this, but I can't figure a way to automatically attach template to
> multiple
> existing files.
>
> Any ideas?
>




--
Alexandro Colorado
------------------------------
Support Engineer
InterAKT Online
http://www.interaktonline.com
Tel: 40(21) 312.5312
Alan

2005-01-18, 11:19 pm

i wouldn't mess with templates for this-

What may be possible is just a find and replace, finding the desired chunk
of code. If the chunk is identical in all pages, not difficult. If the
chunk varies, will have to try and craft a regular expression.

Safest would be manually opening the pages- it would take hours though and
be a grinding repetitive thing

> I want to rip out the top and bottom of about 800 html files in my site and
> replace them with SSIs. I was thinking templates might be a way to accomplish
> this, but I can't figure a way to automatically attach template to multiple
> existing files.
>
> Any ideas?
>


Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews