Copied to clipboard

Flag this post as spam?

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


  • Jules 205 posts 448 karma points
    Apr 01, 2014 @ 12:41
    Jules
    0

    ezSearch problem

    Hi all

    Using U6.1.6

    Using ezSearch and the search works fine but the results only display the pageHeader field in an H2  and then that same field repeated in a p tag.  Whereas we need the pageHeader and then the bodyText field to display. 

    Are we doing anything wrong? This is the code we are using:

    @{
    var rootId = (CurrentPage.Path.Split(','))[1];
    }
    @Umbraco.RenderMacro("ezSearch", new {
                rootContentNodeId=rootId ,
                rootMediaNodeId="" ,
                indexType="CONTENT" ,
                searchFields="pageHeader,bodyText,eventDescription,description" ,
                previewFields="pageHeader,bodyText,eventDescription,description" ,
                previewLength="250" ,
                pageSize="20" ,
                hideFromSearchField="" ,
                searchFormLocation="NONE" })

    Cheers

    Jules

  • Jeroen Breuer 4861 posts 12138 karma points MVP 3x admin c-trib
    Apr 01, 2014 @ 18:14
    Jeroen Breuer
    0

    Hello,

    You can change the source of ezSearch in /Views/MacroPartials/ezSearch.cshtml

    Everything happens in that single file so if you want to change a tag you can do it there.

    Jeroen

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies