-
Notifications
You must be signed in to change notification settings - Fork 51
[RFC] New (or replacement / improved) general block type #159
Comments
sorry, i am -1 on this. |
But then the content editor doesn't control how to display the title of a block does it? Or what container class to use, or indeed what class to use for the container. I think what I am proposing is actually pretty uncontroversial on one level -- simply having the possiblity to configure the type of tags and classes to use for the block. A more advanced step would be to persist such enumerated options in the block document.
I am also coming from a CMS which has a dynamic theming system - in which case modifying a template for each theme is really a no-go. |
i think the theme system with configurable templates would be a general effort that should come orthogonal to blocks. you would need that for all of your cms, not only blocks. for such a thing, i would rather see a specific theming bundle that probably hooks into the template loading mechanic and provides very flexible templates. the issue with this is that this flexibility makes everything extremly complicated and harder to read, so i am against doing that in basic templates. as said, i would be strongly against storing what html tags to use in the database. i think the most thing we could expect the editor to have to actively select is a "type" or "role" of the block, which then can be used by the template to render differently. whether something is h1 or h3 is not a question of display, but a question of semantics. the question of display should be left to css. the "type" or "role" would very likely be represented by some css class on the container, to allow specific styling. |
Just an idea.
Provide a (HTML5?) block type which enables you to select which tags to use for
title
,body
and maybe other fields, e.g.Where the various tags are defined in the configuration:
So that the tag types and maybe other options are configurable from the block form in admin.
The text was updated successfully, but these errors were encountered: