Copied to clipboard

Flag this post as spam?

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


  • Brian 77 posts 251 karma points
    Jan 13, 2015 @ 17:05
    Brian
    0

    Simplistic Search button not going to results page

    Hi guys,

    Hope someone can help with my issue on 'simplistic search'.  I have set the search tool up on my master page and have set up a separate results page (code below for each).  When I try to submit a search it remains on the same page and does not display the search results page.

    I know this is going to be a simple issue/fix but for the life of me I can't sort.

    Code below:

    Search tool

    @Umbraco.RenderMacro("SimplisticSearchForm", new {buttonValue="Search", placeholder="search for shows, jobs, reviews etc...", queryString="term", searchResultViewPageId="1202"})

    Results page code:
    @Umbraco.RenderMacro("SimplisticSearchResultView", new {displayName="umbracoUrlAlias", displayNameAlternate="pageTitle", displayPreamble="articleContent", displayPreambleAlternate="mainReviewContent", documentTypes="["1076","1081","1083","1178"]", enableHighlighing="1", goToSingle="1", ignoreProperty="[]", presentationLabel="null", properties="["umbracoURLName","umbracoUrlAlias","pageTitle","metaDescription","articleContent","theatreName","city","productionCompany","typeOfProduction","mainReviewContent"]", queryString="term", rootNode="1067", sortByHitCount="1"})
  • Dennis Aaen 4500 posts 18255 karma points admin hq c-trib
    Jan 13, 2015 @ 17:49
    Dennis Aaen
    1

    Hi Brian,

    I was thinking could it be that simple that your search result page is having another page id than the 1202, that you reference in the macro?

    I have just tried install the package on a Umbraco 7.1.8 installation and when I hit enter or the search button, I get to the search result page.

    Hope this helps,

    /Dennis

  • Comment author was deleted

    Oct 12, 2015 @ 20:57

    You could also double check that your link to the jQuery file is before your SimplisticSearchForm macro on the page. If it is rendered prior to jQuery being loaded, the JS won't work properly.

    At least, this is what solved a similar issue that I had.

  • Dennis Adolfi 1082 posts 6449 karma points MVP 6x c-trib
    Feb 26, 2016 @ 13:53
    Dennis Adolfi
    0

    I think GShenanigan is on to something. This package requires you to have jQuery referenced before the macro. Its a little ugly i know, and its on my bucketlist to fix in the future.

Please Sign in or register to post replies

Write your reply to:

Draft