I've just had a very wierd issue with razor in 4.7.1.1. I have a DocType, with the alias of "SettingsGlobalContacts". That has an allowed child DocType of "SettingsGlobalContact". If I try and query the children using Razor, there's always 0, even though there are 42 nodes listed as published under it in the back office. I republished the site, republished the nodes, even reset IIS to clear the app pool, all with no effect.
After an hour of pulling my hair out (all other DocTypes return the right number of child nodes), I tried changing the child DocType alias to "SettingsGlobalContactItem" and republish them all. Bingo, 42 child nodes. Change it back to the old alias, and it still worked.
I tried re-publishing the nodes before and it never worked. So I'm not sure why renaming the docType would force it to work.
Possible Bug?
I've just had a very wierd issue with razor in 4.7.1.1. I have a DocType, with the alias of "SettingsGlobalContacts". That has an allowed child DocType of "SettingsGlobalContact". If I try and query the children using Razor, there's always 0, even though there are 42 nodes listed as published under it in the back office. I republished the site, republished the nodes, even reset IIS to clear the app pool, all with no effect.
After an hour of pulling my hair out (all other DocTypes return the right number of child nodes), I tried changing the child DocType alias to "SettingsGlobalContactItem" and republish them all. Bingo, 42 child nodes. Change it back to the old alias, and it still worked.
I tried re-publishing the nodes before and it never worked. So I'm not sure why renaming the docType would force it to work.
is working on a reply...