HI I am also having problems making the blog work, here is the link to the blog
http://www.funusbdrive.com/blog.html
1)I have created the “BlogPostTemplate” Template, I have added the footer and header chunk from the original template
[[$funusbdrive_header]]
<div id="content" class="blog-post">
<h2 class="title"><a href="[[~[[*id]]]]">[[*pagetitle]]</a></h2>
<p class="post-info">
Posted on [[*publishedon:strtotime:date=`%b %d, %Y`]] |
Tags: [[*tags:notempty=`[[!tolinks? &items=`[[*tags]]` &key=`tag` &target=`14`]]`]] |
<a href="[[~[[*id]]]]#comments" class="comments">
Comments ([[!QuipCount? &thread=`blog-post-[[*id]]`]])
</a>
</p>
<div class="entry">
<p>[[*introtext]]</p>
<hr />
[[*content]]
</div>
<div class="postmeta">
[[*tags:notempty=`
<span class="tags">Tags: [[!tolinks? &items=`[[*tags]]` &key=`tag` &target=`14`]]</span>
`]]
<br class="clear" />
</div>
<hr />
<div class="post-comments" id="comments">[[!Quip?
&thread=`blog-post-[[*id]]`
&replyResourceId=`123`
&closeAfter=`30`
]]
[[!QuipReply?
&thread=`blog-post-[[*id]]`
¬ifyEmails=`
[email protected]`
&moderate=`14`
&moderatorGroup=`Moderators`
&closeAfter=`30`
]]
</div>
</div>
[[$funusbdrive_footer]]
2) After that I set up a Template Variable that we’ll be using for our Tagging, I create my "tags" TV and allowed Access for the Template "BlogPostTemplate and the original Template
3) Creating my Section "Technology" ID 13, and "Personal" ID 12. I put it as the original template . Hiden from menu but is published then added this code to each/ the toggle editor was unticked to prevent & from showing
[[!getResourcesTag?
&element=`getResources`
&elementClass=`modSnippet`
&tpl=`blogPost`
&hideContainers=`1`
&pageVarKey=`page`
&parents=`[[*id]]`
&includeTVs=`1`
&includeContent=`1`
]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
4) I made my blogPost Chunk.
<div class="post">
<h2 class="title"><a href="[[~[[+id]]]]">[[+pagetitle]]</a></h2>
<p class="post-info">Posted by [[+createdby:userinfo=`fullname`]]
[[+tv.tags:notempty=` | <span class="tags">Tags:
[[!tolinks? &items=`[[+tv.tags]]` &key=`tag` &target=`1`]]
</span>`]]</p>
<div class="entry">
<p>[[+introtext]]</p>
</div>
<p class="postmeta">
<span class="links">
<a href="[[~[[+id]]]]" class="readmore">Read more</a>
| <a href="[[~[[+id]]]]#comments" class="comments">
Comments ([[!QuipCount? &thread=`blog-post-[[+id]]`]])
</a>
| <span class="date">[[+publishedon:strtotime:date=`%b %d, %Y`]]</span>
</span>
</p>
</div>
5) I creat my Home Blog Site. It is document of a parent ID “14” i use my original template and I put the following code. Shown in the menu / and Published
& where added to the snippet but I removed them
[[!getResourcesTag?
elementClass=`modSnippet`
element=`getResources`
tpl=`blogPost`
parents=`13,12`
limit=`14`
includeContent=`1`
includeTVs=`1`
showHidden=`0`
hideContainers=`1`
cache=`0`
&pageVarKey=`page`
]]
[[!+page.nav:notempty=`
<div class="paging">
<ul class="pageList">
[[!+page.nav]]
</ul>
</div>
`]]
6) I made a new document as “16” choosen the Template "BlogPostTemplate" and in the TV i put some Tags.
I cannot get anything to display on the page can anyone help?, I keep looking over these points
Possible reasons for a getResources failure to display as expected:
1. Is the resource that getResources is looking for published?
2. Is the resource that getResources is looking for hidden from menus (and not overridden in the getResources call)?
3. Does getResources know which context to use (only relevant if you have more than one context)?
4. Does the display chunk template _exactly_ match the tpl parameter name? (although I think you still get output if it doesn’t)
5. Are you looking in the right place, ie is ’parents’ set correctly ([[*id]] for my own children, a resource id or id1,id2,id3 for specific folders)?
6. Is the getResources code in plain text?
Unless you’re calling getResources cached, it shouldn’t make any difference to empty the site cache, but it usually doesn’t hurt to do so.