I have created an property called year, that is a checkbox property. I use this in a list, so i have a lot of pages that have ex 2007, 2008 and so on marked.
Can i on some way print all pages that have specific 2008 checked in my templates
I need to list the pages from each year with the number check
I'm not 100% sure what you want, but I think you can do something like the following:
var allPages = CurrentPage.Children; //the list of pages you want to check
var pagesThatIWant = allPages.Select(x => x.GetPropertyValue<Boolean>("ALIAS_FOR_CHECKBOX"))
Getting values from property
Hi
I have created an property called year, that is a checkbox property. I use this in a list, so i have a lot of pages that have ex 2007, 2008 and so on marked.
Can i on some way print all pages that have specific 2008 checked in my templates
I need to list the pages from each year with the number check
Hope you all understand what i looking for
I'm not 100% sure what you want, but I think you can do something like the following:
(this is using "Umbraco.Web")
-> If the pages are scattered around, you probably want to look into doing search - https://our.umbraco.org/documentation/Reference/Searching/Examine/
is working on a reply...