Skip to content

Commit

Permalink
Fixing custom extension tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitrySikorsky committed Feb 24, 2023
1 parent bcad30e commit 3a6da03
Show file tree
Hide file tree
Showing 4 changed files with 21 additions and 4 deletions.
3 changes: 2 additions & 1 deletion custom_extensions/index.rst
Expand Up @@ -24,4 +24,5 @@ as NuGet packages, source code, or even DLL-files.
backend_menu
backend_styles_scripts
embedded_resources
styles_and_scripts_minification
styles_and_scripts_minification
tutorial_creating_custom_extension
4 changes: 2 additions & 2 deletions custom_extensions/styles_and_scripts_minification.rst
Expand Up @@ -20,7 +20,7 @@ To start using it add the corresponding reference to your *.csproj file:
Now, add the following lines to the same project file to run the bundling and minification process automatically on build:

.. code-block:: xml
:emphasize-lines: 2
:emphasize-lines: 1-3
<Target Name="PrecompileScript" BeforeTargets="BeforeBuild">
<Exec Command="dotnet bundle" />
Expand All @@ -29,7 +29,7 @@ Now, add the following lines to the same project file to run the bundling and mi
Finally, the BundlerMinifier.Core package needs the bundleconfig.json file to be present in the project’s root folder:

.. code-block:: js
:emphasize-lines: 3-22
:emphasize-lines: 2-22
[
{
Expand Down
14 changes: 14 additions & 0 deletions custom_extensions/tutorial_creating_custom_extension.rst
@@ -0,0 +1,14 @@
Tutorial: Creating Custom Extension
===================================

When you create a Platformus-based application, unless it's something quite simple, you’ll probably need to create your own Platformus extension.
It will contain everything that is related to your app (entities, models, DTOs, services, APIs, UI etc.) to keep it separated and independent from the basic CMS.

Creating an extension is simple. We will go through all the aspects and create a sample mobile app backend with authentication
(phone number validation using a fake code from SMS), categories and products API, and corresponding admin panel sections to manage categories and products etc.

Preparing the Solution
----------------------

Let’s start from the beginning. First, please follow the :ref:`Using as the NuGet Packages <tutorial-basic-content-management>` tutorial
to create an empty ASP.NET Core Platformus-based web application but keep only the Platformus.WebApplication package dependency as we do not need the others.
4 changes: 3 additions & 1 deletion getting_started/tutorial_basic_content_management.rst
@@ -1,4 +1,6 @@
Tutorial: Basic Content Management
.. _tutorial-basic-content-management:

Tutorial: Basic Content Management
==================================

To understand better how the Platformus content management works, let’s use the
Expand Down

0 comments on commit 3a6da03

Please sign in to comment.