Home Forums General XMetaL Discussion InsertWithTemplate example Reply To: InsertWithTemplate example

Derek Read

Reply to: InsertWithTemplate example

Not sure why it might have done that previously (I can't think of any way that it could have inserted mini-template content if there was none specified in the CTM). I don't think there's much point in installing XMetaL 3 and testing this since it is functioning according to the documentation in the current release:

[quote=XMetaL Developer Programmers Guide]Inserts the specified element. If default content has been specified in the customization, this content is inserted with the element; if a script was specified, it is executed. This method can be used in ‘default content’ scripts to insert other elements and their default content. This method is not namespace aware.

In this context “customization” = CTM settings.

Perhaps you have confused it with another API such as InsertElementWithRequired().

Reply

Products
Downloads
Support