Has anyone seen anything like this before?
Revo 2.1pl
I was following the tutorial
http://rtfm.modx.com/display/revolution20/Creating+a+Blog+in+MODx+Revolution
I have converted a blog HTML5 template to MODX and it works with no MODX content.
I removed the blog content section and replaced with [[*content]].
I added the following code from
Setting up Your Blog Home changing the &parents
[[!getResourcesTag?
&elementClass=`modSnippet`
&element=`getResources`
&tpl=`blogPost`
&parents=`2,3,4`
&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>
`]]
With the following tpl
<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>
This results in part of the Template Code disappearing. This happens halfway into the head section in a meta description line after ’content=’ including my css js modernizer and header and navigation sections up until the [[*conten]] call. I tried commenting out the meta line but lost more content from the getReaourvesTag call this was commented out, not vanished like template code.
Everything works without the snippet code in Resource in question Home Page ID 1.
Any ideas
EDIT
I found the problem by deleting the offending line as this was trying to use the snippet as the Description.
Moral of story don’t try working too late at night.