DITA and XMetaL Discussion

XMetaL Community Forum DITA and XMetaL Discussion Map editor: Possible to turn off auto @navtitle?

  • edwardwoodward

    Map editor: Possible to turn off auto @navtitle?

    Participants 5
    Replies 6
    Last Activity 7 years, 7 months ago

    Hello.

    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.

    Reply

    Derek Read

    Reply to: Map editor: Possible to turn off auto @navtitle?

    If 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 for elements.

    Reply

    edwardwoodward

    Reply to: Map editor: Possible to turn off auto @navtitle?

    Thanks. 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.)

    Reply

    Derek Read

    Reply to: Map editor: Possible to turn off auto @navtitle?

    You 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;
    }

    Reply

    edwardwoodward

    Reply to: Map editor: Possible to turn off auto @navtitle?

    Thanks again, but that doesn't seem to make any difference.

    Reply

    Derek Read

    Reply to: Map editor: Possible to turn off auto @navtitle?

    Sorry, 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.css

    You 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.

    Reply

    edwardwoodward

    Reply to: Map editor: Possible to turn off auto @navtitle?

    Thanks again.

    FYI, the changes to the override files didn't make any difference, but the change to bookmap_bookmap did the trick.

    Reply

  • You must be logged in to reply to this topic.

Lost Your Password?

Products
Downloads
Support