Skip to main content
March 31, 2018
Answered

Deleting/renaming of conditional tags

  • March 31, 2018
  • 2 replies
  • 825 views

I'd like to delete and rename a conditional tag simultaneously.

An FM file contains two condition tags: Pro (for experts) and Light (for beginners).

Now, the beginners have turned into experts, and I don't need the tag Light anymore.

The information (formerly tagged Light) should now be tagged Pro, too.

Is there an easy way to turn any Light tag into a Pro tag?

Did I miss something in the Show/Hide Conditional Text pod or the Conditional Tags pod?

Is there an easy alternative without converting to/working with a MIF file (and maybe damaging it)?

    This topic has been closed for replies.
    Correct answer Barb Binder

    I would:

    1. Put my cursor in text assigned the Pro tag
    2. Edit > Copy Special > Conditional Text Settings
    3. Edit > Find/Change
      1. Find: Conditional Text... and move Light into the first column
      2. Change: By Pasting
    4. Then remove the Light tag from the Conditional Tags Panel

    ~Barb

    2 replies

    Legend
    March 31, 2018

    Or you try the free ExtendScript "Super Find Change", which does exactly what you want: Find and replace text with a certain conditional tag and delete the tag after replacing:

    Warning: It's an example ExtendScript that is intended to show what you can do with ExtendScript. So, make a backup copy of your files first ;-)

    You can download it here: FrameMaker Super Find / Change Reloaded – Adobe Technical Communication Blog

    For FrameMaker 14 just unzip it to FrameMaker's "Startup" folder in your user profile:

    %appdata%\Adobe\FrameMaker\14\Startup

    If the folder "Startup" is not there yet, just create it.

    After a FrameMaker restart, you can find it in > File > Utilities > Super Find Change

    Barb Binder
    Community Expert
    Barb BinderCommunity ExpertCorrect answer
    Community Expert
    March 31, 2018

    I would:

    1. Put my cursor in text assigned the Pro tag
    2. Edit > Copy Special > Conditional Text Settings
    3. Edit > Find/Change
      1. Find: Conditional Text... and move Light into the first column
      2. Change: By Pasting
    4. Then remove the Light tag from the Conditional Tags Panel

    ~Barb

    ~Barb at Rocky Mountain Training
    April 2, 2018

    Many thanks for the hints.

    Copy Special. Nice function. I never used it. Now I will do.

    And the script Super Find Change works too.

    Barb Binder
    Community Expert
    Community Expert
    April 2, 2018

    Hi Lothar:

    It's a feature that is often overlooked by my students, but it greatly extends By Pasting in the Find/Change dialog box—one of my favorite document "fixers".

    ~Barb

    ~Barb at Rocky Mountain Training