def generate_elements
      elements_already_on_page = elements_including_fixed.pluck(:name)
      definition.fetch('autogenerate', []).each do |element_name|
        next if elements_already_on_page.include?(element_name)
        Element.create(page: self, name: element_name)
      end
    end
def generate_elements
      elements_already_on_page = elements_including_fixed.pluck(:name)
      definition.fetch('autogenerate', []).each do |element_name|
        next if elements_already_on_page.include?(element_name)
        Element.create(page: self, name: element_name)
      end
    end
Looks in the page_layout descripion, if there are elements to autogenerate.

 And if so, it generates them.