We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Thanks gold sky. Just to be sure I understand, the call on the homepage needs a different template chunk to the one on the inner pages...and they need to be custom code. So I can use the default code as long as I copy it into 2 separate chunks and call them in my Adve arch Form calls?
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 7527
      • 437 Posts
      Ok well I tried two different tpls (one for home and one for inner pages) and copied the AdvSearchForm chunk template into them.no luck. I am not sure what part of the chunk is causing the issue?

      <form id="[[+advsearch.asId]]_advsea-form" class="advsea-form" action="[[~[[+advsearch.landing]]]]" method="[[+advsearch.method]]">
        <fieldset>
          <input type="hidden" name="id" value="[[+advsearch.landing]]" />
          <input type="hidden" name="asId" value="[[+advsearch.asId]]" />
          [[+advsearch.helpLink]]<input type="text" id="[[+advsearch.asId]]_advsea-search" name="[[+advsearch.searchIndex]]" value="[[+advsearch.searchValue]]" />
          [[+advsearch.liveSearch:isnot=`1`:then=`<input type="submit" id="[[+advsearch.asId]]_advsea-submit"  name="sub" value="[[%advsearch.search? &namespace=`advsearch` &topic=`default`]]" />`:else`=``]]
        </fieldset>
      </form>
      [[+advsearch.resultsWindow]]


      As always any help would be appreciated
      Regards,
      DS
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
        • 7527
        • 437 Posts
        Good morning,

        I think maybe I am not understanding what Gold Sky has suggested? Can anyone help explain further before I cut my loses and try SimpleSearch instead (this option would mean I lose the TV output, which would be a huge shame)

        Thank you
        SB
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 7527
          • 437 Posts
          I have just tried to implement Simplesearch and I cannot seem to get that working either. I have used this call:

          [[!SimpleSearchForm? &landing=`22`]]


          and on the landing page (ID22) I have used:

          [[!SimpleSearch? minChars=`1` showExtract=`1` &includeTVs=`1`]]


          But if I use the search on a page it just refreshes the page, no divert to landing page with results?

            www.PawsForWildlife.co.uk
            www.Borntobrick.co.uk
            • 7527
            • 437 Posts
            Ok well Simple Search works on the homepage (like AdvSearch) but none of the inner pages?
              www.PawsForWildlife.co.uk
              www.Borntobrick.co.uk
            • discuss.answer
              • 7527
              • 437 Posts
              AdvSearch all but working, last issue. The &highlightTag does not seem to be working:

              [[!AdvSearch? &perPage=`10` &withFields=`pagetitle,introtext,content,longtitle` &fields=`pagetitle,introtext,content,longtitle` &tpl=`AdvSearchResult` &hideMenu=`2` &highlightTag=`bold` &highlightResults=`1` &extractLength=`150`]]


              Any ideas?
                www.PawsForWildlife.co.uk
                www.Borntobrick.co.uk
                • 11055 ☆ A M B ☆
                • 3,112 Posts
                &highlightTag=`span`
                &highlightClass=`css-class-name`
                  Rico
                  Genius is one percent inspiration and ninety-nine percent perspiration. Thomas A. Edison
                  MODx is great, but knowing how to use it well makes it perfect!

                  www.virtudraft.com

                  Security, security, security! | Indonesian MODx Forum | MODx Revo's cheatsheets | MODx Evo's cheatsheets

                  Author of Easy 2 Gallery 1.4.x, PHPTidy, spieFeed, FileDownload R, Upload To Users CMP, Inherit Template TV, LexRating, ExerPlan, Lingua, virtuNewsletter, Grid Class Key, SmartTag, prevNext

                  Maintainter/contributor of Babel

                  Because it's hard to follow all topics on the forum, PING ME ON TWITTER @_goldsky if you need my help.