homepage Welcome to WebmasterWorld Guest from 54.166.122.65
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
Forum Library, Charter, Moderators: bill & werty

RSS, ATOM, and Related Technologies Forum

    
Help with Magpierss RSS Feed
Help with Magpierss RSS Feed
Miva

5+ Year Member



 
Msg#: 3283601 posted 9:54 am on Mar 16, 2007 (gmt 0)

I have the Magpierrs with smarty all set up. Works great but can't truncate the description or control the amount of listings I get.

Can anyone help? Thanks!

 

bill

WebmasterWorld Administrator bill us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3283601 posted 9:23 am on Apr 3, 2007 (gmt 0)

Welcome to WebmasterWorld Miva. Sorry that nobody has been able to help you out yet.

The Magpie FAQ has a section that seems to answer your question, at least in part:

  • Limit the number of headlines (aka items) returned. [magpierss.sourceforge.net]
  • weppos

    5+ Year Member



     
    Msg#: 3283601 posted 2:22 pm on Apr 13, 2007 (gmt 0)

    You can truncate the length of the description using PHP substr() function.

    For instance, if print($description) prints the description, then print(substr($description, 0, 30)) will print out just the first 30 characters.

    Global Options:
     top home search open messages active posts  
     

    Home / Forums Index / Code, Content, and Presentation / RSS, ATOM, and Related Technologies
    rss feed

    All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
    Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
    WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
    © Webmaster World 1996-2014 all rights reserved