Add attributes to blocks
Permalink
I am working on a site where we would like to be able to add searchable metadata to blocks, has anyone looked into how to accomplish this or know how to do it?
The use case is: We have parts for vintage motorcycles and the parts often fit more than one specific manufacture, model &/or year so I would like to be able to add/edit metadata with the relevant info about what motorcycles the parts work with as add each block.
I am thinking it is analogous to page attributes but on a block by block level. So I was wondering about extending the default blocks to metadata (attributes) like pages do.
Thank you for any suggestions you have.
The use case is: We have parts for vintage motorcycles and the parts often fit more than one specific manufacture, model &/or year so I would like to be able to add/edit metadata with the relevant info about what motorcycles the parts work with as add each block.
I am thinking it is analogous to page attributes but on a block by block level. So I was wondering about extending the default blocks to metadata (attributes) like pages do.
Thank you for any suggestions you have.
I Would like to be able to attach this to a block itself. The only thought I had was to change the /elements/custom_style.php to replace the 'additional css' field with a choice dropdown, which works, but it isnt oo elegant...
with