diff --git a/app/controllers/default_widget_controller.rb b/app/controllers/default_widget_controller.rb index 60a252e..1f9e1d9 100644 --- a/app/controllers/default_widget_controller.rb +++ b/app/controllers/default_widget_controller.rb @@ -52,6 +52,7 @@ class DefaultWidgetController< OrbitWidgetController @tag_class = nil @default_widget = @page_part.module_app.get_default_widget @widget_image_field = @default_widget["image"] || @default_widget[:image] + case @page_part when Page @frontend_field_names = @page_part.frontend_field_name @@ -65,7 +66,7 @@ class DefaultWidgetController< OrbitWidgetController @frontend_field_names = @page_part.widget_field_name @frontend_classes = @page_part.widget_class @frontend_sat_to_links = @page_part.widget_sat_to_link - + @widget_title = @page_part.title_translations[I18n.locale.to_s] @fields = @page_part.widget_field @data_limit = @page_part.widget_data_count.is_a?(Fixnum) ? @page_part.widget_data_count : (@page_part.widget_data_count.to_i rescue 3) end diff --git a/app/views/default_widget/_typeA.html.erb b/app/views/default_widget/_typeA.html.erb index d419554..ea07601 100644 --- a/app/views/default_widget/_typeA.html.erb +++ b/app/views/default_widget/_typeA.html.erb @@ -2,11 +2,18 @@