put module app json into init,making orbit app work with module app.
This commit is contained in:
1 parent
3d573680b2
commit
f9bcb27efc
15 files changed
+349
-66
No files matched your search
@@ -15,3 +15,6 @@ zh_tw:
|
||||
search: 搜尋公告
|
||||
update_bulletin_success: 公告已成功更新
|
||||
update_bulletin_category_success: 公告類別已成功更新
|
||||
widget:
|
||||
index: 目錄Widget
|
||||
bulletins_and_web_links: 公告與連結並排Widget
|
||||
+28
-1
@@ -1,9 +1,36 @@
|
||||
module Announcement
|
||||
OrbitApp.registration "Announcement",:type=> 'ModuleApp' do
|
||||
|
||||
module_label 'announcement.announcement'
|
||||
base_url File.expand_path File.dirname(__FILE__)
|
||||
personal_plugin :enable => true,:path=>"panel/announcement/plugin/profile",:i18n=>'admin.announcement'
|
||||
|
||||
version "0.1"
|
||||
organization "Rulingcom"
|
||||
author "RD dep"
|
||||
intro "I am intro"
|
||||
update_info 'some update_info'
|
||||
|
||||
front_end do
|
||||
app_page 'bulletins'
|
||||
end
|
||||
|
||||
category ["BulletinCategory"]
|
||||
|
||||
widgets do
|
||||
default_widget do
|
||||
query 'Bulletin.all'
|
||||
image :image
|
||||
end
|
||||
|
||||
categories_query 'BulletinCategory.all'
|
||||
tags_query 'AnnouncementTag.all'
|
||||
|
||||
customize_widget "index","announcement.widget.index",:fields=>["title","category","postdate"]
|
||||
customize_widget "bulletins_and_web_links","announcement.widget.bulletins_and_web_links"
|
||||
# item "index","announcement.widget.index",:default_template=>true,:fields=>["title","category","postdate"]
|
||||
# item "bulletins_and_web_links","announcement.widget.bulletins_and_web_links"
|
||||
end
|
||||
|
||||
side_bar do
|
||||
head_label_i18n 'admin.announcement',:icon_class=>"icons-announcement"
|
||||
available_for [:admin,:guest,:manager,:sub_manager]
|
||||
|
||||
Reference in new issue
Block a user