alchemy_cms
https://github.com/magiclabs/alchemy_cms
Ruby
AlchemyCMS is a powerful, flexible and user centric Rails 5 CMS. 🧙🏻♂️
Alchemy::PagesHelper#render_subnavigation
Renders navigation the children and all siblings of the given page (standard is the current page). Use this helper if you want to render the subnavigation independent from the mainnavigation. I.E. to place it in a different area on your website. This helper passes all its options to the the render_navigation helper. === Options: from_page: @page # The page to render the navigation from submenu: true # Shows the nested children level: 2 # Normally there is no need to change the level parameter, just in a few special cases
Edit
git clone [email protected]:magiclabs/alchemy_cms.git
cd alchemy_cms
open app/helpers/alchemy/pages_helper.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Alchemy--PagesHelper-render_subnavigation-for-pr
# Commit to gitgit add app/helpers/alchemy/pages_helper.rbgit commit -m "better docs for Alchemy::PagesHelper#render_subnavigation"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Alchemy--PagesHelper-render_subnavigation-for-pr
hub pull-request
# Celebrate!