fix issue #150
This commit is contained in:
parent
92ec012472
commit
a9b6c234e7
@ -14,4 +14,8 @@
|
||||
%li
|
||||
%strong= field.label
|
||||
-
|
||||
%i= @content.send(field._name)
|
||||
%i
|
||||
- if field.file?
|
||||
= link_to File.basename(@content.send(field._name).url), @content.send(field._name).url
|
||||
- else
|
||||
= @content.send(field._alias)
|
||||
|
@ -19,6 +19,16 @@ module CustomFields
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
module Category
|
||||
class Item
|
||||
|
||||
def to_liquid
|
||||
{ 'id' => self._id, 'name' => self.name }
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -47,6 +47,7 @@ module Locomotive
|
||||
|
||||
def before_method(meth)
|
||||
klass = @content_type.contents.klass # delegate to the proxy class
|
||||
|
||||
if (meth.to_s =~ /^group_by_.+$/) == 0
|
||||
klass.send(meth, :ordered_contents)
|
||||
else
|
||||
@ -73,6 +74,7 @@ module Locomotive
|
||||
@collection ||= @content_type.ordered_contents(@context['with_scope'])
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user