There's 3 search options, when the page is submitted, they appear as fm1, fm2 and fm3 in the URL. I've also managed to bring the value onto the page but don't know how to amend the 'where' string.
If I was doing it in SQL it would read something like this
where (@item.category = fm1) and (@item.pageName = fm2) and (@item.documentDescription = fm3)
If you ask your question in one of the general forums, you'll probably get an answer quite quickly. My guess is you should be able to do something like .where (@item.category = fm1 && @item.pageName = fm2), but its been awhile since I've done anything in razor.
Need Developer To Complete Search Feature
I'm using the built in 'Show Sub Pages' feature:
@inherits umbraco.MacroEngines.DynamicNodeContext
@{ var numberOfItems = 100; }
@foreach (var item in @Model.Children.Where("Visible").Take(numberOfItems))
{
BUT, I need to add a simple search facility so only certain results are shown.
Have a look here - http://www.cumbria-pcc.gov.uk/governance-transparency/document-library.aspx
There's 3 search options, when the page is submitted, they appear as fm1, fm2 and fm3 in the URL. I've also managed to bring the value onto the page but don't know how to amend the 'where' string.
If I was doing it in SQL it would read something like this
where (@item.category = fm1) and (@item.pageName = fm2) and (@item.documentDescription = fm3)
Please contact me with a cost.
Thanks in advance
Tom
If you ask your question in one of the general forums, you'll probably get an answer quite quickly. My guess is you should be able to do something like .where (@item.category = fm1 && @item.pageName = fm2), but its been awhile since I've done anything in razor.
Hi,
Did you get sorted with this?
Ciaran
www.codeforcreatives.co.uk
is working on a reply...