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

r:page:template:name has incorrect output inside of a loop #100

Open
adamjohnson opened this issue Aug 26, 2021 · 0 comments
Open

r:page:template:name has incorrect output inside of a loop #100

adamjohnson opened this issue Aug 26, 2021 · 0 comments
Assignees
Labels

Comments

@adamjohnson
Copy link
Contributor

Steps to reproduce the issue

  1. Start Hammer-VM
  2. Navigate to a template in any theme with content in the pages: key in mock_data.yml (eg Brand Patterns)
  3. Paste the following code into your template:
<r:children:each>
  <h1><r:page:template:name /></h1>
</r:children:each>

This also happens with siblings, ancestors, and descendants tags.

Results

It will output the results of the template for the current page. For example, if you are on frontpage.html, it will output frontpage.

Expected results

r:page:template:name is supposed to output the name of the template in use for each child/sibling/ancestor/descendant—NOT the current template name.

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

No branches or pull requests

2 participants