Skip to main content
New Participant
January 2, 2023
Answered

How to delete specified tag groups in batches?

  • January 2, 2023
  • 1 reply
  • 799 views

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.

 

    This topic has been closed for replies.
    Correct answer Nancy OShea

    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.


    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.

     

    1 reply

    Nancy OShea
    Community Expert
    Community Expert
    January 2, 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).

     

    Hope that helps.

     

    Nancy O'Shea— Product User & Community Expert
    Kellan WuAuthor
    New Participant
    January 3, 2023

    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.

    Nancy OShea
    Community Expert
    Community Expert
    January 3, 2023

    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