Copied to clipboard

Flag this post as spam?

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


  • Simon 692 posts 1068 karma points
    Mar 18, 2015 @ 17:21
    Simon
    0

    Bug - Search field in Master Layout Page

    Hi,

    I have just implemented the ezSearch in the master layout page in order to be rendered near the navigation menu on all pages.

    Having this in SerachResults Page:-

    @*Search Box*@  
    @Umbraco.RenderMacro("ezSearch", new {hideFromSearchField = "hideFromSearch", indexType="CONTENT", pageSize="5", previewFields="BodyText, ProductDescription, metaDescription", previewLength="400", rootContentNodeId0="1050", rootMediaNodeId="null", searchFields="bodyText, productDescription, summary, reference, price, downloadLinkName, metaDescription, pageTitle, nodeName", searchFormLocation="NONE"})
    And having this next to the navigation menu, to render the search box field:-
     @Umbraco.RenderMacro("ezSearch")
    Also, I have changed the form action code, as follows:-
    <form method="GET" class="ezsearch-form" 
    action="@rootNode.Children(x => x.DocumentTypeAlias == "Searchresults").First().Url()" data-parsley-validate>
           
    <input type="text" class="search-text-field" name="q" placeholder="@(GetDictionaryValue("[ezSearch] Search", "Search"))" value="@(model.SearchTerm)" required />
            
    <button type="submit" class="search-button" @*value="@(GetDictionaryValue("[ezSearch] Search", "Search"))"*@>
    <span class="icon"></span>
    </button>
      
    </form>
    Now, this is working fine.
    But sometimes, after a number of searches, it decides that the results show them also underneath the search box and remains there after a considerable amount of time. With results being gathered correctly on the Search Results Page. If I try again, the results underneath the search box remains the same and the results on the search results page works fine.

    I checked the ezSearch Macro caching but it set as 600 and both checkboxes ticked.
    As mentioned, is it working fine but sometimes, it acts as mentioned above.
    Any ideas pls?
    Thank you in advance.
    Kind Regards.
  • Simon 692 posts 1068 karma points
    Apr 25, 2015 @ 11:49
    Simon
    0

    Any idea pls?

    Thank you.

Please Sign in or register to post replies

Write your reply to:

Draft