DITA and XMetaL Discussion
XMetaL Community Forum › DITA and XMetaL Discussion › Map editor: Possible to turn off auto @navtitle?
-
edwardwoodward February 17, 2015 at 7:24 am
Map editor: Possible to turn off auto @navtitle?
February 17, 2015 at 7:24 amParticipants 5Replies 6Last Activity 7 years, 11 months agoHello.
Using Xmetal 9
With regard to this, will there be any change due to the navtitle element being recommended in place of the navtitle attribute?
We thought we would be smart and up-to-date and use the navtitle element, but Xmetal keeps recreating the redundant navtitle attribute, so we end up with both, which we don't want.
Cheers.
Derek Read February 18, 2015 at 12:48 am
Reply to: Map editor: Possible to turn off auto @navtitle?
February 18, 2015 at 12:48 amIf you go into Tools > DITA Options you can select the Update Content tab and then uncheck the checkbox marked “topicref” (on the right).
This will stop @navtitle from being populated forelements. edwardwoodward February 19, 2015 at 12:24 am
Reply to: Map editor: Possible to turn off auto @navtitle?
February 19, 2015 at 12:24 amThanks. That seems to work for any href in the map.
I don't suppose there's any way to hide the “Untitled Chapter”, “Untitled Topic” etc. placeholder that is displayed in Tags On View and Normal View. (It shows up even if a navtitle element is set.)
Derek Read February 20, 2015 at 1:54 am
Reply to: Map editor: Possible to turn off auto @navtitle?
February 20, 2015 at 1:54 amYou will need to alter some CSS.
Add the following to one of these files (which you need to change depends on your DITA version setting from Tools > DITA Options):
C:Program Files (x86)XMetaL 9.0AuthorDITAXACs1.1mapmap-base-override.css
C:Program Files (x86)XMetaL 9.0AuthorDITAXACs1.2mapmap-base-override.css[class~="map/topicref"]:before{
content: " ";
}The other selector that is involved with this shows the @navtitle value when set (so you wouldn't alter it). But in case you did want to change it the selector is this one:
[class~="map/topicref"][navtitle]:before{
content: " " attr(navtitle) " ";
display: inline;
}edwardwoodward February 20, 2015 at 7:01 am
Reply to: Map editor: Possible to turn off auto @navtitle?
February 20, 2015 at 7:01 amThanks again, but that doesn't seem to make any difference.
Derek Read February 20, 2015 at 10:24 pm
Reply to: Map editor: Possible to turn off auto @navtitle?
February 20, 2015 at 10:24 pmSorry, I missed the clue “Untitled Chapter” and just zeroed in on “map”.
You're working with a bookmap I guess, and in that case you can make overrides in one of these files (depending on DITA version):C:Program Files (x86)XMetaL 9.0AuthorDITAXACs1.1bookmapbookmap-base-override.css
C:Program Files (x86)XMetaL 9.0AuthorDITAXACs1.2bookmapbookmap-base-override.cssYou could also go directly into the main CSS file (which loads all the others that contain the actual CSS settings), bookmap_bookmap.css, and make changes there. The result would be the same.
edwardwoodward February 22, 2015 at 11:23 pm
Reply to: Map editor: Possible to turn off auto @navtitle?
February 22, 2015 at 11:23 pmThanks again.
FYI, the changes to the override files didn't make any difference, but the change to bookmap_bookmap did the trick.
-
AuthorPosts
- You must be logged in to reply to this topic.