Skip to content

hanna code code doesn't appear to be re-entrant #8

@jeanrajotte

Description

@jeanrajotte

I have defined [[blog_list template=blog_stub]] and use it in the body of page X. It uses this PHP:

<?php
foreach(wire('pages')->find("template={$template}") as $p) {
  echo <<<END
<div class='entry'>
    <h3><a href='{$p->a_url}'>{$p->title}</a></h3>
    <div class='excerpt'>{$p->excerpt}</div>
</div>
END;
}

The excerpt field also uses the Hanna code textformatter. The only output is that of the last $p->excerpt, as opposed to the whole list with formatted parts.

IOW, it looks like the last output from $hanna->render() hijacks the one up the stack.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions