Skip to content

Commit

Permalink
Fixing Custom Extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySikorsky committed Dec 27, 2022
1 parent 0909818 commit 0f36609
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 3 deletions.
7 changes: 5 additions & 2 deletions custom_extensions/backend_menu.rst
@@ -1,7 +1,10 @@
Backend Menu
.. _backend-menu:

Backend Menu
============

All the backend (admin panel) menu groups and items come from the extensions. Each extension can provide one or more implementations of the
When you develop a custom Platformus CMS extension you might need to add items to the backend (admin panel) menu.
All the backend menu groups and items are defined in the extensions. Each extension can provide one or more implementations of the
`IMetadata <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Core.Backend/Metadata/IMetadata.cs#L9>`_ interface which allows to specify,
among other things, the menu items grouped by the menu groups. It is preferable to use the
`MetadataBase <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Core.Backend/Metadata/MetadataBase.cs#L9>`_ class
Expand Down
12 changes: 12 additions & 0 deletions custom_extensions/backend_styles_scripts.rst
@@ -0,0 +1,12 @@
Backend Styles and Scripts
==========================

When you develop a custom Platformus CMS extension you might need to add your own CSS styles and JavaScript scripts on the backend (admin panel) pages.
Same as for the :ref:`menu <backend-menu>`, it can be done by implementing the
`IMetadata <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Core.Backend/Metadata/IMetadata.cs#L9>`_ interface or inheriting the
`MetadataBase <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Core.Backend/Metadata/MetadataBase.cs#L9>`_ class.

Please, take a look at the `implementation <https://github.com/Platformus/Platformus/blob/master/src/Platformus.Core.Backend/Metadata.cs#L14>`_
from the :ref:`Platformus.Core <custom-extension>` extension for a sample.

It is preferable to use links to minified CSS and JavaScript files to save traffic and speed up page loading.
3 changes: 2 additions & 1 deletion custom_extensions/index.rst
Expand Up @@ -20,4 +20,5 @@ as NuGet packages, source code, or even DLL-files.
.. toctree::
:titlesonly:

backend_menu
backend_menu
backend_styles_scripts

0 comments on commit 0f36609

Please sign in to comment.