Sha256: d5dcb22778cbda476e985a50da4202923575906c74fc4f582614feb01334facf

Contents?: true

Size: 513 Bytes

Versions: 10

Compression:

Stored size: 513 Bytes

Contents

module Locomotive
  module Liquid
    module Drops
      class Page < Base

        def title
          @source.templatized? ? @context['content_instance'].highlighted_field_value : @source.title
        end

        def slug
          @source.templatized? ? @source.content_type.slug.singularize : @source.slug
        end

        def children
          @children ||= liquify(*@source.children)
        end

        def fullpath
          @fullpath ||= @source.fullpath
        end

      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
locomotive_cms-0.0.4.beta10 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta9 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta8 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta7 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta5 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta4 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta3 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta2 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4.beta1 lib/locomotive/liquid/drops/page.rb
locomotive_cms-0.0.4 lib/locomotive/liquid/drops/page.rb