I think we've stumbled into an edge-case issue with the JSON producing DD4T TBB(s), so I am looking for some input / confirmation.
We have a Schema, which has a simple text-field and a multivalued embedded Schema. The embedded Schema is a standard "link" Schema - with an internal Component link, an external text field - etc.
Component
Problem
The problem we've run into is that if we include the string ComponentTemplate
in a text-field, the Component Presentation is not included in the list of Component Presentations in the Page JSON. The string is not case-sensitive, so componenttemplate
also excludes the Component Presentation from the rendered output.
When we run the Component Template against the Component in Template Builder, there is output which looks valid. There seems to be no issues there. The issue only seems to be adding the Component Presentation to the Page JSON.
Note that the Component Template is static.
What we've tried
- We've tried removing special characters (ampersands etc), which has no effect.
- We've also tried moving the string around - but again, no change.
- Tried the string in both embedded fields, & direct content fields. Same result.
The following URLs exclude the Component Presentation from output:
- http://dev.test-server.com?Component=123&ComponentTemplate=456
- http://dev.componenttemplate.com
- http://dev.test-server.com?ComponentTemplate
The following URLs work fine:
I'm not quite sure what would cause this issue. It's a bit of a strange one that we just happened to notice by chance. We assumed it was the ampersand, but that doesn't seem to be the issue.
Any input is appreciated!