We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 1778
    • 659 Posts
    Maybe (or not) a problem with your chunk ’blog_summary’... Can you post it ?

    Did you try without specifying the &tpl parameter ? What’s the result ?
    Cheers
      • 1919
      • 10 Posts
      My &tpl bellow and if I remove the result is the same.
      <div class="blog_summary">
      <h2>
        <a href="[[~[[+id]]]]" title="[[+title]]">[[+title]]</a>
      </h2>
      [[+introtext]] <br />
      <a href="[[+url]]"> read more...</a>
      </div>
      


      When I try [[!getResources]] the result is
      [2010-09-24 11:56:13] (ERROR @ /modx/index.php) Error 42000 executing statement: Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '1,3,4,5,2,6,7) AND (`modResource`.`context_key` IN ('web') OR EXISTS(SELECT 1 FR' at line 1 )
      
        • 1526
        • 72 Posts
        I followed theese instructions tu set up a news page:
        http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
        I have following two problems:

        • [tt][[+introtext:default=`[[+content:ellipsis=`100`]]`]][/tt] outputs also the html tags as text, so it outputs the <p> etcetera.
        • the breadcrumb at the bottom doesn’t use frindly urls, and in any case the link s don’t work.

          MODx evo 1.5~1.6 ✪ Apache v 2.2.22 ✪ PHP v 5.3.10 ✪ MySQL v 5.1.61
          <°'iiii);
          • 22303 MODX Staff
          • 10,725 Posts
          Quote from: andrearicci at Sep 27, 2010, 05:12 AM

          • [tt][[+introtext:default=`[[+content:ellipsis=`100`]]`]][/tt] outputs also the html tags as text, so it outputs the <p> etcetera.
          This is an issue with the ellipsis output filter in 2.0.1/2.0.2. See http://modxcms.com/forums/index.php/topic,54578.msg316336.html#msg316336
          Quote from: andrearicci at Sep 27, 2010, 05:12 AM

          • the breadcrumb at the bottom doesn’t use frindly urls, and in any case the link s don’t work.
          What breadcrumb at the bottom?
            • 1526
            • 72 Posts
            @ OpenGeek, thank you.
            Sorry not a breadcrumb, indeed, but the paging.
              
            [[!+page.nav:notempty=`  
            <div class="paging">    
            <ul class="pageList">    
              [[!+page.nav]]    
            </ul>    
            </div> `]] 

            Gives me wrong links: they do not use friendly urls, they show link like [tt]http://localhost/?page=2[/tt] that send me to the XAMPP server page (http://localhost/xampp/).
              MODx evo 1.5~1.6 ✪ Apache v 2.2.22 ✪ PHP v 5.3.10 ✪ MySQL v 5.1.61
              <°'iiii);
              • 22303 MODX Staff
              • 10,725 Posts
              Quote from: andrearicci at Sep 29, 2010, 09:52 AM

              @ OpenGeek, thank you.
              Sorry not a breadcrumb, indeed, but the paging.
                
              [[!+page.nav:notempty=`  
              <div class="paging">    
              <ul class="pageList">    
                [[!+page.nav]]    
              </ul>    
              </div> `]] 

              Gives me wrong links: they do not use friendly urls, they show link like [tt]http://localhost/?page=2[/tt] that send me to the XAMPP server page (http://localhost/xampp/).
              Did you alter any of the properties for the paging links?
                • 22739
                • 11 Posts
                getResources has been great to work with but I’ve run into a frustrating problem. My site takes a full 7-8 seconds to load and I’ve narrowed it down to the getResources calls that are slowing it down. Are there any best practices for speeding up the calls (or at least things to avoid)? It’s only querying about 40 resources. I’m using a number of TVs--mostly images. Thanks.
                  • 22969
                  • 158 Posts
                  Hi Guys,

                  Having problems with this,

                  This is the call:

                  [[!getResources? &parents=`5` &tpl=`tplworks` &includeTVs=`1` &processTVs=`1`]]

                  And here is the tpl:

                  <div class="grid_5 summary-item">
                  <a href="[[~[[+id]]]]" class="summary-block">
                  <div class="grid_2 alpha"><img src="img/img-140.jpg" width="140" height="94" alt="img" /></div>
                  <div class="grid_3 omega">
                  <h2>[[*artistname]] <span>[[*artistq]]</span></h2>
                  <span>[[*artistdate]]</span>
                  <p>[[+pagetitle]]</p>
                  </div>
                  </a>
                  </div>

                  Now the link is working as is the page title, but all the other TV’s are displaying the "default output" set in the TV and not the actual relevant info if that make sense?

                  Brett
                    • 22303 MODX Staff
                    • 10,725 Posts
                    The TV’s in your tpl need to be in this format, as within the tpl they are placeholders:

                    [[+{tvPrefix}tvName]]


                    Note the default tvPrefix value is tv.
                      • 36541
                      • 222 Posts
                      I need advice on how to use getResources to push featured resources to top of the list. Resources can be marked as "featured" with a TV, say [tt]res.featured[/tt] with value of 0 or 1.

                      I need those "featured" to show on top of the list regardless sorting criteria. The number of featured items can vary from 0 to few.

                      What should be the snippet call to achieve this? Is that feasible?
                        This is the web: the only thing you know about who will come is that you don't know who will come.