We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7527
    • 437 Posts
    Hi. I am using the AdvSearch on my Revolution site and the results come back as requested. But I have now restructured things and I need it to see through an unpublished container to a depth of 3.

    Level 1 ---> Level 2 (unpublished) ---> Level 3 (result I need)

    Is there an option for this as I cannot seem to achieve it. When I search it just keeps returning empty. My call is:

    [[!AdvSearch? &perPage=`10` &withFields=`pagetitle,introtext,content,longtitle` &fields=`pagetitle,introtext,content,longtitle` &tpl=`AdvSearchResult` &hideMenu=`1` &highlightTag=`strong` &highlightResults=`2` &includeTVs=`news_image` &extractLength=`600` &parents=`49,44,50,45,39,40,47,51,48`]]


    Also the results will not return the image from my TV "news_image". My template for this is:

    <div class="post-wrapper">
            <div class="post-title clear">
              <div class="post-heading"> <h3>[[+advsearch.idx]]. <a href="[[+advsearch.link:is=``:then=`[[~[[+advsearch.id]]]]`:else=`[[+advsearch.link]]`]]" title="[[+advsearch.longtitle]]">[[+advsearch.pagetitle]]</a></h3></div></div>
              
            
            <div class="post-content post-excerpt"><img class="alignleft" title="[[+tv.news_image_title]]" src="[[+tv.news_image]]" alt="" width="610" height="380" />[[+advsearch.extracts]]
            </div>
            <div class="post-read"><a class="more-link" href="[[+advsearch.link]]">Read the rest of this entry »</a>
     </div></div>


    Any help appreciated thanks, DS
      www.PawsForWildlife.co.uk
      www.Borntobrick.co.uk
      • 7527
      • 437 Posts
      Just to simplify my question, as it may be a bit confusing. I am basically looking for AdvSearch equivalent to &depth, and the ;see through unpublished' option. I also can't get the field potency to work, it keeps defaulting to createdon, I am using:

      &fieldPotency=`pagetitle:50,content:10`


      Any ideas please?
        www.PawsForWildlife.co.uk
        www.Borntobrick.co.uk
        • 7527
        • 437 Posts
        distant_smile Reply #3, 10 years ago
        I have been trying many alternatives for this but I still cannot get the &fieldPotency to work? I cannot see an AdvSearch equivalent to &depth either? Was this option not included with this snippet or is it renamed as a different parameter?
          www.PawsForWildlife.co.uk
          www.Borntobrick.co.uk
          • 11055 ☆ A M B ☆
          • 3,112 Posts
          I left "&fieldPotency" property for the legacy code, which was for Zend Lucene.
          I'm not supporting Zend, so I guess it's not required for MySQL or Solr engine.
            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.
            • 7527
            • 437 Posts
            distant_smile Reply #5, 10 years ago
            Hi Goldsky. Is there any &rank parameter so that I can manipulate the results? Also is there an equivalent to the &depth parameter so it will search deeper? Thank you
              www.PawsForWildlife.co.uk
              www.Borntobrick.co.uk