I have…
- [x] Read the following guideline: https://docs.squidex.io/01-getting-started/installation/troubleshooting-and-support. I understand that my support request might get deleted if I do not follow the guideline.
I’m submitting a…
- [ ] Regression (a behavior that stopped working in a new release)
- [ ] Bug report
- [ ] Performance issue
- [X] Documentation issue or request
Current behavior
Using rules (scripts) with getReferences i was wondering whether it is possible to enclose the result within an “iv” object, the reasoning behind this is because some articles we are obtaining via the content API and others via ElasticSearch and the export to elasticsearch changes the structure of the article.
We have tried explicitly tryied adding the “iv” object to the "var jsonObject = " at the start, but to no avail.
Do you happen to have any thoughts on this?
Expected behavior
"Structure": {
"iv": [
{
"id": "e0149afe-1ab0-46c7-a550-f494588767e1",
"title": "TEST STRUTTURA SUPERIORE",
"summary": "TEST",
"slug": "test-struttura-superiore"
}
]
}
Minimal reproduction of the problem
Environment
App Name:
- [X] Self hosted with docker
- [ ] Self hosted with IIS
- [ ] Self hosted with other version
- [] Cloud version
Version: 7.3.0.0
Browser:
- [ ] Chrome (desktop)
- [ ] Chrome (Android)
- [ ] Chrome (iOS)
- [ ] Firefox
- [ ] Safari (desktop)
- [ ] Safari (iOS)
- [ ] IE
- [ ] Edge
Others: