Hi all. I am new to Modx and I am trying to add a blog to my test site. I have followed:
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
I have a lot questions, especially after searching these forums, but I will as them 1 at time. First is, I can't get anything to show up on the blog page. It is blank. The post is under the Personal Container, I can see it if I click the Personal Link and the read more but the main blog page is blank.
The Blog main page resource ID is 4
BlogPostTemplate:
<!DOCTYPE html>
<head>
[[MetaX? &keywords=`mykeys`]]
[[$googleLikeHead?]]
<title>[[++site_name]] - [[*pagetitle]]</title>
<base href="[[++site_url]]" />
<link href="http://www.jbmaudio.com/newsite/assets/css/reset.css" rel="stylesheet" type="text/css" media="all" />
<link href="http://www.jbmaudio.com/newsite/assets/css/text.css" rel="stylesheet" type="text/css" media="all" />
<link href="http://www.jbmaudio.com/newsite/assets/css/960.css" rel="stylesheet" type="text/css" media="all" />
<link href="http://www.jbmaudio.com/newsite/assets/css/cc.css" rel="stylesheet" type="text/css" media="all" />
[[$google analytics?]]
</head>
<body>
<div class="container_12" id="container">
<div class="grid_12" id="header">[[$header-CC?]]</div>
<div class="grid_12" id="spacer"><br></div>
<div class="grid_12" id="menu">[[!Wayfinder? &startId=`0` &level=`1`]]</div>
<div class="grid_12" id="menu">[[!Wayfinder? &startId=`1` &level=`1`]]</div>
<div class="grid_12" id="spacer"><br></div>
<div class="grid_12" id="post">
<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=`1`]]`]] |
<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=`1`]]</span>
`]]
<br class="clear" />
</div>
<hr />
<div class="post-comments" id="comments">[[!Quip?
&thread=`blog-post-[[*id]]`
&replyResourceId=`123`
&closeAfter=`30`
]]
<br /><br />
[[!QuipReply?
&thread=`blog-post-[[*id]]`
¬ifyEmails=`[email protected]`
&moderate=`1`
&moderatorGroup=`Moderators`
&closeAfter=`30`
]]
</div>
</div>
<div class="grid_12" id="spacer"><br></div>
<div class="grid_12" id="galleryLinks">[[$galleryLinks-CC?]]</div>
<div class="grid_12" id="spacer"><br></div>
<div class="grid_12" id="footer">[[$footer-CC?]]</div>
</div>
</body>
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>
main Blog (4) page resource:
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`blogPost`
&parents=`10`
&limit=`5`
&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>
`]]
If view the source on the main blog page the content looks like this:
<div class="grid_10 suffix_2" id="content"><div class="line number1 index0 alt2"><code class="php plain"></code></div>
<div class="line number14 index13 alt1"><code class="php plain"></code></div></div>
I have been trying to figure this out all day...Any help you can give me would be appreciated.
Thanks!
[ed. note: jasonmonette last edited this post 14 years, 11 months ago.]