Skip to content
General Revolution Evolution Add-ons International
Login | Register | MODX.com
MODX Open Source Content Management System, Framework, Platform and More.
Find a Partner | Hosts + SaaS | Jobs | Donate
  • RegisterSign Up with the MODX Community
  • LoginUse Your MODX.com Account
  • MODX Community Forums
  • Add-ons
  • Search
  •  
  • how to search only in published documents#

  • 37138
    9

    ashoksaini Reply #1, 7 months, 1 week ago

    Reply
    • Link to this post#1
    Hello,
    what to add to search string so as to show only thiose documents that have in search rsesult.
    Tried &filter=`published,1,2` andpublished==1` but it still shows those documents that are not published.
    Here is my search string
    [!AjaxSearch? &ajaxSearch=`0` &parents=`174` &where=`published==1` &AS_showForm=`0` &tplResult=`searchresults` &tvPhx=`tv:displayTV` &grabMax=`30` &tplResults=`search_main_results` &minChars=`2` &maxWords=`30` !]


  • 37138
    9

    ashoksaini Reply #2, 7 months, 1 week ago

    Reply
    • Link to this post#2
    gee? how to show only those documents in search result which have
    published==1


  • 5811
    1,677

    coroico Reply #3, 7 months, 1 week ago

    Reply
    • Link to this post#3
    By default the search occurs only in published documents.

    &where=`published==1`
    is not an allowed parameter for ajaxSearch.





Actions

Login to Post

Other Support Options

To file a bug or make a feature request visit our issue tracker, or you can also purchase commercial support.

Love MODX?

If you build sites for a living with MODX or just love using it, why not give back?

Information

Posted in this thread:
ashoksaini, coroico

 
Back to Top

MODX Global HQ

1333 N Stemmons Fwy, Ste 110
Dallas, TX 75207
United States

+1 (469) 777-MODX (6639)

The MODX Company

  • Contact
  • Media Center
  • Careers at MODX
  • Wall of Fame
  • The MODX Blog

Sponsors

SoftLayer Firehost: Secure Cloud Hosting

Stay Connected

Read our previous email newsletters.

Twitter Facebook Google+ LinkedIn github Feeds

Privacy Policy | Terms of Service | Pixels by AKTA Web Studio© 2005-2012 MODX. All rights reserved. Trademark Policy