Sweet, thanks Rachel, I'll definitely check out that extension.
So far I've gotten the following code to do what I want:
<r:find url="/articles">
<ul class="list2">
<r:children:each order="asc" limit="20" >
<li>
<h3><r:title /></h3>
<p class="excerpt"><r:content part="excerpt" /></p>
<p><a href="<r:url />">Read this article</a></p>
</li>
</r:children:each>
</ul>
</r:find>
What would I need to add to this so that Radiant only pulls pages that have
excerpts (to stop it pulling things like "contact us" pages or menu pages etc.?
Thanks!
On 08/11/2010, at 20:33, Rachel Soma wrote:
> Use a page part and call that if you want to choose the excerpt or you can
> use truncate https://github.com/saturnflyer/radiant-truncate-extension to
> take the first X characters from the article and, well, truncate them.
>
> --
> Rachel
>
> On Tue, Nov 9, 2010 at 9:19 AM, Obi <[email protected]> wrote:
> Thanks Joel, I had no idea that was in there!
>
> The code you sent me provides a list of links, is there anyway to format it
> so that it shows a small excerpt for each link, and keeps the site formatting
> styles (header1,2 etc.)?
>
> Basically so it would look like this:
>
> http://img163.imageshack.us/img163/3228/screenshot20101108at191.jpg
>
> Any pointers would be greatly appreciated
>
> On 08/11/2010, at 17:41, Joel Oliveira wrote:
>
>> It's built in.
>>
>> <r:find url="/news"><!-- or blog, articles, whatever -->
>> <ul>
>> <r:children:each order="asc" limit="20" >
>> <li>
>> <p><r:link /></p>
>> <p class="excerpt"><r:content part="excerpt" /></p>
>> </li>
>> </r:children:each>
>> </ul>
>> </r:find>
>>
>> This is off the top of my head so I'm not 100% sure that will work. But
>> it's close.
>>
>> On Mon, Nov 8, 2010 at 3:28 PM, Obi <[email protected]> wrote:
>> Does anyone know of an extension that will allow me to automatically display
>> recent articles with a title and a small excerpt?
>>
>
>