diff --git a/custom_extensions/index.rst b/custom_extensions/index.rst index 6f07f91..8ab8d4d 100644 --- a/custom_extensions/index.rst +++ b/custom_extensions/index.rst @@ -24,4 +24,5 @@ as NuGet packages, source code, or even DLL-files. backend_menu backend_styles_scripts embedded_resources - styles_and_scripts_minification \ No newline at end of file + styles_and_scripts_minification + tutorial_creating_custom_extension \ No newline at end of file diff --git a/custom_extensions/styles_and_scripts_minification.rst b/custom_extensions/styles_and_scripts_minification.rst index 57beeec..e259083 100644 --- a/custom_extensions/styles_and_scripts_minification.rst +++ b/custom_extensions/styles_and_scripts_minification.rst @@ -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 @@ -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 [ { diff --git a/custom_extensions/tutorial_creating_custom_extension.rst b/custom_extensions/tutorial_creating_custom_extension.rst new file mode 100644 index 0000000..1d1be7f --- /dev/null +++ b/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 +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. diff --git a/getting_started/tutorial_basic_content_management.rst b/getting_started/tutorial_basic_content_management.rst index ee421e9..db818a0 100644 --- a/getting_started/tutorial_basic_content_management.rst +++ b/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