Skip to content

Commit 0aa92c8

Browse files
committed
Update docs
1 parent 1898969 commit 0aa92c8

17 files changed

+238
-90
lines changed

docs/source/how-to/add-tab-style.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
How to add the tab editing style to your custom plugins
22
=======================================================
33

4-
If you prefer the tabbed frontend editing style of **djangocms-frontend** you can easily
4+
If you prefer the tabbed frontend editing style of ``djangocms-frontend`` you can easily
55
add it to your own plugins.
66

77
If you use the standard editing form, just add a line specifying the

docs/source/how-to/extend-frontend-plugins.rst

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
1-
********************************
2-
How to extend existing plugins
3-
********************************
1+
.. _how-to-extend-frontend-plugins:
42

5-
Existing plugins can be extended through two type of class mixins.
3+
**********************************
4+
How to extend built-in components
5+
**********************************
6+
7+
Existing components can be extended through two type of class mixins.
68
``djangocms-frontend`` looks for these mixins in two places:
79

810
#. In the theme module. Its name is specified by the setting
@@ -158,7 +160,7 @@ Next, you add some fields to the ``GridContainerForm`` (in
158160
If you need to add many form mixins, consider turning ``forms.py`` into a
159161
package, i.e. create a directory ``forms`` and distribute the mixins over
160162
several files, e.g., ``forms/marketing_forms.py`` etc., and importing the
161-
all mixins relevant to **djangocms-frontend** into the directory's
163+
all mixins relevant to ``djangocms-frontend`` into the directory's
162164
``__init__.py``.
163165

164166
Rendering should be done with the Bootstrap 5 framework. Hence all rendering
@@ -294,14 +296,14 @@ With these three additions, all grid container plugins will now have
294296
additional fields to define background images to cover the container
295297
area.
296298

297-
If the theme is taken out of the path djangocms-frontend will fall back
299+
If the theme is taken out of the path ``djangocms-frontend`` will fall back
298300
to its basic functionality, i.e. the background images will not be
299301
shown. As long as plugins are not edited the background image
300302
information will be preserved.
301303

302304
.. note::
303305

304-
A few suggestions on extending **djangocms-frontend**:
306+
A few suggestions on extending ``djangocms-frontend``:
305307

306308
* You may think of customizing bootstrap by including a folder ``sass`` in
307309
your theme app. For more see `Bootstrap 5 documentation on customizing

docs/source/how-to/inline-editing.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
.. _inline_editing_custom_components:
22

3-
################################################
4-
How to Use Inline Editing with Custom Components
5-
################################################
3+
#########################################################
4+
How to Use Inline Editing with Custom Frontend Components
5+
#########################################################
66

77
.. versionadded:: 2.0
88

@@ -17,7 +17,7 @@ template tag to enable inline editing for your custom frontend components.
1717

1818

1919
Understanding the ``inline_field`` Template Tag
20-
=============================================
20+
===============================================
2121

2222
The ``inline_field`` template tag allows you to make specific fields editable directly from
2323
the page. It works by wrapping a field in an inline editing context, which is recognized by
@@ -41,15 +41,15 @@ If not in edit mode the template tag will render the field as plain text.
4141
the ``frontend_editable_fields`` property of the plugin. The tag itself is a shortcut
4242
for django CMS's ``render_model`` tag. Since django CMS 5, this tags works for all
4343
CMS plugins (and not only for third-party models). For earlier versions of django CMS
44-
djangocms-frontend includes a custom extension for frontend plugins to support inline editing.
44+
``djangocms-frontend`` includes a custom extension for frontend plugins to support inline editing.
4545

4646

47-
Step-by-Step: Adding Inline Editing to a Custom Component
47+
Step-by-Step: Adding Inline Editing to a custom frontend component
4848
=========================================================
4949

5050
1. **Define Your Custom Component Plugin**
5151

52-
First, create a djangoCMS plugin for your custom component. Example:
52+
First, create a djangoCMS plugin for your custom frontend component. Example:
5353

5454
.. code-block:: python
5555
@@ -102,7 +102,7 @@ Step-by-Step: Adding Inline Editing to a Custom Component
102102
python manage.py runserver
103103
104104
- Log in as an admin user and enter **Edit Mode**.
105-
- Add your custom component to a page.
105+
- Add your custom frontend component to a page.
106106
- Click on the text fields to edit them inline.
107107
- Leave the field, and changes will be stored automatically in the database.
108108

@@ -112,5 +112,5 @@ Additional Considerations
112112

113113
- **Rich Text Editing:** If the field is a ``HTMLField``, django CMS text will automatically use
114114
a rich text editor for inline editing.
115-
- **CSS & JavaScript Adjustments:** In rare cases custom component's styles can interfere
115+
- **CSS & JavaScript Adjustments:** In rare cases custom frontend component's styles can interfere
116116
with django CMS text's inline editing interface. More specific rules typically solve the issue.

docs/source/how-to/internal-link-targets.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
How to add internal link targets outside the CMS
55
**************************************************
66

7-
As of version 2 of **djangocms-frontend**, the link/button plugin builds upon
7+
As of version 2 of ``djangocms-frontend``, the link/button plugin builds upon
88
the ``LinkFormField`` of djangocms-link. djangocms-link uses Django admin to
99
autodetect linkable models. This means that any model that has a
1010
``get_absolute_url()`` method and a ``search_fields`` attribute in its
1111
``ModelAdmin`` will be available as an internal link target.
1212

13-
The ``DJANGOCMS_FRONTEND_LINK_MODELS`` setting in djangocms-frontend before
13+
The ``DJANGOCMS_FRONTEND_LINK_MODELS`` setting in ``djangocms-frontend`` before
1414
version 2 does not have any effect anymore.
1515

1616
See the README file of `djangocms-link <https://github.com/django-cms/djangocms-link/blob/master/README.rst>`_

docs/source/how-to/migrate-3rd-party-plugins.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ How to migrate other plugin packages
22
====================================
33

44
The management command ``migrate`` converts any plugin from **djangocms_bootstrap4** and
5-
**djangocms_styled_link** to **djangocms-frontend**. This behaviour can be extended
5+
**djangocms_styled_link** to ``djangocms-frontend``. This behaviour can be extended
66
adding custom migratation modules to the ``DJANGOCMS_FRONTEND_ADDITIONAL_MIGRATIONS``
77
setting.
88

docs/source/how-to/migrate-bootstrap4.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ plugins.
3535
Please do **back up** your database before you do run the management
3636
command!
3737

38-
For this to work, the both the djangocms-frontend **and** the
38+
For this to work, the both the ``djangocms-frontend`` **and** the
3939
djangocms-bootstrap4 apps need to be included in ``INSTALLED_APPS``.
4040

4141
.. warning::

docs/source/how-to/use-frontend-as-component.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ How to use frontend plugins as components in templates
66

77
.. versionadded:: 2.0
88

9-
The plugins of **djangocms-frontend** can be used as components in your
9+
The plugins of ``djangocms-frontend`` can be used as components in your
1010
templates - even in apps that do not use or integrate with django CMS
1111
otherwise. This is useful if you want use exactly the same markup for, say,
1212
buttons, links, the grid both in pages managed with django CMS and in
@@ -26,7 +26,7 @@ repetition.
2626
allows you to specify which plugins can be used directly in templates
2727
without creating database entries.
2828

29-
* To include all djangocms-frontend plugins, use
29+
* To include all ``djangocms-frontend`` plugins, use
3030
``djangocms_frontend.cms_plugins.CMSUIPlugin`` in the setting.
3131

3232
* To include all :ref:`custom_components`, use
@@ -86,7 +86,7 @@ use the ``{% plugin %}`` template tag with each plugin.
8686

8787
.. note::
8888

89-
While this is designed for **djangocms-frontend** plugins primarily, it
89+
While this is designed for ``djangocms-frontend`` plugins primarily, it
9090
will work with many other django CMS plugins.
9191

9292
Since no plugins are created in the database, plugins relying on their

docs/source/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ and templates.
2020
Key features
2121
**************
2222

23-
* **Effortless Development of Custom Components**: Create reusable frontend
23+
* **Effortless Development of Custom Frontend Components**: Create reusable frontend
2424
components with ease, utilizing simple templates and declarative form
2525
classes. These components can function both as CMS plugins and within
2626
standard Django templates. ​
@@ -34,7 +34,7 @@ and templates.
3434
of Bootstrap 5 components, streamlining the process of building responsive
3535
and modern interfaces. ​
3636

37-
* **Extensibility**: Enhance your project by creating custom components with
37+
* **Extensibility**: Enhance your project by creating custom frontend components with
3838
minimal code. The system is designed to be extended both within individual
3939
projects and through separate theme applications. ​
4040

@@ -56,7 +56,7 @@ updates to frontend features.
5656
By providing a suite of Bootstrap 5-based components for layout structuring,
5757
including grids, components, and forms, django CMS Frontend simplifies the
5858
process of building responsive and structured page designs. Developers can
59-
also create custom components with minimal code, ensuring a consistent and
59+
also create custom frontend components with minimal code, ensuring a consistent and
6060
efficient development experience.
6161

6262
It is up to you which (if any at all) pre-built components you want to include

docs/source/plugins/common.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Common plugin settings
66
########################
77

8-
**djangocms-frontend** offers a set of plugins to allow for an easy and clean
8+
``djangocms-frontend`` offers a set of plugins to allow for an easy and clean
99
structure of your CMS contents.
1010

1111
All plugins are listed in the section "Frontend" when adding a plugin to
@@ -75,7 +75,7 @@ to render the element. You may also add attributes like additional classes as a
7575
Using the advanced tab requires some technical knowledge on the sites
7676
installation, e.g., what css classes are available. This is why the advanced
7777
settings tab should only be used rarely. If you find yourself using it
78-
regularly, extending **djangocms-frontend** using a theme might be the more
78+
regularly, extending ``djangocms-frontend`` using a theme might be the more
7979
editor-friendly and more maintainable solution.
8080

8181
The advanced tab label carries a blue-ish dot to indicate that attributes are

docs/source/plugins/components.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ documentation.
8888
Re-usable component example
8989
===========================
9090

91-
**djangocms-frontend** plugins can be used as components. They can be
91+
``djangocms-frontend`` plugins can be used as components. They can be
9292
used in all your project's templates. Example (if key word arguments are
9393
skipped they fall back to their defaults):
9494

@@ -121,7 +121,7 @@ documentation.
121121
Re-usable component example
122122
===========================
123123

124-
**djangocms-frontend** plugins can be used as components. They can be
124+
``djangocms-frontend`` plugins can be used as components. They can be
125125
used in all your project's templates. Example (if key word arguments are
126126
skipped they fall back to their defaults):
127127

@@ -207,7 +207,7 @@ documentation.
207207
Re-usable component example
208208
===========================
209209

210-
**djangocms-frontend** plugins can be used as components. They can be
210+
``djangocms-frontend`` plugins can be used as components. They can be
211211
used in all your project's templates. Example (if key word arguments are
212212
skipped they fall back to their defaults):
213213

@@ -256,7 +256,7 @@ specified using the ``DJANGOCMS_FRONTEND_CAROUSEL_TEMPLATES`` setting.
256256
Re-usable component example
257257
===========================
258258

259-
**djangocms-frontend** plugins can be used as components. They can be
259+
``djangocms-frontend`` plugins can be used as components. They can be
260260
used in all your project's templates. Example (if key word arguments are
261261
skipped they fall back to their defaults):
262262

@@ -347,7 +347,7 @@ If targets are deleted the link will fallback to regular text.
347347
Re-usable component example
348348
===========================
349349

350-
**djangocms-frontend** plugins can be used as components. They can be
350+
``djangocms-frontend`` plugins can be used as components. They can be
351351
used in all your project's templates. Example (if key word arguments are
352352
skipped they fall back to their defaults):
353353

