Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Autogenerating elements when using cells will always create the elements in the main cell #232

Closed
robinboening opened this Issue · 4 comments

3 participants

@robinboening
Owner

It is not possible to autogenerate an element in another other cell, but not in the main cell, also if an element is only available for another cell.

I would say we could implement an autogenerate option to the cells.yml file too.
So if using this option, the automatically created element will be associated with this cell.

@tvdeyen
Owner
@robinboening
Owner

I am working on the master (edge).

page_layouts.yml

- name: home
  cells: [product_teaser]
  elements: [big_image, headline, welcome_text, text, product_teaser]
  autogenerate: [product_teaser]
  unique: true

cells.yml

- name: product_teaser
  elements: [product_teaser]
@moritzps
Owner

Wouldn't it be a better way if every cell is automatically added as an element in the specification of alchemy? So one does not need to add every cell-element to the elements.

@tvdeyen
Owner

We should refactor the cell feature. The "nil cell" approach is stupid. A page with cells should only have elements from its cells and also the autogenerate feature should then be implemented on the cells.

@tvdeyen tvdeyen was assigned
@tvdeyen tvdeyen closed this in 9f6bddd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.