Closed neildaniels closed 5 years ago
I should have thought of this. We have a endless-loop protection setup for regular hooks because they could run recursively (something like page.update could trigger another page.update within etc.) But this also prevented those hooks from running more than once, which is of course not correct. I just fixed this and added tests for it.
Describe the bug In response to Issue #1337, this commit added
kirbytext:before
andkirbytext:after
.Unfortunately, neither of those hooks seems to work as I would expect.
Both of these fields only executes once ever on a page. Subsequent calls on a different field, or even the same field, completely skip the hook again.
This is easily reproduced on the StarterKit, by adding the following plugin:
and then modifying the
album.php
template by duplicating the description output:To Reproduce Steps to reproduce the behavior:
http://localhost/photography/animals
pageExpected behavior I would expect:
Instead, you see:
Kirby Version
3.0.0-RC-5.0