Renaming conditions
Renaming conditions
Is it possible to re-name conditions and not break everything for a given output? For example, say I have a condition called "China" and I want to rename it "Vietnam", can I do this and have it ripple to every topic in the project?
-
- Senior Propellus Maximus
- Posts: 2632
- Joined: Wed Apr 14, 2010 8:01 am
- Location: Surrey, UK
Re: Renaming conditions
You can only do it by using search-and-replace in all your topics. So, for example, you have a condition tag set called "Countries" and in it a tag called "China". In the topics it appears as MadCap:conditions="Countries.China"joel7 wrote:Is it possible to re-name conditions and not break everything for a given output? For example, say I have a condition called "China" and I want to rename it "Vietnam", can I do this and have it ripple to every topic in the project?
So you need to do a search and replace in the code for MadCap:conditions="Countries.China" and replace it with MadCap:conditions="Countries.Vietnam". And make sure your condition tag set does actually contain a condition tag called Vietnam, of course.
Started as a newbie with Flare 6.1, now using Flare 2023.
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Report bugs at http://www.madcapsoftware.com/bugs/submit.aspx.
Request features at https://www.madcapsoftware.com/feedback ... quest.aspx
Re: Renaming conditions
Thanks, that's what I figured. I would strongly suggest this as a feature enhancement for Flare, I will bring it up when I am at MadWorld.
-
- Jr. Propeller Head
- Posts: 2
- Joined: Fri May 12, 2017 8:59 am
Re: Renaming conditions
Nonsense! This is something I just did in my project today.
To change the name of a condition tag, do the following:
1. go to Project Organizer.
2. select Conditional Text folder.
3. open the relevant condition tag file in the Conditional Text folder. A table of information will appear: "Condition Tag", "Background [color]", "Comment".
4. click on the NAME of the condition tag you want to change the name of: That's in the Condition Tag column, folks; not just anywhere in the line will do.
5. Here's the magic: now hit the F2 button. The highlighting will disappear from the name cell, and a vertical editing bar will appear.
6. change the name as desired.
7. press Enter.
8. if your file contains links to other files, you will be asked if you want to retain those links. If so, click Update Links.
-Audrey Fisher
To change the name of a condition tag, do the following:
1. go to Project Organizer.
2. select Conditional Text folder.
3. open the relevant condition tag file in the Conditional Text folder. A table of information will appear: "Condition Tag", "Background [color]", "Comment".
4. click on the NAME of the condition tag you want to change the name of: That's in the Condition Tag column, folks; not just anywhere in the line will do.
5. Here's the magic: now hit the F2 button. The highlighting will disappear from the name cell, and a vertical editing bar will appear.
6. change the name as desired.
7. press Enter.
8. if your file contains links to other files, you will be asked if you want to retain those links. If so, click Update Links.
-Audrey Fisher
Re: Renaming conditions
Audrey,
this does not always work. I had to rename a condition lately and even after asking FLare to update all the links I discovered that some topics still had the old conditional text form.
I'd recommend you approach, followed by the search and replace to be on the safe side (especially if you have a multi products, multi languages, single sourcing projet )
this does not always work. I had to rename a condition lately and even after asking FLare to update all the links I discovered that some topics still had the old conditional text form.
I'd recommend you approach, followed by the search and replace to be on the safe side (especially if you have a multi products, multi languages, single sourcing projet )
-
- Jr. Propeller Head
- Posts: 2
- Joined: Fri May 12, 2017 8:59 am
Re: Renaming conditions
Magval, I like the combination approach you recommend--using Flare's automated technique to do most of the heavy lifting first, then cleaning up with a manual search. Thanks for discovering that the technique I posted doesn't always catch everything....guess it's time for me to go do a search!
Audrey
Audrey
Re: Renaming conditions
Just a quick update. I used Audrey's approach today and it worked perfectly: no clean up needed. Perhaps MadCap has really fixed this perennial source of irritation in the product updates over the past few years.