-
- 834 Posts
I'm trying to create a blog in Revo 2.2 and have followed the instructions on
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
and
http://codingpad.maryspad.com/2011/04/11/modx-revolution-for-complete-beginners-part-10-using-getresources-to-aggregate-content/
However, I'm getting stuck.
I've managed to create the blog posts alright, but I can't get the page categories to work.
I think my getResources calls aren't working for some reason, but I don't know why.
here's what they look like
[[!getResourcesTag? &elementClass=`modSnippet` &element=`getResources` &tpl=`blogPost` &parents=`5,6` &limit=`5` &includeContent=`8` &includeTVs=`1` &showHidden=`0` &hideContainers=`1` &cache=`0` &pageVarKey=`page` ]] [[!+page.nav:notempty=`
[[!+page.nav]]
`]]
[[!getResourcesTag? &element=`getResources` &elementClass=`modSnippet` &tpl=`blogPost` &hideContainers=`1` &pageVarKey=`page` &parents=`[[*id]]` &includeTVs=`1` &includeContent=`1` ]] [[!+page.nav:notempty=`
[[!+page.nav]]
`]]
[ed. note: markg last edited this post 12 years ago.]
Content Creator and Copywriter
Hello,
If you are looking for an easy to maintain blog you might want to look into using Articles. In regards to your error, are the parents correct?
-
- 834 Posts
Thanks but,
Articles doesn't do Categories so it's not a viable blog alternative.
In regards to the parents, still trying to figure out all the conventions. Do I need to replace the entire '[[*id]]' with a number or just put the parent number after the *.
Plus which pieces of '[[*id]]' code to I leave intact and which do I need to replace?
I've read the two articles a dozen times, but my eyes start to glaze over after a while trying to understand the fine distinctions of what needs to be changed and what stays the same.
Content Creator and Copywriter
-
- 834 Posts
Hmm,
seems I had some issues with all the required packages.
The Package Manager said they were all installed but I still couldn't see any of them in the Tree.
So I did a forced removal and reinstalled them again. That seems to have made some difference.
Any more comments will be over on this thread.
http://forums.modx.com/thread/?thread=40979&page=1
Best to keep it all in one place.
Content Creator and Copywriter