Elanat CMS 2.2 Gives New Meaning to Modularity.
Tags: dotnet, csharp, news, github
Published: 2024-04-09 21:38:11

[Elanat CMS](https://github.com/elanatframework/Elanat) is a large and powerful content management system based on ASP.NET Core. Elanat CMS is a CMS-Framework that does not use any of the default ASP.NET Core frameworks (Razor Pages, MVC, Blazor). Elanat CMS is built under [CodeBehind Framework](https://github.com/elanatframework/Code_behind). Elanat CMS and CodeBehind Framework both belong to [Elanat team](https://elanat.net).

Elanat CMS version 2.2 will be released soon. This version offers a new modular feature. In this version, you can create single page executable files with aspx extension and then add them in page component or plugin component.

The image below shows a screenshot of the Elanat content management system after installation.

![Elanat CMS - Add plugin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/opgy9xt28akwq1uo34ps.png)

In the Elanat content management system, we can use plugins anywhere on the page we like. According to the image above, we marked a section with a red line and we want to add a new plugin in this place.

For this, we must first add a new menu in the right menu section; Therefore, we enter the Elanat CMS admin panel and select the menu component in the content system and then add the new menu.

Now we want to add a new plugin in this menu. The work of creating a plugin is one of the most challenging in other CMS. We know that many people have mastered programming, but few of them have ever created a plugin for a content management system. The reason is that creating plugins in content management systems is a complex and time-consuming task and requires reading many documents. But in version 2.2 of the Elanat content management system, a plugin can be created in the simplest possible way.

This is a revolutionary new feature that will be provided by the [Elanat team](https://elanat.net).

**Example:**

**First**, you create a file with the extension aspx and save the desired programming codes in it.

aspx File
```html
@page
@{
    Random rand = new Random();
}

<div>
    <h1>Random value: @rand.Next(1000000)</h1>
</div>
```
**Second**, we enter the Elanat CMS admin panel and select the plugin component and then enter the aspx file in the input file.

Then we select the name of the menu we made earlier and then click on the add plugin button. Then we wait a little until the plugin is added.

![Elanat CMS plugin component](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ikw74qww9v3wzg3drilq.png)

The image above shows the steps to add a new plugin in the plugin component. Added black dashes to summarize the image and remove irrelevant items.

If you go back to the main page of Elanat CMS, you will be surprised to see that the plugin has been added.

![Elanat CMS - Add plugin - Aftr Add Plugin](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1z2ixqzwnhwie8ls8gg6.png)

As you can see in the image above, the plugin is working properly.

**Elanat is .NET Honor!**

There are eight types of add-ons in Elanat content management system. Some of these add-ons, such as page and plugin, support a single page structure. In the future, we will also try to add the structure of the possibility of adding single-page add-ons to some other types of add-ons. But some add-ons do not have this possibility due to their nature; for example, the module add-on requires an executable option file and you cannot add a single page structure to this add-on.

Please note that creating any type of add-on for Elanat content management system is simple. Elanat CMS add-ons are a zip file with a simple structure.

### Related links

Elanat CMS on GitHub:
https://github.com/elanatframework/Elanat

Elanat CMS website:
https://elanat.net

CodeBehind on GitHub:
https://github.com/elanatframework/Code_behind

CodeBehind in NuGet:
https://www.nuget.org/packages/CodeBehind/

CodeBehind page:
https://elanat.net/page_content/code_behind