Skip to content

Commit 6cd17de

Browse files
committed
Add reference to examples to docs
1 parent 0f736a6 commit 6cd17de

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

djangocms_frontend/contrib/link/forms.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ class Meta:
7474

7575
link = LinkFormField(
7676
label=_("Link"),
77-
initial={},
7877
required=False,
7978
)
8079
target = forms.ChoiceField(

docs/source/tutorial/template_components.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -265,6 +265,16 @@ Template components are a powerful tool for developers, but they have some limit
265265
Classes are intantiated by default, for example. This is ok for ``widget=forms.Textarea``, but potentially not
266266
for more complex cases.
267267

268+
Examples
269+
========
270+
271+
The djangocms-frontend repository contains a small number of example components in the
272+
`examples directory <https://github.com/django-cms/djangocms-frontend/tree/master/examples>`_.
273+
They are taken from the `Bootstrap 5 examle page <https://getbootstrap.com/docs/5.3/examples/>`_
274+
and modified to include the template component tags.
275+
276+
Examples are not installed throug the package. You can copy them to your project and adapt them
277+
to your needs.
268278

269279
Trouble Shooting
270280
================

0 commit comments

Comments
 (0)