Hi guys.
I’m following the tutorial in the revo docs on setting up a blog.
I’m doing some things a little differently: I’m not using tags or sections. I’m trying to do things as simply as possible. I haven’t set up an archive either.
I’ve got a couple of unexpected results so far. One is that, after creating a post, following the directions in the tutorial, the post isn’t showing up on the main blog page.
I can find the post page by either going to a preview of it or allowing it to show up in the menu. But I don’t want it to be picked up by wayfinder, so I don’t want my posts in menus for now.
I suspect the problem might come from my blog page template, which I’ve modified from the example in the docs to account for me not using tagging, and the blog’s resource id being different (’1’ in the tut. ’10’ in my site structure.)
[[$chunkHead?]]
<div id="blog-container" class="card">
<h1>Julie Anne Genter's Blog</h1>
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`blogPost`
&parents='10'
&limit=`5`
&includeContent=`10`
&includeTVs=`10`
&showHidden=`0`
&hideContainers=`1`
&cache=`0`
&pageVarKey=`page`
]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
</div> <!-- blog-container ends -->
[[$chunkFoot?]]
What could be happening here?
The other problem I’ve got is a strange behaviour in my wayfinder created menu, that seems to occur when I’m on the blog page.
’blog’ is a top level resource that has no parent. It has the resource ID of ’11’.
When I’m on the blog page, the item ’blog’ appears in my simple wayfinder generated menu, as expected.
However, if I click on it, my browser attempts to load ’http://mypage/blog/blog’.
On all other pages, the same link seems to present the favourable URL, ’http://mypage/blog’.
Furthermore, the navigation menu generated by the exact same wayfinder code messes up the URLs in the menus from the page of my blog post. All URLs are suffixed with ’blog’. So they all go nowhere.
If it looks like I can’t quiet modify the tutorial instructions to work simply without tagging, is there another guide available that lets me achieve the same result? Just a blog, preferably with commenting using modx?