|
@@ -92,9 +92,15 @@ module Kanjai |
|
@@ -92,9 +92,15 @@ module Kanjai |
|
92
|
end
|
92
|
end
|
|
93
|
|
93
|
|
|
94
|
@type_contents = []
|
94
|
@type_contents = []
|
|
|
|
95
|
+ @main_field = []
|
|
95
|
|
96
|
|
|
96
|
if page_template = @page_data.page.page_template
|
97
|
if page_template = @page_data.page.page_template
|
|
97
|
@type_contents += page_template.template_parts.where("part_type in ('content')").collect{|p| [p.name, p.code] }
|
98
|
@type_contents += page_template.template_parts.where("part_type in ('content')").collect{|p| [p.name, p.code] }
|
|
|
|
99
|
+ page_template.template_parts.where("part_type in ('content')").each do |item|
|
|
|
|
100
|
+ item.field_options.each do |el|
|
|
|
|
101
|
+ @main_field << el[:name] if el[:mail].to_i == 1
|
|
|
|
102
|
+ end
|
|
|
|
103
|
+ end
|
|
98
|
end
|
104
|
end
|
|
99
|
|
105
|
|
|
100
|
@type_contents.sort!{|x,y| x[0] <=> y[0]}
|
106
|
@type_contents.sort!{|x,y| x[0] <=> y[0]}
|