Page 1 of 1
Excluding code templates from content completion suggestions
Posted: Tue May 18, 2021 9:44 pm
by tpaige
I have an external content completion file (cc_config_ext.xml) configured as part of a framework extension. The proposed values work as expected. However, I'm also getting code templates listed as part of the proposed values in Author mode. Is it possible to exclude code templates?
code_templates_in_cc_suggestions.png
Re: Excluding code templates from content completion suggestions
Posted: Wed May 19, 2021 7:17 am
by Radu
Hi,
Code templates may contain any content inside them (text, XML tags, or a combination of..), they may contain even editor variables which get expanded when the code template is inserted, so Oxygen proposes them in any context, even when element values need to be inserted.
Maybe you can create equivalent Author actions instead of the code templates. An Author action can also be added to the content completion window and has an activation XPath which can be used to configure in what context it's available.
https://blog.oxygenxml.com/topics/custo ... etion.html
Regards,
Radu