Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
refinerycms-page-menus
Advanced tools
If you are willing to contribute please send me a mail (johan@pylonweb.dk), and follow the contribution guidelines below. Especially test would be appriciated!
Page menus allows you to create and edit several custom menus for your Refinery CMS app.
(have not been tested on lower versions but does most likely work on all versions after 2.0.0)
Add this line to your applications Gemfile
gem 'refinerycms-page-menus', '~> 2.0.6'
or for edge version
gem 'refinerycms-page-menus', git: 'git://github.com/pylonweb/refinerycms-page-menus.git'
Next run
bundle install
rails generate refinery:page_menus
rake db:migrate
Now when you start up your Refinery application, go to the pages in your admin interface, and you should see a roll-down menu called "Menus".
Go to app/views/refinery/pages/_header.html.erb
in your application.
If you don't have this file then Refinery will be using its default. You can override this with
rake refinery:override view=refinery/_header
Then add this code to the header, to generate the custom menu:
<%= render :partial => "/refinery/menu", :locals => {
:roots => refinery_page_menu("custom_menu")
} %>
"custom_menu" must be replaced by the permatitle of your menu.
To show list all your menus and their permatitles run this rake task:
rake refinery:page_menus:menus
You can create a new menu in the rails console, or you can use the following command:
rake refinery:page_menus:create_menu title=some_title
git checkout -b my-new-feature
)git commit -am 'Added some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that refinerycms-page-menus demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.