How do I show the current month on a page in modx.
For example, if had had a page called News - January, how would i have modx always update the month?
I have tried [+pagetitle+] - [+month+] but that doesn’t work.
Also while we’re at it. What is the filter i need for ditto only to show news stories from the current month?
-
☆ A M B ☆
- 24,524 Posts
Make a snippet, name it "ThisMonth". Here is the code
Then use the uncached snippet tags:
[*pagetitle*] - [!ThisMonth!]