You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to have an auto-generated menu like explained in the docs.
Problem:
Too few arguments to function Grav\Plugin\AnchorsTwigExtension::anchorsFunction(), 2 passed in XXX\user\plugins\anchors\twig\AnchorsTwigExtension.php on line 63 and exactly 3 expected
What I did:
I've added {{ anchors(page.content, 'li') }} in my .md file
I've added this in the frontmatter of the same .md file
process:
twig: true
It seems like I'm missing an argument, but even if I write {{ anchors(page.content, 'li', '') }} I have the same error.
Am I missing something ?
PS: Everything is up to date
The text was updated successfully, but these errors were encountered:
amaury-hanser
changed the title
Menu of Anchors : Error
Menu of Anchors : Error ArgumentCountError
Jun 11, 2018
Hello,
I'm trying to have an auto-generated menu like explained in the docs.
Problem:
What I did:
{{ anchors(page.content, 'li') }}
in my.md
file.md
fileIt seems like I'm missing an argument, but even if I write
{{ anchors(page.content, 'li', '') }}
I have the same error.Am I missing something ?
PS: Everything is up to date
The text was updated successfully, but these errors were encountered: