Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Tom Newton 3 posts 23 karma points
    Jan 28, 2013 @ 18:18
    Tom Newton
    0

    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

  • Patrick McAndrew 7 posts 27 karma points
    Jan 30, 2013 @ 21:10
    Patrick McAndrew
    0

    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. 

  • Ciaran McCusker 54 posts 93 karma points
    Feb 14, 2013 @ 12:43
    Ciaran McCusker
    0

    Hi,

    Did you get sorted with this?

    Ciaran
    www.codeforcreatives.co.uk

Please Sign in or register to post replies

Write your reply to:

Draft