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
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);
@ 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);
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.
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
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.