Context Sensitive Annotations for Content Completion Assistant
Posted: Wed Jan 23, 2019 1:56 am
Hi there,
I've been using the 'Customizing Annotations in the Content Completion Assistant' page to map each of my elements to new annotations and it's working well so far.
I'm just wondering if it's possible within the contentCompletionElementsMap.xml file to make this more context sensitive? I'd like to be able to specify multiple annotations for the same element name, depending on where it is being suggested for insertion.
This is currently working:
When element1 is suggested for insertion anywhere in my XML file I am seeing the contents of element1.html as expected.
I'm looking to have something like the following (which obviously doesn't work):
I'd just like to know if this kind of thing possible or are we limited to one generic annotation per element using this method? Is there another way I would be able to do this?
I've been using the 'Customizing Annotations in the Content Completion Assistant' page to map each of my elements to new annotations and it's working well so far.
I'm just wondering if it's possible within the contentCompletionElementsMap.xml file to make this more context sensitive? I'd like to be able to specify multiple annotations for the same element name, depending on where it is being suggested for insertion.
This is currently working:
Code: Select all
<mappingGroup xml:base="descriptions/">
<mapping elementName="element1" path="element1.html" type="content"/>
</mappingGroup>
I'm looking to have something like the following (which obviously doesn't work):
Code: Select all
<mappingGroup xml:base="descriptions/">
<mapping elementName="element2/element1" path="element2-element1.html" type="content"/>
<mapping elementName="element3/element1" path="element3-element1.html" type="content"/>
</mappingGroup>