diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 1fe6661c..f50b52fb 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -2,6 +2,14 @@ Changelog ========= +2.1.1 (2025-03-29) +================== + +* feat: add `instance.get_classes` for template components by @fsbraun + in https://github.com/django-cms/djangocms-frontend/pull/268 +* docs: Reference example template components + + 2.1.0 (2025-03-26) ================== diff --git a/djangocms_frontend/__init__.py b/djangocms_frontend/__init__.py index 66b7399d..6330ead9 100644 --- a/djangocms_frontend/__init__.py +++ b/djangocms_frontend/__init__.py @@ -19,4 +19,4 @@ 13. Github actions will publish the new package to pypi """ -__version__ = "2.1.0" +__version__ = "2.1.1" diff --git a/djangocms_frontend/contrib/link/forms.py b/djangocms_frontend/contrib/link/forms.py index 7918a0c5..ac271d68 100644 --- a/djangocms_frontend/contrib/link/forms.py +++ b/djangocms_frontend/contrib/link/forms.py @@ -74,7 +74,6 @@ class Meta: link = LinkFormField( label=_("Link"), - initial={}, required=False, ) target = forms.ChoiceField( diff --git a/docs/source/tutorial/template_components.rst b/docs/source/tutorial/template_components.rst index d844fd2e..a4c67bcf 100644 --- a/docs/source/tutorial/template_components.rst +++ b/docs/source/tutorial/template_components.rst @@ -262,11 +262,21 @@ Template components are a powerful tool for developers, but they have some limit to configure the component. Advanced form configurations such as ``fieldsets`` are not available. If you need to create a custom form for a component, you should create a custom component instead. * **Limits of the template language**: The Django template language is powerful, but it has some limitations. - Classes are intantiated by default, for example. This is ok for ``widget=forms.Textarea``, but potentially not + Classes are instantiated by default, for example. This is ok for ``widget=forms.Textarea``, but potentially not for more complex cases. +Examples +======== -Trouble Shooting +The djangocms-frontend repository contains a small number of example components in the +`examples directory `_. +They are taken from the `Bootstrap 5 examle page `_ +and modified to include the template component tags. + +Examples are not installed through the package. You can copy them to your project and adapt them +to your needs. + +Troubleshooting ================ If the component does not appear in the plugin picker, check the following: