We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 24946
    • 17 Posts
    Hi there, I need some help.

    I have a request to develop a site for a client who regularly writes for various outside blogs, as well as her own blog. I am getting familiar with Revo, and would like to know whether it’s possible to set up a "News" or "Recent Posts" section that could do basically what this woman’s site does: http://cherylsternmanrule.com/

    I need my client to be able to quickly and easily insert a relevant image, some text, and a link to an article which she has recently written. Is there a chunk or snippet that would help me do that? I need to be able to tell the chunk or snippet "show the latest five entries the author has posted and then hide/archive the rest," as well as "make sure each entry is only so many pixels high and wide,"

    Is this possible with modx? Or would I have to set up something like a wordpress blog for these functions?

    Thanks so much!
      • 18373 ☆ A M B ☆
      • 3,141 Posts
      How I would do this:
      - Let the client make new resources in a certain container, eg "Latest news".
      - Using TV’s (perhaps some modification to the form in the backend using Form Customization) and resource fields your client can enter the details of what she written.
      - Utilizing getResources you can get a list of all resources under the "Latest news" container, formatted as you please using the &tpl parameter. Using &limit you get the 5 last entries. Using css / phpthumb for images to keep it within the size needed.
      - On a seperate archive page use getResources again with a different &tpl parameter to show all entries
        Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

        Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.