We have different taxonomy documents stored in content database under a folder named "/docs/".And, I have a requirement to apply Marklogic TDE for each of the taxonomy file present in the folder to view different taxonomy data as tables.
I tried giving value in template as "/docs/" for all the templates and the context value with the unique node value for each taxonomy.But since we have given /docs/ in directory ,it is getting applied to all the taxonomy files but I need each template specific to a single taxonomy.
I also tried giving file path in in template but it didn't work.Could anyone please help me with the below questions.
- Is it possible to apply a TDE template on a single document?
- If so, please provide a way to apply it?
Thanks in advance!
CodePudding user response:
You could put the document in a unique collection and then use the collection scope to restrict the TDE.
A
<collections>
section defines the scope of the template to be confined only to documents in specific collections