Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

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

Closed
robinboening opened this Issue May 1, 2012 · 4 comments

Comments

Projects
None yet
3 participants
Owner

robinboening commented May 1, 2012

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.

Owner

tvdeyen commented May 1, 2012

What Alchemy version are you using?

And could you please post your elements.yml and cells.yml?

Thanks

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.


Reply to this email directly or view it on GitHub:
magiclabs#232

Owner

robinboening commented May 2, 2012

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]
Owner

moritzps commented Aug 6, 2012

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.

Owner

tvdeyen commented Aug 7, 2012

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.

@ghost ghost assigned tvdeyen Aug 7, 2012

@tvdeyen tvdeyen closed this in 9f6bddd Aug 14, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment