Module: BcmsKcfinder::FinderExtension

Defined in:
lib/bcms_kcfinder/engine.rb

Constant Summary collapse

LINKABLE_TYPES =
["Cms::Page", "Cms::Attachment"]

Instance Method Summary collapse

Instance Method Details

#linkable_childrenObject



67
68
69
70
71
72
# File 'lib/bcms_kcfinder/engine.rb', line 67

def linkable_children
  child_pages = self.node.children.collect do |section_node|
    section_node.node if LINKABLE_TYPES.include?(section_node.node_type)
  end
  child_pages.compact
end