jrief / djangocms-cascade

Build Single Page Applications using the Django-CMS plugin system
MIT License
166 stars 85 forks source link

extra_html_tag_attribute feature #318

Closed haricot closed 4 years ago

haricot commented 5 years ago

This is like extra_css_classes and extra_inline_style with a little difference in setting format. The Class HmltAttrsWidget has pre-set widget which can be entered in the settings file: widget_choices_cms_page_anchors, widget_choices_list, widget_choices_int, widget_choices_text, widget_choices_color, widget_attrs.

( NAME_SERIE_ATTRIBUTES, {
     ATTRIBUTE: {
        PRESET: [] ,
        'widget_attrs': { 'title': TEXT },
     },
 })

Look like: extra_html_tag_attribute

Todo: add the test if this feature is ok or need modifications.

haricot commented 4 years ago

closed in favor of #363