General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › hide children in Element List (XMAX)
-
fjeneau9 April 6, 2011 at 8:41 pm
hide children in Element List (XMAX)
April 6, 2011 at 8:41 pmParticipants 3Replies 4Last Activity 11 years, 11 months agoHi,
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. thanks in advance…
XMetaL-Documentum Webtop Integration Version 4.0.0.0
XMAX 5.5.0.219Derek Read April 6, 2011 at 8:59 pm
Reply to: hide children in Element List (XMAX)
April 6, 2011 at 8:59 pmNot 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”). paorear April 3, 2014 at 12:41 am
Reply to: hide children in Element List (XMAX)
April 3, 2014 at 12:41 amIs 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?
Derek Read April 3, 2014 at 8:07 pm
Reply to: hide children in Element List (XMAX)
April 3, 2014 at 8:07 pm -
AuthorPosts
- You must be logged in to reply to this topic.