def fetch_templatable_page!
      parent_page_path = File.dirname(@path)
      parent_page_path = Kms::Page::INDEX_FULLPATH if parent_page_path == "."
      parent_page = Kms::Page.published.find_by_fullpath!(parent_page_path)
      templatable_pages = parent_page.children.where(templatable: true)
      templatable_pages.detect do |templatable_page|
        templatable_page.fetch_item(File.basename(@path))
      end
    end
def fetch_templatable_page!
      parent_page_path = File.dirname(@path)
      parent_page_path = Kms::Page::INDEX_FULLPATH if parent_page_path == "."
      parent_page = Kms::Page.published.find_by_fullpath!(parent_page_path)
      templatable_pages = parent_page.children.where(templatable: true)
      templatable_pages.detect do |templatable_page|
        templatable_page.fetch_item(File.basename(@path))
      end
    end
finds templatable page that works for path