Hi everybody!
I'm setting up a blog following the tutorial (
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution) on Modx.
Now i'm having issues with the Archives section.
I followed the steps the tutorial described but modx doens't seem to get the correct code.
I'm gonna explain quickly what i did:
First i pasted the following code into my blog template at the bottom:
<h3>Archives</h3>
<ul>
[[!Archivist? &target=`18` &parents=`10,11`]]
</ul>
The code target's page 18 what in my case is my Archive rescourse.
The code I pasted into my Archive Recourse is the following:
[[!getPage?
&element=`getArchives`
&elementClass=`modSnippet`
&tpl=`blogPost`
&hideContainers=`1`
&pageVarKey=`page`
&parents=`10,11`
&includeTVs=`1`
&toPlaceholder=`Archives`
&limit=`10`
&cache=`0`
]]
<h3>[[+arc_month_name]] [[+arc_year]] Archives</h3>
[[+Archives]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
Following the tutorial, I used the numbers 10 and 11 in my Parents tag since my blogposts are posted in categories who's names are 10 and 11.
When I preview this page, everything shows up just fine. BUT! When i click inside a post on the archives link - i get send to the homepage.
You can look here for more info or a Demo...
www.innovarts.be
I hope somebody can help me. I'm sorry for my bad English, Dutch is my native language.
Kind Regards
Simon