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

Question : Show Menu of Anchors #13

Open
M4rtine opened this issue Nov 25, 2017 · 4 comments
Open

Question : Show Menu of Anchors #13

M4rtine opened this issue Nov 25, 2017 · 4 comments
Labels

Comments

@M4rtine
Copy link

M4rtine commented Nov 25, 2017

Hello, thanks for you job.
I'm really sorry but i'don't understand your demonstration.

just put the function below in the template file twig:
anchors(content, tag, terms)

Do you share example ? i'm not a good developper so i need more.

@rhukster
Copy link
Member

I've updated the readme to make it clearer.

Alternatively I created another 'similar' plugin that uses PHP rather than JS: https://github.com/trilbymedia/grav-plugin-page-toc

@M4rtine
Copy link
Author

M4rtine commented Nov 25, 2017

Thanks you very much, i will test it ;)

@M4rtine
Copy link
Author

M4rtine commented Nov 25, 2017

@rhukster What is your opinion about using PHP or JS ?

@rhukster
Copy link
Member

Depends on your needs, but generally i prefer server-side (PHP) so it can be cached.

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