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
Hi folks,
I have a list of node where admin can define the type of the node by using a dropdown list with a selection of values set to integer.
Can someone point out how to i display all nodes with let say value = 1 in my loop?
foreach(var p in projectList)){ @p.Name }
Sorry i cant edit my previous post, what i would like to know is, is there a better way of doing this instead ?
foreach(var p in projectList)){if(p.type == "1"){ @p.Name} }
I belive, what you are looking for is this:
foreach(var p in projectList.Where(p => p.type == "1"){@p.Name}
Hi Niels,
Thanks for the reply, well i did solved this by instead making use of document Types. since some of the requirements from the client changed.
@foreach(var p in projects.Children.Where("NodeTypeAlias == \"docType\"").Where("!pjtCompleted")){ @p.Name}
//fuji
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Display Certain Node depending on Value of dropDown List
Hi folks,
I have a list of node where admin can define the type of the node by using a dropdown list with a selection of values set to integer.
Can someone point out how to i display all nodes with let say value = 1 in my loop?
Sorry i cant edit my previous post, what i would like to know is, is there a better way of doing this instead ?
I belive, what you are looking for is this:
Hi Niels,
Thanks for the reply, well i did solved this by instead making use of document Types. since some of the requirements from the client changed.
//fuji
is working on a reply...