Modx "Most Popular" Articles Section

Modx version: 3.0.4

Side note: I was unable to write this article without adding the Modx extra "fixedPre" by Bob's guides

  • Install "MostPopular" extra
  • Add the following code to the article template to record the hits:

[[!mpLogPageView]]

  • Add the following code to the article container template to display the Most Popular articles:

[[!mpResources? &amp;separator=`<br />` &amp;tpl=`mpResourcesTpl` &amp;limit=`10` &sortDir=`DSC` ]]