We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    Ok, in the latest SVN commit these no documents errors should be fixed.

    @Rachel: I ran your call (copied and pasted) on my local install after creating a tv image and it worked fine. Can you run your call with &debug=`1` and paste the output here so I can see what is happening.

    @laurentc: Try the filters without the tv prefix and let me know if that works. The filter should be legacy compatible but it may be malfunctioning...
      • 8471
      • 333 Posts
      Quote from: Mark at Feb 21, 2007, 03:00 PM

      Ok, in the latest SVN commit these no documents errors should be fixed.
      Thanks again... you have solved wink
        Sorry for my bad English grin
        • 32847
        • 171 Posts
        Hello,

        I can’t find how to use Reflect as a classic blog’s archive? tongue
          • 24292
          • 28 Posts
          Output without [+link+] outside the PHx condition.
          Ditto Version 2.0RC1
          Debug Info
          Number of documents supposed to summarized : 99
          Number of documents collected from the database: 2
          Sort by : createdon
          Sort direction: ASC
          Start at item 0 and stop at 99 out of 2
          Prefetch: No
          
          IDs
          114, 115
          
          Snippet Parameters
          Parameters 
          debug 1 
          documents 114,115 
          noResults  
          sortBy createdon 
          sortDir ASC 
          tpl AdItem 
           
          
          
          Filter
          None
          
          Fields
          display backend retrieved 
          db tv custom 
          content published id pagetitle 
           image 
           title 
           
           db 
          id published createdon 
           
           db tv 
          content published id pagetitle 
           image 
           
           
          
          
          
          Document Data
          ad1 (114) 
          content <p> This area could be used for ads of some sort or just areas of the website that you want to draw attention to. </p> <p> This ad links to the Creative Space page.  </p>  
          id 114 
          image assets/images/cape/side_p1.gif 
          pagetitle ad1 
          published 1 
          title ad1 
          tplFirst <dt> [+image:isnot=``:then=`<a href="[~[+link+]~]"><img src="[+image+]" alt="[+title+]"</a>`+] </dt> <dd> [+content+] </dd> 
          tvimage assets/images/cape/side_p1.gif 
           
          
          ad2 (115) 
          content <p> Unlike news items, they appear on <strong>all </strong>pages on the website. It would be possible to have different <span class="intro">&#39;ads&#39; </span>on various sections of the site. </p> <p> This one lnks to Job Opportunities.  </p>  
          id 115 
          image assets/images/cape/side_p3.gif 
          pagetitle ad2 
          published 1 
          title ad2 
          tplLast <dt> [+image:isnot=``:then=`<a href="[~[+link+]~]"><img src="[+image+]" alt="[+title+]"</a>`+] </dt> <dd> [+content+] </dd> 
          tvimage assets/images/cape/side_p3.gif  
          


          With <!-- [+link+] --> added to the tpl chunk
          Ditto Version 2.0RC1
          Debug Info
          Number of documents supposed to summarized : 99
          Number of documents collected from the database: 2
          Sort by : createdon
          Sort direction: ASC
          Start at item 0 and stop at 99 out of 2
          Prefetch: No
          
          IDs
          114, 115
          
          Snippet Parameters
          Parameters 
          debug 1 
          documents 114,115 
          noResults  
          sortBy createdon 
          sortDir ASC 
          tpl AdItem 
           
          
          
          Filter
          None
          
          Fields
          display backend retrieved 
          db tv custom 
          content published id pagetitle 
           image link 
           title 
           
           db 
          id published createdon 
           
           db tv 
          content published id pagetitle 
           image link 
           
           
          
          
          
          Document Data
          ad1 (114) 
          content <p> This area could be used for ads of some sort or just areas of the website that you want to draw attention to. </p> <p> This ad links to the Creative Space page.  </p>  
          id 114 
          image assets/images/cape/side_p1.gif 
          link 91 
          pagetitle ad1 
          published 1 
          title ad1 
          tplFirst <dt> [+image:isnot=``:then=`<a href="[~[+link+]~]"><img src="[+image+]" alt="[+title+]"</a>`+] </dt> <dd> <!-- [+link+] --> [+content+] </dd> 
          tvimage assets/images/cape/side_p1.gif 
          tvlink 91 
           
          
          ad2 (115) 
          content <p> Unlike news items, they appear on <strong>all </strong>pages on the website. It would be possible to have different <span class="intro">&#39;ads&#39; </span>on various sections of the site. </p> <p> This one lnks to Job Opportunities.  </p>  
          id 115 
          image assets/images/cape/side_p3.gif 
          link 76 
          pagetitle ad2 
          published 1 
          title ad2 
          tplLast <dt> [+image:isnot=``:then=`<a href="[~[+link+]~]"><img src="[+image+]" alt="[+title+]"</a>`+] </dt> <dd> <!-- [+link+] --> [+content+] </dd> 
          tvimage assets/images/cape/side_p3.gif 
          tvlink 76 
           
          
            • 15987
            • 786 Posts
            Mark,
            Found a small bug... In the ditto class, in the function appendTV, where the function getTVDisplayFormat is called the first time. The last parameter is missing and should be $row[’contentid’]. Without this, @INHERIT tvars are not getting processed correctly (At least they didn’t when I copied this function to Wayfinder).
              • 16732
              • 592 Posts
              Hi Mark,

              I try to remove all the tv prefix... but with no result ...here the new debug info (picture)

              I forgot to show you how I send my filters infos (with two dropdown lists)

               $chunkHTML['annuListOutput'] .='<form method="get" action="[~3~]">
              	<fieldset>
              		<strong><label>Catégorie<br />
              		<select title="Catégorie" id="ditto_filter_1" name="ditto_filter_1">
              			<option value="listCat,Tout,2" selected="selected">Choisissez une valeur</option>
              			<option value="listCat,1,1">Entreprises de batiment</option>
              			
              		</select></label></strong><br /><br />
              
              		<strong><label>Départements<br />
              		<select title="departement" id="ditto_filter_2" name="ditto_filter_2">
                          <option value="Depart,Tout,2" selected="selected">Choisissez une valeur</option>
                         <option value="Depart,01,1">Ain (01)</option> 
              
              		</select></label></strong><br /><input type="hidden" value="3" name="id" />
                     ';
              
              


              for these dropdown lists, It’s working with <option value="tvlistCat,2,1">Bureaux d\’expertise</option>, &tagData = `tvlistCat,tvDepart`, &hiddenTVs=`listCat,Depart`, &extenders=`request`, &tagDelimiter=`,` and the first RC2 files
                • 23050
                • 1,842 Posts
                Hi, anyone can confirm that &tplAlt works fine ? I declared a &tplAlt in Ditto call, it appears in debug info but it’s not the tplAlt which is used, it’s &tpl

                [!Ditto? &summarize=`all` &hideFolders=`1` &tpl=`ListeProduitCategories1` &tplAlt=`ListeProduitCategories2` &extenders=`summary` &debug=`1`!]


                Do I have to change something ?
                  • 16732
                  • 592 Posts
                  @perrine
                  Did you try to use it with the tplFirst param and don’t use the tpl one...
                    • 23050
                    • 1,842 Posts
                    &tplFirst works fine ! I called the same tpl as the Alt one and it is displayed... But &tplAlt still doesn’t work. Strange (on this install, I use 0.9.5)
                      • 16732
                      • 592 Posts
                      I made a quick test and you are right... if I use tplFirst and tplAlt, the first output is good but the others are done with the default Ditto template huh

                      This discussion is closed to further replies. Keep calm and carry on.