How would I go about adding heirchal support to NewsListing?
In other words, how would I get NewsListing to be able to use mutliple folders?
-
MODX Staff
- 12,272 Posts
I’d look at the DropMenu code. You could use a similar technique I think.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
-
MODX Staff
- 12,272 Posts
Only figuring out what to output would/could be tricky... since no "nesting" really applies.
It might just be easier to have dual sorting where the first key is the "Category" and the second is the Category sort by. Output each one to a div and float/position to your heart’s content.
Ryan Thrash, MODX Co-Founder
Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
Ooh ooh me! I actually might have some reasonably interesting input on this one. When I wrote ListIndexer, I wrote it to be able to pull from anywhere between one folder and the whole site - with varying degrees in between. It is how I’ve handled such listings on a site or two. It’s not as "news" oriented as NewsListing, so it’s not a direct replacement, but you might take a gander at how I did the folder selection.
True- it was written for Etomite, but the powers that be should be pretty familiar with what (if anything) needs to change.
It should be pretty easy to follow as my snippets tend to be, some might say, over documented. I can’t help it. I just KNOW when I look at code in 4 months I won’t have a clue what I was thinking.
Standard Disclaimer
I could be totally wrong.