-
- 202 Posts
&includeContent is a must.
-
- 108 Posts
Just tried it with &includeContent still nothing.
Changing the ID number in the getResources call to any other resource with sub-pages produces a list of those sub-pages. As far as I can tell this has to do with this resource being an Articles container.
-
- 108 Posts
Bingo! That was it. Thanks!
-
- 39 Posts
I was struggling with exactly the same problem and thanks to your advice it is working now, so thanks a lot! Maybe it would be worth to have a short paragraph on how to use Articles with getResources in the manual since it's not obvious to anyone, you can work with articles like you do with all other resources?
-
- 202 Posts
I was having issues pulling Latest Articles into my other templates.
The issue: I don't use pagetitles in my TPLs, and most of the time I don't use introtext, preferring to create "teasers" in my description.
I imported my existing MODX blog into Articles, which doesn't have description nor longtitle TVs, nor does it have hide from menus.
That's why my old MODX blog entries show up in Wayfinder, and the new ones don't. I figured I would just edit those 5 pre-Articles entries and manually set "hidemenu" to 1. I thought that would work, but it doesn't.
Suggestions?
-
- 202 Posts
Hi lukemcd,
Thanks for replying. I'm always forgetting to flush my core/cache manually. I edited my 5 pre-Articles blog posts so that they are hidden from menus. They no longer display in my default (non-Articles) templates.
It's the equivalent of telling Wayfinder to display all Parents and Children except the Article container...
Once MODX Resources are imported into the Articles Container, they retain their existing state and cannot have their attributes changed unless Articles' Property Set (??....nope) or Custom Manager (??.... nope again) is changed to allow that.
That's why my 5 pre-Articles posts were displaying in the Wayfinder menu, but none of my new entries were. It had nothing to do with getResources, and everything to do with the fact that Articles Manager interface doesn't display them.
Thanks for the snippet example for display options on Resources that are external to Articles.