I am struggling with getting getresource to play nice with article. It would be simple if there is a way to get getresource to start at a specified depth.
My situation: I have blog section with three folders/documents to use getresource to display the latest contents posted. Also with the homepage calling the recent articles posted anywhere. With in each folder/document, I have my article containers. Everything work fine to that point but everytime I add a new article container it show up in my get resource call as its own entity. Ex. adding article container called "subject", then i publish 2 articles. Getresources pulls the 2 articles(as it should) but also an entry called "subject". subject naturally has no text content and appears empty as the article container should be.
I suppose this is possible to work through as the article get populated, but everytime a new article container is made i get this blank entry. I am sure I can call just the containers that exist but would have to add the ID every time I add a new container which may be on a regular basis.
Is there a GetResource parameter to deal with this, a Depth start? Or is there another work around that I am not seeing here?
Thanks again in advance!
[[!getResources? &showHidden=`1` &parents=`27,7,28` &tpl=`articleTpl` &includeContent=`1` &includeTVs=`1` &processTVs=`1`]]
for those who want to see the getresource call. It works fine but also pulls the article container when newly created.
Cheers!
[ed. note: Shopcoop last edited this post 14 years, 7 months ago.]