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
    @thehen:

    The correct syntaxe for &tvPhx is :
    &tvPhx=`tv:displayTV`
    the function displayTV works with the table "tmplvar_contentvalues" which the table where tv values linked to the document are stored. All the tv of the document found will be available for displaying. It’s not necessary to precise any tv name in the snippet call. You need only use the appropriate placeholders of the tv you want displayed in your own template result.

    With custom non-Modx table, you could be interested to have the same feature. In this case you will write :
    &tvPhx=`myCustomTable:myCustomDisplayField`
    where "myCustomTable" is your own joined table and "myCustomDisplayField" your own custom function to display value of your fields. With this table and this function define in the configuration file. I will give an example on the AS demo site later.

    Coming back after a summer break, I could now help you if needed. Let me know.
      • 7455
      • 2,204 Posts
      I have a fount a bug I think

      when I use multiple words like "zoek hier..." then somehow the searchable parameter for the documents is ignored so my stylesheets are also found (I have them internal)
      you can test it here:
      http://choco.1-vision.eu/
      pres the zoek button in the right corner and you see the css
      those files have searchable set to off
      when you type "zoek" then its fine the word is not found. where the same word is found when you use "zoek hier"

      Dimmy
        follow me on twitter: @dimmy01
        • 5811
        • 1,717 Posts
        Dimmy could you :

        1/ give me your snippet call

        2/ do the following test
        - uncomment the line 212 of the file classes/search.class.inc.php:
        $f=fopen('test.txt','a+');fwrite($f,"sql=".$sql."\n\n");

        - do only one search
        - open the file test.txt which have been opened inside your MODx root folder
        - copy/paste here the content of the test.txt file in this post or in a personal message
        - comment again the line 212 - IMPORTANT
        - remove the file test.txt

        May be you could done these tests on your local site if you could reproduce this issue.
          • 7455
          • 2,204 Posts
          in the top:
          [!AjaxSearch? &ajaxSearch=`0` &extract=`1` &AS_landing=`20` &AS_showResults=`0` !]
          on landing page:
          [!AjaxSearch? &ajaxSearch=`0` &makeParentsList=`1` &AS_landing=`20` &parents=`5,6,7,8,12,13,14`!]

          where &makeParentsList=`1` is my own "hack"

          I hacked that code in the 1.7 version
          I realy like to keep that hack alife its realy a nice one
          maybe it can be included in the 1.8.1 version?

          using parents as search filter

          Dimmy
            follow me on twitter: @dimmy01
            • 5811
            • 1,717 Posts
            My test is for the version 1.8. not for the version 1.7. With 1.7 the class search.class.inc.php doesn’t exist.

            What do your hack ? May it could be ported to version 1.8 or If It is interesting for everybody, integrated in version 1.8.1