We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 18367
    • 834 Posts
    Hi all I’ve built a blog in Modx Evo using Ditto

    http://makethemclick.com.au/library

    and it’s working reasonably well, but there are just a few little niggles that I can’t seem to resolve.

    1: In the RSS feed I can’t figure out how to get the Read More link into the feed.

    http://makethemclick.com.au/library/feed/

    The code looks like this
    <item>
    		<title>[+rss_pagetitle+]</title>
    		<link>[(site_url)][~[+id+]~]</link>
    		<description><![CDATA[ [+blog-summary+] ]]></description>
    	
    
    	<guid isPermaLink="false">[(site_url)][~[+id+]~]</guid>
    
    
    </item>


    2: Also I can’t remember how to get the pub date into the post template.

    It’s been a while since I built this, so any gentle reminders would be appreciated.

    Thanks
    grin


      Content Creator and Copywriter
      • 33968
      • 863 Posts
      Hi there,

      Just had a look at your feed and seems you sorted out the ’read more’ part. I haven’t seen it in a dedicated reader, but note that Safari’s rss display automatically adds the ’read more’ part so it is showing up twice there.

      To get the Published date to output, add &dateSource=`pub_date` to your Ditto call and the following to your RSS template:
      <pubDate>[+rss_date+]</pubDate>


      That should do it!
        • 18367
        • 834 Posts
        Lucas,

        not really, I just hand coded the read more link into the last few posts as a stop gap measure.


        Still can’t get the RSS file to automatically include it.

          Content Creator and Copywriter
          • 33968
          • 863 Posts
          I think the idea of an RSS feed is to supply raw data in a consistent format which is then parsed and formatted by a feed reader or web page.

          You can’t control how your feed is displayed by other sites, browsers or feed readers. If the reader is set up to include a ’Read more’ link (see Safari screenshot attached) then it will pull the link from within the <link></link> tags and add the ’Read more’ link text itself.

          Does that make sense? Maybe have a quick read through the RSS Spec for more info but I think your feed is fine as it is (without the hard-coded links).
            • 18367
            • 834 Posts
            Lucas,

            but that’s the problem, neither Feedburner, Feedblitz, nor the RSS readers in Chrome and Firefox are pulling the Read more link
            it will pull the link from within the <link></link> tags and add the ’Read more’ link text itself.

            I’ve tried putting it everywhere I can think of but it just won’t show up.




              Content Creator and Copywriter
              • 33968
              • 863 Posts
              How about changing <guid isPermaLink="false"> to "true" and see if that has any effect?
                • 18367
                • 834 Posts
                Made no difference.

                Maybe some code will help

                Here’s the rss file

                [!Ditto? &parents=`22` &hideFolders=`1` &depth=`2` &format=`rss`  &summarize=`10`  &total=`10` &tpl=`blogtest` &hideFolders=`301` !]


                Here’s the feed template
                <item>
                <title>[+rss_pagetitle+]</title>
                <link>[(site_url)][~[+id+]~]</link>
                <description><![CDATA[ [+blog-summary+] ]]></description>
                <guid isPermaLink="true">[(site_url)][~[+id+]~]</guid>
                </item>

                At the moment there are no date or read more links in there ’cos even when I put them in there, they don’t show up.


                  Content Creator and Copywriter
                  • 54098
                  • 1 Posts
                  Hi,

                  My website blog was working fine till last month. But i am having issues with blogs link for newly added blogs, the href for these blogs are empty however links are showing for previous blogs.

                  My blog link is https://www.ftlauderdalecc.com/blog/

                  Can anyone help?

                  Thanks in advance
                    • 38783
                    • 571 Posts
                    If you did not make any changes to the MODX installation or configuration around that time is it possible that the version of php running on your web server has been updated by your server administrator or hosting company?

                    I also noticed that your base href is set to:
                    <base href="https://ftlauderdalecc.com/" />


                    But your site is actually published on:
                    https://www.ftlauderdalecc.com/


                    I can't see how this could cause the problem you are experiencing, but I think it might cause problems of some sort. Perhaps others reading this post could advise on this observation?

                    Could you provide details of the version of MODX you are using, which Blog extra you are using (with it's version number) and what version of php you have running on your server?
                      If I help you out on these forums I would be very grateful if you would consider rating me on Trustpilot: https://uk.trustpilot.com/review/andytough.com

                      email: [email protected] | website: https://andytough.com
                      • 17301
                      • 932 Posts
                      Clear your cache in the manager and ftp - do the legacy links still work?
                        ■ email: [email protected] | ■ website: https://alienbuild.uk

                        The greatest compliment you can give back to us, is to spend a few seconds leaving a rating at our trustpilot: https://uk.trustpilot.com/review/alienbuild.uk about the service we provided. We always drop mention of services offered by businesses we've worked with in the past to those of interest.