We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18397
    • 3,250 Posts
    MARKSVIRTUALDESK Reply #1, 21 years ago
    NewsFeed is deprecated. Please use Ditto.

    The NewsFeed snippet has been revised to be RSS Valid including author tags!

    Readme:


    NewsFeed for MODx v3
    Created by Raymond Irving, August 2005
    Code made RSS valid and enhanced by Mark Kaplan, September-October 2005
    Tag-closing feature by Greg Matthews

    Enable RSS2 news feed from your website

    Snippet Parameters [default]:

    &defaultauthor - Default username to use when missing or not available.
    Defaults to the initial admin user account. [string]
    Example: &defaultauthor=`Admin <[email protected]>`

    &makerss - set to 0 to generate a link to the feed. Defaults to 1

    (available when &makerss=1)
    &newsfolder - Folder id where news items are to be stored. Example &newsfolder=`2`. If &newsfolder is missing the current document id will be used.
    &topitems - set the top number of items to be listed in news feed. [20]
    &copyright - set copyright information
    &ttl - set how often should feed readers check for new material (in seconds) -- mostly ignored by readers.
    &trunc - truncate to summary posts? if set to false, shows entire post [true]
    &truncSplit - use the special "splitter" format to truncate for summary posts [true]
    &truncAt - the split-point splitter itself [<!-- splitter -->]
    &truncLen - if you don’t have a splitter or you turn that off explicitly, the number
    of characters of the blog to show for summary if not using splitter [450]
    However, if you have a summary of the post, it will use that instead.
    &pubOnly - display published documents [true]

    (available when &makerss=0)
    &showlink - set to 1 to show feed link. Defaults to 1
    &linkid - set the document id for the rss new feed. (available when &makerss=0)
    &commentschunk - if you’re using comments, the name of the chunk used to format them

    See attachment for snippet.
      • 7455
      • 2,204 Posts
      Nice work thanks a lot
        follow me on twitter: @dimmy01
        • 18397
        • 3,250 Posts
        MARKSVIRTUALDESK Reply #3, 21 years ago
        New version >> Check First Post!
          • 25663 MODX Staff
          • 12,272 Posts
          Excellent work. Good job and welcome to the testing team!
            Ryan Thrash, MODX Co-Founder
            Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
            • 18397
            • 3,250 Posts
            MARKSVIRTUALDESK Reply #5, 21 years ago
            Thanks! It is an honor!
              • 18397
              • 3,250 Posts
              MARKSVIRTUALDESK Reply #6, 21 years ago
              Version 2 Beta has been released!

              It now allows some html into the description per the RSS 2.0 spec.
                • 18397
                • 3,250 Posts
                MARKSVIRTUALDESK Reply #7, 21 years ago
                Version 2 Beta 2 has been released!


                [b]UNPUBLISHED & DELETED DOCUMENTS ARE NOW
                NOT SHOWN IN THE RSS FEED!

                [/b]
                  • 32963
                  • 1,732 Posts
                  Quote from: Mark at Oct 10, 2005, 02:16 PM

                  Version 2 Beta 2 has been released!


                  UNPUBLISHED DOCUMENTS ARE NOW
                  NOT SHOWN IN THE RSS FEED!



                  Well done mark and welcome to the MODx Testers forum smiley
                    xWisdom
                    www.xwisdomhtml.com
                    The fear of the Lord is the beginning of wisdom:
                    MODx Co-Founder - Create and do more with less.
                    • 18397
                    • 3,250 Posts
                    MARKSVIRTUALDESK Reply #9, 21 years ago
                    Thanks!
                      • 32963
                      • 1,732 Posts
                      Hi Mark,

                      Why did you change the following line to default to 1?

                       * &makerss - set to 0 to generate a link to the feed. Defaults to 1
                      
                      // set subscribe mode
                      $makerss = isset($makerss) ? $makerss:1;
                        xWisdom
                        www.xwisdomhtml.com
                        The fear of the Lord is the beginning of wisdom:
                        MODx Co-Founder - Create and do more with less.