SelectedPages doesn't seem to switch context
particleandparcel opened this issue · comments
Hi Dan,
I've got a mt:SelectedPages container in a template that refuses to build, no matter what I try. MT always squawks that there's a context problem. I've got version 2.2.3 installed, I was hoping this resolved my issue. Here's a fragment of the template in question:
<mt:IfNonEmpty tag="PageDataSelectedcontentitems">
<!-- Begin featurettes -->
<mt:SelectedPages basename="selectedcontentitems_new">
<!-- Featurette: <mt:PageTitle /> -->
<hr class="featurette-divider" id="<mt:PageBasename />">
<div class="row featurette">
<div class="col-md-7">
<h2 class="featurette-heading"><mt:PageTitle /> <span class="text-muted"><mt:PageDataSubheadline /></span></h2>
<p class="lead"><mt:PageBody /></p>
</div>
<div class="col-md-5">
<img class="featurette-image center-block" src="<mt:PageDataSelectedmainimagethumbnail />" height="400" width="400">
</div>
</div>
</mt:SelectedPages>
</mt:IfNonEmpty>
The error is quite specific:
An error occurred publishing page '(PAGE TITLE)': Publish error in template 'Page': Error in <mtIfNonEmpty> tag: Error in <mtSelectedPages> tag: Error in <mtPageTitle> tag: You used an 'mtPageTitle' tag outside of the context of a page; Perhaps you mistakenly placed it outside of a 'MTPages' container tag?
Any advice would be appreciated.