Copied to clipboard

Flag this post as spam?

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


  • Høgni 16 posts 66 karma points
    Feb 11, 2014 @ 15:13
    Høgni
    0

    Search in Created documents

    @ { if(IsPost) { var node = Library.NodeById(1069); string inputValue = Request["Value"];

        <p>You entered:
        <br/>
            InputValue is = @inputValue
    
            @foreach(var item in node.Descendats().Where("Visible"))
            {
                if(inputValue.Equals("item.auther"))
                {
                    <p>@item.pageName</p>
                }
            }
        </p>
    
    }
    
    else{
        <form method="post" action="">
        Search<br/>
    
            <input type="text" name="Value" value="">
    
            <input type="submit" value="Submit" class="submit">
    
        </form>
    

    } }

    Hi guys. I'm trying to create a simple search funktion. What I'm tryig to do is i want to return all the articles where a specific auther has written. I'm currently stuck and i dont know if i am on the right track. Suggestions would be most welcome :) thank you.

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Feb 11, 2014 @ 16:05
    Ismail Mayat
    0

    Hogni,

    What version of umbraco are you using? there are a number of search packages available that you can use.

    Regards

    Ismail

  • Høgni 16 posts 66 karma points
    Feb 11, 2014 @ 16:10
    Høgni
    0

    Hi Ismail

    My web.Config says 6.1.6

    /Hogni

  • Ismail Mayat 4511 posts 10091 karma points MVP 2x admin c-trib
    Feb 11, 2014 @ 16:14
    Ismail Mayat
    0
  • Høgni 16 posts 66 karma points
    Feb 11, 2014 @ 16:28
    Høgni
    0

    I'm currently not using a MCV redering engine. Is there another alternative or would you advise to switch?

  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Feb 11, 2014 @ 17:26
    Dennis Aaen
    0

    Hi Hogni,

    An alternative could maybe be the XSLTSearch package http://our.umbraco.org/projects/website-utilities/xsltsearch developed by Douglas Robar

    /Dennis

Please Sign in or register to post replies

Write your reply to:

Draft