@@ -400,7 +400,7 @@ Media component
400400
***************
401401

402402
The media component is another legacy component from djangocms-bootstrap4.
403-
**djangocms-frontend** recreates it using responsive utilities.
403+
``djangocms-frontend`` recreates it using responsive utilities.
404404

405405

406406
.. index::
@@ -421,7 +421,7 @@ well as responsive embedding of external pictures.
421421
djangocms-text-ckeditor supports dragging and dropping images into a rich
422422
text field. If you add the following line to your `settings.py` file,
423423
djangocms-text-ckeditor will automatically convert an image dropped into it
424-
to a djangocms-frontend image component.
424+
to a ``djangocms-frontend`` image component.
425425

426426
.. code-block::
427427
@@ -475,7 +475,7 @@ Code component
475475
**************
476476

477477
Have code snippets on your site using this plugin, either inline or as a code block.
478-
djangocms-frontend offers the `ace code editor <https://ace.c9.io>`_
478+
``djangocms-frontend`` offers the `ace code editor <https://ace.c9.io>`_
479479
to enter code bits.
480480

481481
.. warning::
@@ -516,7 +516,7 @@ Tabs component
516516
Re-usable component example
517517
===========================
518518

519-
**djangocms-frontend** plugins can be used as components. They can be
519+
``djangocms-frontend`` plugins can be used as components. They can be
520520
used in all your project's templates. Example (if key word arguments are
521521
skipped they fall back to their defaults):
522522

0 commit comments

Comments
 (0)