We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7155
    • 160 Posts
    Hi

    I am not sure if this has been done before or if the solution is simple with MODx.

    I would like users to be able to subscribe to a weekly summary of blog posts. In other words, every week they get a summary of all blog posts for that week.

    I hope that makes sense.

    If there’s no ready solution, I am willing to create something and donate it back to the community. It does not sound too complicated to do.

    Thanks

    tino
      • 7155
      • 160 Posts
      I guess the silence means I cant do it using available tools. A snippet would probably be in order.

      This is how I think I will approach it, any comments will be appreciated:

      - have tables to keep track of blog posts, userids and weekly blog summaries published

      - snippet will look at todays date and compare it with the previous(last published) date, if a week has passed, it invokes Ditto to get the blog summaries which will then be sent to the users’ emails. The summary may then also be saved in the table (not sure if necessary). Users will opt to subscribe or unsubscribe.

      - sending will take place only once. and invoked by any user site visit. I dont know if this would be kind on performance especially where there are many users. or shall I use cron? It would make it inaccessible to Windows based users though undecided. hopefully this wont compromise performance so I can apply the former.

      I cant say I’m a Ditto guru, but from a bird’s eye view, it seems feasible

      I will have to implement this as I have a client who requires it.
        • 20413
        • 2,877 Posts
        Could you not use the rss xml feed somehow? Just thinking loud!
          @hawproductions | http://mrhaw.com/

          Infograph: MODX Advanced Install in 7 steps:
          http://forums.modx.com/thread/96954/infograph-modx-advanced-install-in-7-steps

          Recap: Portland, OR (PDX) MODX CMS Meetup, Oct 6, 2015. US Bancorp Tower
          http://mrhaw.com/modx_portland_oregon_pdx_modx_cms_meetup_oct_2015_us_bancorp_tower
          • 7155
          • 160 Posts
          hi mrhaw,

          am not sure but will look into it.