General XMetaL Discussion
XMetaL Community Forum › General XMetaL Discussion › Mini-templates with ctm file
-
Grande July 29, 2015 at 1:36 pm
Mini-templates with ctm file
July 29, 2015 at 1:36 pmParticipants 2Replies 3Last Activity 7 years, 6 months agoHi,
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
werkzeug
]]>
Even after restart These changes have no effect.
Can anyone help me finding the issue in my template?Thanks in advance.
Derek Read July 29, 2015 at 9:36 pm
Reply to: Mini-templates with ctm file
July 29, 2015 at 9:36 pmSeems 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.Grande August 3, 2015 at 9:10 am
Reply to: Mini-templates with ctm file
August 3, 2015 at 9:10 amNummer 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?
mag3737 August 5, 2015 at 9:17 pm
Reply to: Mini-templates with ctm file
August 5, 2015 at 9:17 pmAn 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
-
AuthorPosts
- You must be logged in to reply to this topic.