Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Multiple HTML Files

Community Beginner ,
Sep 24, 2006 Sep 24, 2006
Question:

I have to make 4 or 5 changes (the same changes) to about 90 HTML files that are almost the same (different photos and photo labels). Is there a way to make a change take place in multiple files?
TOPICS
Server side applications
822
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Beginner , Sep 25, 2006 Sep 25, 2006
Thank you ... thank you.

It worked. I moved the files into a "Site" which I created. Then highlighted the 94 files I needed to make changes to and used search and replace to make the changes.

Thank you ... very much!
Translate
LEGEND ,
Sep 24, 2006 Sep 24, 2006
Did you use a Dreamweaver template to create the html files? If you didn't
.. not really .. unless you make a template that works for those files and
attach each one .. then make your change to the already attached files.


--
Nancy Gill
Adobe Community Expert
BLOG: http://www.dmxwishes.com/blog.asp
Author: Dreamweaver 8 e-book for the DMX Zone
Co-Author: Dreamweaver MX: Instant Troubleshooter (August, 2003)
Technical Editor: DMX 2004: The Complete Reference, DMX 2004: A Beginner's
Guide, Mastering Macromedia Contribute
Technical Reviewer: Dynamic Dreamweaver MX/DMX: Advanced PHP Web Development



"loftus49" <webforumsuser@macromedia.com> wrote in message
news:ef6kgi$e9d$1@forums.macromedia.com...
> Question:
>
> I have to make 4 or 5 changes (the same changes) to about 90 HTML files
> that
> are almost the same (different photos and photo labels). Is there a way
> to
> make a change take place in multiple files?
>


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 24, 2006 Sep 24, 2006
Nancy, the 90 html files were created by the Dreamweaver Commands/Create a Web Page Photo Album command. After I created them, I noticed that the background was not dark enough and the big pictures were not centered. I could go into the Pages file and correct (via html) the 90 or so pictures. But there are about 5 html changes to color, links, centering, etc. x 90 files. Arrrrgh. Do you have a better way?

I could do the photo album creation over, but I've been unable to find a way to control background and position.

Duane
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 24, 2006 Sep 24, 2006
loftus49 wrote:
> I have to make 4 or 5 changes (the same changes) to about 90 HTML files that
> are almost the same (different photos and photo labels). Is there a way to
> make a change take place in multiple files?

Dreamweaver's Find and Replace (one the Edit menu) will perform very
sophisticated sitewide replace operations. Without knowing the details
of what you want to do, it's difficult to give any further advice.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 24, 2006 Sep 24, 2006
David,

The 90 html files were created in Dreamweaver via "Commands/Create Web Page Photo Album" command. After I created them, I noticed that the background was not dark enough and the MAIN pictures were not centered. I went into the Pages directory and found I could correct (via html) the 90 or so pictures. But there are about 5 html changes to color, links, centering, etc. x 90 files. Arrrrgh. Do you have a better way?

I could do the photo album creation over, but I've been unable to find a way to control background and position.

Duane

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2006 Sep 25, 2006
loftus49 wrote:
> But there
> are about 5 html changes to color, links, centering, etc. x 90 files. Arrrrgh.
> Do you have a better way?

There are two ways you could do it, both involving Dreamweaver's Find
and Replace. The first involves finding the relevant attributes and
changing them to the values you want. The other involves removing the
attributes and restyling the gallery with CSS. The way you use Find and
Replace is basically the same for both operations.

1. Go to Edit > Find and Replace.
2. Assuming your gallery is in a single folder, select "Folder" for
"Find in". Then browse to the folder where the gallery is.
3. In the "Search" field, select "Specific tag" and then select the tag
from the drop-down menu alongside.
4. Select "With Attribute". Select the attribute you want to change.
Leave "=" unchanged. Type in the current value.
5. Set "Action" to "Set attribute". Select the name of the attribute and
type the new value in the "To" field. If you want to use CSS instead,
set "Action" to "Remove attribute".
6. Click "Replace All". You will be warned that the changes cannot be
undone in files that are not currently open. If you're confident that
the changes are what you want, click OK.

You will need to do this with each of the five items you want to change,
but it's a lot faster than doing it by hand in 90 pages.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Sep 25, 2006 Sep 25, 2006
Thank you ... thank you.

It worked. I moved the files into a "Site" which I created. Then highlighted the 94 files I needed to make changes to and used search and replace to make the changes.

Thank you ... very much!
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Sep 25, 2006 Sep 25, 2006
LATEST
loftus49 wrote:
> Thank you ... thank you.
>
> It worked. I moved the files into a "Site" which I created. Then highlighted
> the 94 files I needed to make changes to and used search and replace to make
> the changes.

Glad to have been of help. The Find and Replace feature in Dreamweaver
is very powerful and well worth getting to know.

--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines