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
    $link = $modx->config['site_url'].$modx->documentObject['alias']


    This may fix the problem for people using FURLS but it will cause alot of trouble if FURLS are not used.

    What about

    $link = $modx->config['site_url']."[~".$modx->documentObject['id']."~]";
    

    Give that a try and let me know if that works.

    As for this line:

    $link = $modx->config['site_url'].$modx->makeUrl($ds[$i]['id']);


    Give this a try

    $link = $modx->config['site_url']."[~".$ds[$i]['id']."~]";
    

    Hope this helps.
      • 4095
      • 372 Posts
      This may fix the problem for people using FURLS but it will cause alot of trouble if FURLS are not used.

      What about

      WHOO HOOO!!!! This was one of the last things I needed to fix before the site goes public, you made me a very happy man grin

      The person I’m writting the site for is coming around for BBQ and drinks tonight for New years. Now I can show off the new MODx site (time to replace his MS Publisher site). cool

      Thanks Mark.
        [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
        Admin Sandbox Login: sandbox Password: castle
        • 18397
        • 3,250 Posts
        So the code worksed (I didn’t get a chance to test it)?
          • 4095
          • 372 Posts
          Quote from: Mark at Dec 31, 2005, 05:40 AM

          So the code worksed (I didn’t get a chance to test it)?

          Like a dream smiley
            [img]http://www.emanz.ac.nz/assets/images/logo/emanz-icon_16x16.gif[/img] Emergency Management Academy of New Zealand [br] http://www.emanz.ac.nz[br][br]MODx Sandbox Login: sandbox Password: castle [br]
            Admin Sandbox Login: sandbox Password: castle
            • 2472
            • 151 Posts
            Hi guys,

            I just added the NewsFeed snippet to my site at www.avander.be and i’m getting strange behaviour with the Live Bookmarks in Firefox...

            The snippet is aimed at the content of this kinda blog page http://www.avander.be/index.php?id=49 and works pretty well ( see the page footer) apart from some sorting that still has to be done. But when I add a Live Bookmark I get links to documents that are not ment to be in the feed... where are these links coming from? Is RSS 2.0 not compatible with LB?

            Any thoughts? TIA

              A thing of beauty is a joy forever ( John Keats)
              • 2472
              • 151 Posts
              Found it!

              Live Bookmarks searches for an RSS link tag inside the head tag of the page. So when inserting the NewsFeed snippet in your page you MUST also modify the link tag in the page heading and make it point to your RSS document.

              <head>
              	<title>[(site_name)] | [*pagetitle*]</title>
              
              	<meta http-equiv="Content-Type" content="text/html; charset=[(etomite_charset)]" />
              
              	<link rel="stylesheet" href="assets/templates/.../site.css" type="text/css" media="screen" />
                      <link rel="stylesheet" href="assets/templates/.../form.css" type="text/css" media="screen" />
                      <link rel="stylesheet" href="assets/templates/.../lpg.css" type="text/css" media="screen" />
                <!-- this is the one -->
                      <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="[(site_url)][~81~]" />
              
                      <base href="[(site_url)]" />
                      ...
              </head>
                A thing of beauty is a joy forever ( John Keats)
                • 18397
                • 3,250 Posts
                NewsFeed is deprecated. Please use NewsListing 6.4.2.