We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 5811
    • 1,717 Posts
    old and deprecated parameter. Same effect as landing_page.
      • 11055 ☆ A M B ☆
      • 3,112 Posts
      // &hideLink [0 | 1 ] Search in content of type reference (link)
      // 0 - search only in content of type document
      // 1 - search in content of type document AND reference
      // Default: 1

      I guess it’s opposite? In wiki it’s also written opposite.

      anyway, i can’t call $asId successful. I tried this in my page:
      [!AjaxSearch? &asId=`as1`!]
      <hr />
      [!AjaxSearch? &asId=`as2`!]
      What’s my problem?

      What is the correct statement of this?
      // ’tb_alias:display_function_name[,[tb_alias:display_function_name]*]’ : set up placeholders for custom joined tables
        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.
        • 5811
        • 1,717 Posts
        For the hideLink parameter you are right:
        The correct explanation is:
            * 0 : search in content of type document AND reference
            * 1 : search only in content of type document 
        I will change the 1.9 beta explanations. Thanks for this documentation issue feedback.

        [!AjaxSearch? &asId=`as1`!]
        <hr />
        [!AjaxSearch? &asId=`as2`!]
        What’s my problem?
        The snippet calls seem correct. do you have any js issue ?

          • 11055 ☆ A M B ☆
          • 3,112 Posts
          Uhmm... it works for 1 AS, so it should have no problem with that, shouldn’t it?
          I don’t have any js call inside my template. yet.

          Anyway,
          when do you think you can make a tutorial about "Label" in your site? laugh
            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.
            • 5811
            • 1,717 Posts
            Uhmm... it works for 1 AS, so it should have no problem with that, shouldn’t it?
            I don’t have any js call inside my template. yet.
            With &ajaxSeach=`1` (by default), you should load the two following js. See the code of this demo page
            	<script type="text/javascript" src="manager/media/script/mootools/mootools.js"></script>
            
            	<script type="text/javascript" src="assets/snippets/ajaxSearch190b/js/ajaxSearch1/ajaxSearch.js"></script>


            Label doesn’t exist laugh Have been replace by grpLabel. When you define a category with an abreviation like "geo", it could be proper to display a title like "Geography". So use the grpLabel to display a proper value. Look at the demo page and follow the link to the custom2 configuration file

            Which browser do you use to test the demo 1.9 ? I need feedbacks from IE, chrome and Safari browser usage. Thanks.
              • 11055 ☆ A M B ☆
              • 3,112 Posts
              I don’t think I have to.
              AS has already injected the code, right?

              I just tried a single call: [!AjaxSearch? &asId=`as1`!]
              And it failed. huh
              Here my page source:

              	<!--[if lte IE 6]>
              	<meta HTTP-EQUIV="REFRESH" content="0; url=index.php?upgradebrowser.html">
              	<![endif]-->
                  	<script type="text/javascript" src="manager/media/script/mootools/mootools.js"></script>
              	<script type="text/javascript" src="assets/snippets/ajaxSearch/js/ajaxSearch1/ajaxSearch.js"></script>
              <!-- start AjaxSearch header -->
              <script type="text/javascript">
              //<![CDATA[
              asvar[asvar.length]='{"as_version":"1.9.0","advSearch":"oneword","subSearch":"","ucfg":"&asId=`as2` "}';
              //]]>
              </script>
              
              <!-- end AjaxSearch header -->
              </head>
              
              


              Quote from: coroico at Feb 01, 2010, 09:05 AM

              Which browser do you use to test the demo 1.9 ? I need feedbacks from IE, chrome and Safari browser usage. Thanks.
              I’ve tried your site with FF, Safari, Opera & Chrome, and it works.
              Don’t ask me about IE. I only have IE6, and I HATE IT BADLY!
                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.
                • 5811
                • 1,717 Posts
                If you use: [!AjaxSearch? &asId=`as1`!] it’s very stange that your page has: asvar[asvar.length]=’{"as_version":"1.9.0","advSearch":"oneword","subSearch":"","ucfg":"&asId=`as2` "}’;
                May be you need to clear the MODx cache.
                  • 11055 ☆ A M B ☆
                  • 3,112 Posts
                  Ok, my bad.
                  I cleared that (uncached!) page,
                  tried this single simple call [!AjaxSearch? &asId=`as1`!],
                  now the code seems right:
                          <!--[if lte IE 6]>
                  	<meta HTTP-EQUIV="REFRESH" content="0; url=index.php?upgradebrowser.html">
                  	<![endif]-->
                      	<script type="text/javascript" src="manager/media/script/mootools/mootools.js"></script>
                  	<script type="text/javascript" src="assets/snippets/ajaxSearch/js/ajaxSearch1/ajaxSearch.js"></script>
                  <!-- start AjaxSearch header -->
                  <script type="text/javascript">
                  //<![CDATA[
                  asvar[asvar.length]='{"as_version":"1.9.0","advSearch":"oneword","subSearch":"","ucfg":"&asId=`as1` "}';
                  //]]>
                  </script>
                  
                  <!-- end AjaxSearch header -->
                  
                  


                  But still no luck. Even I use different browser (opera) with cleared cookies.
                    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.
                    • 5811
                    • 1,717 Posts
                    Ok, I think that I understand the reason of this issue ...
                    line 736 of classes/ajaxSearchOutput:
                                $line = (!$this->asCfg->cfg['asId']) ? "asvar=new Array();asvar[0]='{$json}';" : "asvar[asvar.length]='{$json}';";
                    So with one snippet call, you don’t need asId=... and with 2 AS snippet calls (mode ajax) you are oblige to have one snippet without asId and the second one with asId=... otherwise the asvar js variable is not initialized embarrassed

                    Open firebug, open the js script file ajaxSearch.js, and you get an error ... asvar is not defined

                    I need to found a proper solution to solve this. Thanks again for this feedback.
                      • 11055 ☆ A M B ☆
                      • 3,112 Posts
                      Quote from: goldsky at Feb 01, 2010, 05:53 AM

                      What is the correct statement of this?
                      // ’tb_alias:display_function_name[,[tb_alias:display_function_name]*]’ : set up placeholders for custom joined tables
                      Do you mind to tell me about this?
                      It’s about &tvPhx

                      edit:
                      And I believe that new placeholders have been added silently (no documentation mentions about them).
                      What are the current placeholders?

                      edit again:
                      I think you should clean up the code, because the character issue still exists in this version.

                      another edit:
                      What is the replacement for these placeholders?
                      [+as.xxxxClass+] a class name equal to:
                      - ajaxSearch_resultXxxx for the non ajax results (&tplResult)
                      - AS_ajax_resultXxxx for the ajax window (&tplAjaxResult)
                      and in any case the extract result built with &extract parameter:
                      [+as.extract+], [+as.extractShow+], [+as.extractClass+]
                      with AS_ajax_resultExtract (ajax) or ajaxSearch_resultExtract (non-ajax) as class names
                        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.