first version of multi categories and tags

This commit is contained in:
Fu Matthew authored and chris committed 2013-02-27 10:49:48 +08:00
1 parent 4bc3a57862
commit 99e67c8719
12 files changed
+110 -11

No files matched your search

+2 -2
View File
@@ -8,8 +8,8 @@ class Page < Item
field :content, localize: true
field :app_frontend_url
field :theme_id, :type => BSON::ObjectId, :default => nil
field :category, :default => ''
field :tag, :default => ''
field :category,type: Array, :default => []
field :tag, type: Array,:default => []
field :view_count, :type => Integer, :default => 0
field :page_title, localize: true
+2
View File
@@ -11,6 +11,8 @@ class PagePart
field :public_r_tag_option, :default => nil
field :page_title, localize: true
field :widget_path
field :category,type: Array, :default => []
field :tag, type: Array,:default => []
field :widget_style
field :widget_field , :type => Array