General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion hide children in Element List (XMAX)

  • fjeneau9

    hide children in Element List (XMAX)

    Participants 3
    Replies 4
    Last Activity 11 years, 11 months ago

    Hi,

    Is there any way to programmatically hide “allowed” children of a particular element in the Element List using XMAX interface? (for instance in an 'OnUpdateUI' event)

    When a user clicks in a , we do not want them to see the children of allowed by DITA in the Element List pane on the right.</p> <p>thanks in advance…</p> <p>XMetaL-Documentum Webtop Integration Version 4.0.0.0<br />XMAX 5.5.0.219

    Reply

    Derek Read

    Reply to: hide children in Element List (XMAX)

    Not clear what your system looks like, so here are the two possibilities:

    1. You have a custom solution created by you or one of our partners that has integrated XMAX.
    2. You have the product we call “XMetaL Express for Documentum Webtop” (which includes XMAX).

    For 1: You are free to customize the user interface (the application containing XMAX) anyway you like. The Element List in this case is under your complete control so you can add your own logic (taking advantage of the XMAX APIs) to display only those elements you wish to display.

    For 2: There is no simple way to do this. Essentially the work would be the same as for #1 but we would need to do it. This is something our Professional Services team might be contracted to do.

    Note that in both cases above, merely stopping an element from displaying in the Element List does not mean a user cannot insert it. It will still be possible for a user with access to Plain Text view to add these elements, and in Tags On and Normal view they will be able to paste them in. Additional logic might be added to restrict the latter case. Note that in XMAX Plain Text view must be specifically enabled. It is disabled by default.

    There is a third possibility, and that would be to modify the DTDs being used. If the XMAX APIs are being used to discover which elements are allowed at a given position (most likely for #1 and definitely the case for #2) then modifying the DTDs would automatically allow XMAX to discover that elements are no longer allowed within . Because you are working with DITA you may wish to follow the official DITA specialization rules (however, because we do not provide a DITA solution for XMAX this is less of a concern than for XMetaL Author Enterprise, unless you wish to also use the same DTDs for other software that is “DITA specialization aware”).

    Reply

    paorear

    Reply to: hide children in Element List (XMAX)

    Is this possible in non-XMAX scenarios – e.g. with an extension developed for XMetaL Authoring Essentials? Is there an event to watch for to trim the Element List elements?

    Reply

    Derek Read

    Reply to: hide children in Element List (XMAX)

    @paorear: Yes. See the documentation for the ElementList object in the XMetaL Developer Programmer's Guide.

    Reply

    paorear

    Reply to: hide children in Element List (XMAX)

    Super – thank you!

    Reply

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

Lost Your Password?

Products
Downloads
Support