Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hey Our
Is there any way to get the id of the returned ancestors nodes value when using fallback: Fallback.ToAncestors with hasValue ?
https://our.umbraco.com/Documentation/Reference/Querying/IPublishedContent/Properties/#hasvaluestring-propertyalias
In the end i want to use it like this: If fallback is tiggered for use on 'title' then also get 'subtitle' from that fallback ancestor node
Hi,
It seems better to stick with old process here... foreach(var item in Model.Ancestors().OrderBy(x => x.Level)) { if (item.HasValue("property")) { @item.Title @item.SubTitle } }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Fallback: Fallback.ToAncestors get that ancestors id
Hey Our
Is there any way to get the id of the returned ancestors nodes value when using fallback: Fallback.ToAncestors with hasValue ?
https://our.umbraco.com/Documentation/Reference/Querying/IPublishedContent/Properties/#hasvaluestring-propertyalias
In the end i want to use it like this: If fallback is tiggered for use on 'title' then also get 'subtitle' from that fallback ancestor node
Hi,
It seems better to stick with old process here... foreach(var item in Model.Ancestors().OrderBy(x => x.Level)) { if (item.HasValue("property")) { @item.Title @item.SubTitle } }
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.