fixed to sub menu level only
This commit is contained in:
parent
64c6a43f12
commit
230ac4cd3f
|
@ -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|
|
||||||
|
|
Loading…
Reference in New Issue