Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

refinerycms-page-menus

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

refinerycms-page-menus

  • 2.0.5
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Page Menus Extension for Refinery CMS

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!

About

Page menus allows you to create and edit several custom menus for your Refinery CMS app.

image

Requirements

  • refinerycms >= 2.0.6

(have not been tested on lower versions but does most likely work on all versions after 2.0.0)

Install

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".

Usage

Add to your view

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.

Rake commands

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

FAQs

Package last updated on 06 Jan 2013

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc