Copied to clipboard

Flag this post as spam?

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


  • Jules 276 posts 587 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 4908 posts 12265 karma points MVP 5x 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

Please Sign in or register to post replies

Write your reply to:

Draft