Editing elements in multiple files


    In addition to simply finding elements, you can manipulate elements in a variety of ways by using these commands on the pop-up menu in the middle Change section of the In Multiple Files tab:

    Keep

    Keeps the element and sets, updates, or deletes its attribute.

    Rename

    Renames the element, but keeps the element's contents. You can keep the element's attributes or change them with an Attribute action.

    Delete with Content

    Deletes the element completely, including its start and end tags as well as its contents.

    Replace by its Content

    Deletes only the element's start and end tags, leaving its contents untouched.

    Delete Content Only

    Deletes only the contents of the element, leaving its start and end tags in place.

    Replace Content

    Replaces only the contents of the element, leaving its start and end tags in place. This command works on plain text contents only--for example, text that has a style applied to it such as bold is not affected by this command.

To modify an existing element:

  1. Define the search criteria and scope of the search as described in Searching for elements.
  2. In the Change section of the Find & Replace Content window, choose Keep from the Element menu.
  3. In the Change section, choose an attribute from the Attribute menu, or type an attribute in the text box.
  4. Choose one of the following options from the pop-up menu to the right of the Attribute menu:
    • Set sets the specified attribute and value for the element whether or not the attribute already exists.
    • Update updates the attribute only if it already exists in the specified element. It does not add the attribute.
    • Remove removes the attribute and its value wherever it appears.
  5. Choose an attribute value or type a value in the third Attribute text box.
  6. To add another change attribute, click the Add button New Attribute button , and then specify another attribute, operator, and attribute value.
  7. Note: To remove an attribute, click the attribute's Remove button.

  8. Click Apply to All to begin the search and carry out the specified action.
  9. The In Multiple Files tab also lets you create multiple Attribute actions to be performed during a Keep Element action. Click the Add Attribute button New Attribute button and follow the steps outlined here before you click Apply to All. GoLive performs each Attribute action defined in the Change section. You can remove an Attribute action by selecting it in the list and clicking the Remove Attribute button.

To rename, delete, or replace an existing element:

  1. Define the search criteria and scope of the search as described in Searching for elements.
  2. In the Change section of the Find & Replace Content window, do one of the following:
    • Choose Rename from the Element menu. Then type a new element name in the New Name text box. (You can create Attribute actions for a Rename Element action, if desired.)
    • Choose Delete with Content from the Element menu.
    • Choose Replace by its Content from the Element menu.
  3. Click Apply to All to begin the search and carry out the specified action.

To replace the plain text contents of an element:

  1. Define the search criteria and scope of the search as described in Searching for elements.
  2. In the Change section of the Find & Replace Content window, choose Replace Content from the Element menu. Then type the replacement text in the Content text box. It is not necessary to use quotes around the text.
  3. Click Apply to All to begin the search and carry out the specified action.

To delete the contents of an element:

  1. Define the search criteria and scope of the search as described in Searching for elements.
  2. In the Change section of the Find & Replace Content window, choose Delete Content Only from the Element menu.
  3. Click Apply to All to begin the search and carry out the specified action.