lib/locomotive/liquid/drops/page.rb in locomotive_cms-2.0.0.rc12 vs lib/locomotive/liquid/drops/page.rb in locomotive_cms-2.0.0
- old
+ new
@@ -1,11 +1,11 @@
module Locomotive
module Liquid
module Drops
class Page < Base
- delegate :seo_title, :meta_keywords, :meta_description, :to => '_source'
+ delegate :seo_title, :meta_keywords, :meta_description, :redirect_url, :to => '_source'
def title
self._source.templatized? ? @context['entry']._label : self._source.title
end
@@ -37,9 +37,13 @@
self._source.listed?
end
def published?
self._source.published?
+ end
+
+ def redirect?
+ self._source.redirect?
end
def before_method(meth)
self._source.editable_elements.where(:slug => meth).try(:first).try(:content)
end