This is a real noob question - sorry for asking it but I'm stumped - basically I'm just trying to list nodes that have a radio button selected - here's my code:
@{
var selection2 = CurrentPage.Site().Children("vacancy").Where("vacancyLocation == \"Borders\"");
}
<ul>
@foreach(var item in selection2){
<li>
<a href="@item.Url">@item.Name</a>
</li>
}
</ul>
Listing Nodes that match radiobutton
This is a real noob question - sorry for asking it but I'm stumped - basically I'm just trying to list nodes that have a radio button selected - here's my code:
What am I doing wrong?
Darren
You would just need to use the Where clause to select that field to either true or false..
Here i have done so to use certain News items as "Featured Items":
Hope this helps..
p.s. we all love pie and dirty mash
Ha ha - Cheers Gary!
Hope all is well with you - as you can see I've not progressed much since our training! I'll give this a try.
is working on a reply...