Re: [Radiant] Displaying Recent Articles

2010-11-09 Thread Obi
Sweet, thanks guys for all your help!

I got lots to read up on now :)

On 08/11/2010, at 23:22, Jim Gay wrote:

> I'm about to announce a re-release of featured_pages, but that's not
> what you want here.
> I'm not sure why you have a 'contact us' page under articles, but you
> might have your reasons.
> 
> Using featured_pages would require a lot of manual labor.
> What you want is for it to be automatic.
> 
> Just use the  or  tags.
> 
> You can do something like this:
> 
> 
> 
>   
> 
>   
> 
> The wiki has a lot of great content
> https://github.com/radiant/radiant/wiki/Conditional-Tags
> 
> On Mon, Nov 8, 2010 at 8:05 PM, Rachel Soma  wrote:
>> Either make sure that only pages you want pulled in are under the url you're
>> pointing at (why is your contact us page under /articles ?) or look into
>> featured pages
>> https://github.com/saturnflyer/radiant-featured_pages-extension to select
>> particular pages for display only.
>> 
>> --
>> Rachel
>> 
>> On Tue, Nov 9, 2010 at 11:02 AM, Obi  wrote:
>>> 
>>> Sweet, thanks Rachel, I'll definitely check out that extension.
>>> So far I've gotten the following code to do what I want:
>>> 
>>> 
>>>   
>>> 
>>>  
>>> 
>>> Read this article
>>> 
>>>   
>>>   
>>> 
>>> 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  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.
 
   
   
 

 
 
   
   
 
 
 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  wrote:
> 
> Does anyone know of an extension that will allow me to automatically
> display recent articles with a title and a small excerpt?
 
>>> 
>>> 
>> 
>> 
> 
> 
> 
> -- 
> Jim Gay
> Saturn Flyer LLC
> http://www.saturnflyer.com
> 571-403-0338



Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Jim Gay
I'm about to announce a re-release of featured_pages, but that's not
what you want here.
I'm not sure why you have a 'contact us' page under articles, but you
might have your reasons.

Using featured_pages would require a lot of manual labor.
What you want is for it to be automatic.

Just use the  or  tags.

You can do something like this:


 
   
 
       

The wiki has a lot of great content
https://github.com/radiant/radiant/wiki/Conditional-Tags

On Mon, Nov 8, 2010 at 8:05 PM, Rachel Soma  wrote:
> Either make sure that only pages you want pulled in are under the url you're
> pointing at (why is your contact us page under /articles ?) or look into
> featured pages
> https://github.com/saturnflyer/radiant-featured_pages-extension to select
> particular pages for display only.
>
> --
> Rachel
>
> On Tue, Nov 9, 2010 at 11:02 AM, Obi  wrote:
>>
>> Sweet, thanks Rachel, I'll definitely check out that extension.
>> So far I've gotten the following code to do what I want:
>> 
>> 
>>   
>>     
>>          
>> 
>> Read this article
>>     
>>   
>>   
>> 
>> 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  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.
>>> 
>>>   
>>>   
>>>     
>>>    
>>> 
>>>     
>>>   
>>>   
>>> 
>>>
>>> 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  wrote:

 Does anyone know of an extension that will allow me to automatically
 display recent articles with a title and a small excerpt?
>>>
>>
>>
>
>



-- 
Jim Gay
Saturn Flyer LLC
http://www.saturnflyer.com
571-403-0338


Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Rachel Soma
Either make sure that only pages you want pulled in are under the url you're
pointing at (why is your contact us page under /articles ?) or look into
featured pages
https://github.com/saturnflyer/radiant-featured_pages-extension to select
particular pages for display only.

--
Rachel

On Tue, Nov 9, 2010 at 11:02 AM, Obi  wrote:

> Sweet, thanks Rachel, I'll definitely check out that extension.
>
> So far I've gotten the following code to do what I want:
>
> 
> 
>   
> 
>  
> 
> Read this article
> 
>   
>   
> 
>
> 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  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.
>>
>> 
>>   
>>   
>> 
>>
>> 
>> 
>>   
>>   
>> 
>>
>> 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  wrote:
>>
>>> Does anyone know of an extension that will allow me to automatically
>>> display recent articles with a title and a small excerpt?
>>
>>
>>
>>
>
>


Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Obi
Sweet, thanks Rachel, I'll definitely check out that extension.

So far I've gotten the following code to do what I want:



  

 

Read this article

  
  


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  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.
>> 
>> 
>>   
>>   
>> 
>>  
>>  
>> 
>>   
>>   
>> 
>> 
>> 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  wrote:
>> Does anyone know of an extension that will allow me to automatically display 
>> recent articles with a title and a small excerpt?
>> 
> 
> 



Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Rachel Soma
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  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.
>
> 
>   
>   
> 
>
> 
> 
>   
>   
> 
>
> 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  wrote:
>
>> Does anyone know of an extension that will allow me to automatically
>> display recent articles with a title and a small excerpt?
>
>
>
>


Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Joel Oliveira
You should probably look at some documentation.  For starters:

https://github.com/radiant/radiant/wiki/Radius-Tags
http://radiantcms.org/blog/archives/2006/05/11/tag-primer/

And my example was based on the assumption you had a page part for all your
articles/posts called "excerpt".  If you don't have one you'll either have
to add one or maybe use something like a text expander plugin of some sort
(example: http://plugins.learningjquery.com/expander/)

Good luck!

- Joel

On Mon, Nov 8, 2010 at 5:19 PM, Obi  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.
>
> 
>   
>   
> 
>
> 
> 
>   
>   
> 
>
> 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  wrote:
>
>> Does anyone know of an extension that will allow me to automatically
>> display recent articles with a title and a small excerpt?
>
>
>
>


Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Obi
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.
> 
> 
>   
>   
> 
>   
>   
> 
>   
>   
> 
> 
> 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  wrote:
> Does anyone know of an extension that will allow me to automatically display 
> recent articles with a title and a small excerpt?
> 



Re: [Radiant] Displaying Recent Articles

2010-11-08 Thread Joel Oliveira
It's built in.


  
  

   


  
  


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  wrote:

> Does anyone know of an extension that will allow me to automatically
> display recent articles with a title and a small excerpt?


[Radiant] Displaying Recent Articles

2010-11-08 Thread Obi
Does anyone know of an extension that will allow me to automatically display 
recent articles with a title and a small excerpt?