General XMetaL Discussion

XMetaL Community Forum General XMetaL Discussion Mini-templates with ctm file

  • Grande

    Mini-templates with ctm file

    Participants 2
    Replies 3
    Last Activity 7 years, 2 months ago

    Hi,

    I would like to create a mini template that some child tags are inserted automatically if a parent tag is inserted.
    The following is a snippet of my ctm file:

       
         werkzeug
                 
           
           
         
       

     

     

    Even after restart These changes have no effect.
    Can anyone help me finding the issue in my template?

    Thanks in advance.

    Reply

    Derek Read

    Reply to: Mini-templates with ctm file

    Seems OK to me. Things to check:

    1. The element and everything it contains is legally allowed to be inserted. If that's not the case then just the by itself will be inserted (with the exception being when this element has a required child, in which case that child will also be inserted).
    2. This particular CTM file is being loaded.

    Reply

    Grande

    Reply to: Mini-templates with ctm file

    Nummer is allowed to be inserted within werkzeug.
    In case of user friendlyness I would like to have nummer automatically added within werkzeug, when werkzeug is inserted.

    How can I verify if the ctm file is actually loaded?

    Reply

    mag3737

    Reply to: Mini-templates with ctm file

    An easy way to confirm that a CTM is loaded is to include (or change) a LongDescription of one of the elements in the the ElementProperties section. The text of the LongDescription is displayed at the bottom of the Element List window whenever the element is selected.

     
        werkzeug
        Description of werkzeug element goes here
     

    Reply

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

Lost Your Password?

Products
Downloads
Support