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

How to delete specified tag groups in batches?

Community Beginner ,
Jan 02, 2023 Jan 02, 2023

Copy link to clipboard

Copied

Hello everyone:

How to use the "Find and Replace" function in Dreamweaver to delete in batches the five groups of tags (including their contents) that are highlighted in the bottom right of the html with a total of more than 8,000.

Thank you very much.

 

Views

336

Translate

Translate

Report

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 2 Correct answers

Community Expert , Jan 02, 2023 Jan 02, 2023

Assuming your code resembles this:

<div class="container">

 <div> </div>

 <div> </div>

 <div> </div>

 <div> </div>

</div>

 

Ctrl + Shift + F to open advanced Find & Replace

Advanced tab (see screenshot).

image.png

 

Hope that helps.

 

Votes

Translate

Translate
Community Expert , Jan 06, 2023 Jan 06, 2023
quote

Let's say I have a new tab group (including its content), how do I batch add it in a folder containing over 8000 .html files?


By @Kellan Wu

========

Short answer: Do it dynamically with scripts. 

 

When a website exceeds 50 pages, it's time to use server-side solutions and databases. 

 

As an example, I maintain a thousand+ page website with just 5 static web pages. Content is populated from the MySQL database to a generic detail page with PHP scripts.  All the heavy lifting takes place on th

...

Votes

Translate

Translate
Community Expert ,
Jan 02, 2023 Jan 02, 2023

Copy link to clipboard

Copied

Assuming your code resembles this:

<div class="container">

 <div> </div>

 <div> </div>

 <div> </div>

 <div> </div>

</div>

 

Ctrl + Shift + F to open advanced Find & Replace

Advanced tab (see screenshot).

image.png

 

Hope that helps.

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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 ,
Jan 03, 2023 Jan 03, 2023

Copy link to clipboard

Copied

Big thanks to Nancy O'Shea, just tried it out and it works (fig 001).
But I have a question, can these five tag groups only be deleted one at a time?
Because I added all 5 search conditions together and executed 25 files in the folder in batches, the result showed that nothing could be found (Figure 002).
How should this be done? Thank you.

Votes

Translate

Translate

Report

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 Expert ,
Jan 03, 2023 Jan 03, 2023

Copy link to clipboard

Copied

The attributes listed in your F&R panel don't jive in any way with those in your DOM panel.

 

You must be very precise or less selective about what you're searching for.

 

Open a document. 

Test your search query on the Current Document before moving on to more documents.

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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 ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

I get it,thanks a lot. Can I ask another question? How to reverse the above situation? Let's say I have a new tab group (including its content), how do I batch add it in a folder containing over 8000 .html files? Thank you.

Votes

Translate

Translate

Report

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 Expert ,
Jan 06, 2023 Jan 06, 2023

Copy link to clipboard

Copied

quote

Let's say I have a new tab group (including its content), how do I batch add it in a folder containing over 8000 .html files?


By @Kellan Wu

========

Short answer: Do it dynamically with scripts. 

 

When a website exceeds 50 pages, it's time to use server-side solutions and databases. 

 

As an example, I maintain a thousand+ page website with just 5 static web pages. Content is populated from the MySQL database to a generic detail page with PHP scripts.  All the heavy lifting takes place on the server, not in individual files.

 

Nancy O'Shea— Product User, Community Expert & Moderator

Votes

Translate

Translate

Report

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 ,
Jan 18, 2023 Jan 18, 2023

Copy link to clipboard

Copied

LATEST

Big thanks to Nancy O'Shea.

Votes

Translate

Translate

Report

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