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...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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...