Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SelectedPages doesn't seem to switch context #8

Open
particleandparcel opened this issue Apr 14, 2015 · 0 comments
Open

SelectedPages doesn't seem to switch context #8

particleandparcel opened this issue Apr 14, 2015 · 0 comments

Comments

@particleandparcel
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant