PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Graphisme & Infographie > macromedia.dreamweaver > Site re-do -- applying commands to all files?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
Site re-do -- applying commands to all files?

Réponse
 
LinkBack Outils de la discussion
Vieux 01/07/2008, 16h57   #1
Sbles
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Site re-do -- applying commands to all files?

Newbie here; please be kind.

I've inherited a site with a plethora of similar-but-different templates. I'd
like to be able to detach all files from their templates and clean them up. Is
there capability within Dreamweaver (8) to apply a command e.g.
modify/templates/detach from template -- to all files? I haven't found this
with the app, nor any extensions.

Thoughts appreciated.


  Réponse avec citation
Vieux 01/07/2008, 18h56   #2
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Site re-do -- applying commands to all files?

> I've inherited a site with a plethora of similar-but-different templates

Yikes. How many templates? How many total pages are controlled by these
templates? How many pages are NOT under template control?

> I'd
> like to be able to detach all files from their templates and clean them
> up.


You don't want to do this. It's a one-way street. The right way is to
clean up the respective template. But if, for example, your site is 50
pages with 20 templates, then the right thing to do is to redo the site so
that you have 50 pages and 2 templates (or something like that). I mean,
why have almost as many templates as you have pages? Why use templates at
all in that situation?!

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Sbles" <webforumsuser@macromedia.com> wrote in message
news:g4dk4d$rh9$1@forums.macromedia.com...
> Newbie here; please be kind.
>
> I've inherited a site with a plethora of similar-but-different templates.
> I'd
> like to be able to detach all files from their templates and clean them
> up. Is
> there capability within Dreamweaver (8) to apply a command e.g.
> modify/templates/detach from template -- to all files? I haven't found
> this
> with the app, nor any extensions.
>
> Thoughts appreciated.
>
>


  Réponse avec citation
Vieux 01/07/2008, 23h17   #3
Sbles
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Site re-do -- applying commands to all files?

Yeah, I guess "plethora" is a bit vague. There are 14 templates and just under
1000 .htm or .html files. If I had to guess, half or less of them are
template-driven.

Maybe a different way of looking at the collection: is there a way to report
which modules are under the control of which templates? I just know if I make
some update, I get a count of the files that are updated as a result, but I
don't see a high level "Template Report" kind of thing.

Extra credit: is it straightforward to change the template being used? Let's
say there's Template1 and Template1a and their fields are identical (or close
enough). Is there a way to just change all Template1a's-owned files to be owned
by Template1?

Which there was a nice MySQL schema behind DMX -- I might shoot myself in the
foot making the updates, but at least I'd have something to try.

Thanks for your !

  Réponse avec citation
Vieux 01/07/2008, 23h26   #4
Murray *ACE*
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Site re-do -- applying commands to all files?

> Yeah, I guess "plethora" is a bit vague. There are 14 templates and just
> under
> 1000 .htm or .html files. If I had to guess, half or less of them are
> template-driven.


YIKES. Using templates on a site with 1000 files (even 300 files) is like
putting bamboo shoots under your fingernails!

> Maybe a different way of looking at the collection: is there a way to
> report
> which modules are under the control of which templates? I just know if I
> make
> some update, I get a count of the files that are updated as a result, but
> I
> don't see a high level "Template Report" kind of thing.


If you do a sitewide search for each template name, you will return all
child pages of that template. Or, you can grab this -

For templates this extension can :
http://www.massimocorner.com/dreamwe...ate_report.mxp

It reports pages associated with templates and editable regions inside all
pages

to make that job easier.

> Extra credit: is it straightforward to change the template being used?

....
> and their fields are identical (or close enough)


Assuming that their EDITABLE REGIONS ARE IDENTICALLY NAMED....

Heh - that's easy. First, make a backup of the site for safety's sake.
Change template1.dwt to template1old.dwt, and REFUSE THE UPDATE. Then
change newtemplate1.dwt to template1.dwt. Finally, open one of this
template's ex-child pages, and do MODIFY | Update Pages..., and update all
pages. Bada bing, bada boom.

If their editable regions are NOT identically named, then it'll be much more
difficult. Did I say MUCH MORE?

--
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs, Tutorials & Resources
==================


"Sbles" <webforumsuser@macromedia.com> wrote in message
news:g4ead0$m55$1@forums.macromedia.com...
> Yeah, I guess "plethora" is a bit vague. There are 14 templates and just
> under
> 1000 .htm or .html files. If I had to guess, half or less of them are
> template-driven.
>
> Maybe a different way of looking at the collection: is there a way to
> report
> which modules are under the control of which templates? I just know if I
> make
> some update, I get a count of the files that are updated as a result, but
> I
> don't see a high level "Template Report" kind of thing.
>
> Extra credit: is it straightforward to change the template being used?
> Let's
> say there's Template1 and Template1a and their fields are identical (or
> close
> enough). Is there a way to just change all Template1a's-owned files to be
> owned
> by Template1?
>
> Which there was a nice MySQL schema behind DMX -- I might shoot myself in
> the
> foot making the updates, but at least I'd have something to try.
>
> Thanks for your !
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 19h40.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,11156 seconds with 12 queries