Skip to content

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

@adamjohnson

Description

@adamjohnson

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions