Pages: 1
Print
Author Topic: XMetaL 6.0 Customization questions  (Read 208 times)
NickHsu
Member

Posts: 1


« on: February 01, 2012, 12:50:00 AM »

    It's about *.ctm file. I have a customized task.ctm file for task topics, I want to add a new <uicontrol> automatically when I press ENTER within the <uicontrol> in the <menucascade>, for example:
<menucascade><uicontrol></uicontrol><menucascade>, my cursor is between <uicontrol> and </uicontrol> and I want to adding a new element <uicontrol> automatically when I press ENTER.

    Tutorial said I can add a FollowedByListItem in the task.ctm, I've tried both of
   1.
     <FollowedByListItem>
       <Name ns="">uicontrol</Name>
       <FollowedBy ns="">uicontrol</FollowedBy>
    </FollowedByListItem>
   2.
      <FollowedByListItem>
         <Name ns="">uicontrol</Name>
         <Parent ns="">menucascade</Parent>
         <FollowedBy ns="">uicontrol</FollowedBy>
      </FollowedByListItem>

    and it does not work at all. Could anyone help?
   
Logged
Derek Read
Program Manager (XMetaL)
Administrator
Member

Posts: 1548



WWW
« Reply #1 on: February 01, 2012, 11:39:00 AM »

The problem here is likely that you are inserting the element via the Insert menu vs the Element List. The two behaviours may differ there because the Insert menu items are driven by script. It might also be the case the Element List has some script involved. The DITA customization is quite complex (and completely undocumented, which is why making changes like this are not officially supported).
Logged
Pages: 1
Print
Jump to:  

email us