KnpLabs / KnpLabs/KnpMenuBundle
Add Documentation about default twig renderer options
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 1.4k
- Forks
- 202
- Avg merge
- 3d 2h
- Merged PRs (30d)
- 2
Description
I am using Twitter Bootstrap and needed to change the "currentClass" to "active" for my whole site and found this quite easy way to do so:
# config.yml
parameters:
knp_menu.renderer.twig.options:
currentClass: 'active'
I think it would be cool to have such a info present in the documentation.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Use the configuration example in the issue as the starting point and find the documentation section covering Twig renderer options. Add the default option override example and explanation; the documentation should clearly show how to change currentClass to active for the site.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, symfony
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100