New widget for tag cloud
This commit is contained in:
1 parent
30824d1620
commit
253cca06cc
16 files changed
+122
-27
No files matched your search
@@ -22,6 +22,11 @@ class Admin::PagePartsController < OrbitBackendController
|
||||
@part = PagePart.find(params[:id])
|
||||
@r_tag = @part.public_r_tag.blank? ? LIST[:public_r_tags][0] : @part.public_r_tag
|
||||
@tag_objects = @r_tag.classify.constantize.all rescue nil
|
||||
if @r_tag.eql?('tag_cloud')
|
||||
@tag_objects = ModuleApp.where(has_tag: true)
|
||||
else
|
||||
@tag_objects = @r_tag.classify.constantize.all rescue nil
|
||||
end
|
||||
|
||||
@module_apps = ModuleApp.for_widget_select
|
||||
@categories = nil
|
||||
@@ -119,7 +124,11 @@ class Admin::PagePartsController < OrbitBackendController
|
||||
def reload_r_tag_options
|
||||
@part = PagePart.find params[:id]
|
||||
@r_tag = params[:type]
|
||||
@tag_objects = @r_tag.classify.constantize.all rescue nil
|
||||
if params[:type].eql?('tag_cloud')
|
||||
@tag_objects = ModuleApp.where(has_tag: true)
|
||||
else
|
||||
@tag_objects = @r_tag.classify.constantize.all rescue nil
|
||||
end
|
||||
respond_to do |format|
|
||||
format.js {}
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user