fixed to sub menu level only

This commit is contained in:
Harry Bomrah 2014-06-30 15:08:29 +08:00
parent 64c6a43f12
commit 230ac4cd3f
1 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,9 @@
class SiteMenuWidgetsController < ApplicationController class SiteMenuWidgetsController < ApplicationController
def widget def widget
pages = Page.root.child_pages_enabled_for_sitemap params = OrbitHelper.params
page = Page.where(:page_id => params[:page_id]).first
pages = page.sorted_published_child_pages
def create_json(pages) def create_json(pages)
items = [] items = []
pages.each do |page| pages.each do |page|