If we make the architecture the basis of comparison, Elanat is currently the most powerful CMS compared to all open-source or paid CMS. The unique add-on-oriented architecture in Elanat allows you to create add-ons for Elanat with all programming languages.
Elanat is built under ASP.NET Core and uses the powerful CodeBehind framework; programming in this framework is very simple; the structure of the CodeBehind framework is very close to the frameworks of common scripting languages, and scripting language programmers can write code under ASP.NET Core by using this framework; also, it is very easy to create an ASP.NET Core add-on for Elanat, and scripting language programmers will soon be able to use Elanat and create their own add-ons under ASP.NET Core or other scripting languages.
By default, Elanat uses the py, php, pl, and rb extensions to support Python, PHP, Perl, and Ruby, and the njs extension is used to support NodeJS.
Scripting languages in Elanat are only supported on Windows operating system. Linux support may be added in the future.
In this article, we will explain to you how to create an add-on for Python and PHP programming languages (of course, explaining one of these things was enough). Other programming languages such as NodeJS, Perl and Ruby are also the same and only the coding will be different!
How to Create Python add-on in Elanat?
Step 1:
Add Python package from below link in Elanat patch component.
https://elanat.net/content/29/Python Package Windows.html
Note : Elanat also supports file path and just copy the download link and no need to download.
Step 2: Write your programming code in Python programming language in a file and save it with py extension.
a = "Hello world!";
b = "Elanat created by ASP.NET";
c = "Create Python add-ons in Elanat!";
print(a + "<br>");
print(b + "<br>");
print(c);
Step 3: Add the Python file in the page component.
Note: There are eight types of add-ons in Elanat, excluding templates, styles, language packs and other items. Page in Elanat is a type of add-on. You can add a file with a non-zip extension only in the page add-on and the plugin add-on. If your add-on needs more files, you should download the raw zip file of the same plugin model and replace the values.
You can refer to the following article:
https://elanat.net/content/2/How create plugin add-on in Elanat framework.html
Add-on raw file in Elanat download center page:
https://elanat.net/page_content/download_center
Step 4: View it!
How to Create PHP add-on in Elanat?
Step 1:
Add PHP package from below link in Elanat patch component.
https://elanat.net/content/25/PHP Package Windows.html
Note : Elanat also supports file path and just copy the download link and no need to download.
Step 2: Write your programming code in PHP programming language in a file and save it with php extension.
<?php
$a = "Hello world!";
$b = "Elanat created by ASP.NET";
$c = "Create PHP add-ons in Elanat!";
echo $a . "<br>";
echo $b . "<br>";
echo $c;
?>
Step 3: Add the PHP file in the page component.
Step 4: View it!
Access to query string and form data will be as follows:
python
import sys
print(sys.argv[1]) # QueryString
print(sys.argv[2]) # FormData
https://elanat.net/content/29/Python Package Windows.html
PHP
<?php
echo $argv[1]; // QueryString
echo $argv[2]; // FormData
?>
PHP Package download link:
https://elanat.net/content/25/PHP Package Windows.html
NodeJS
console.log(process.argv[2]); // QueryString
console.log(process.argv[3]); // FormData
NodeJS Package download link:
https://elanat.net/content/26/Node.js Package Windows.html
Perl
print @ARGV[0]; # QueryString
print @ARGV[1]; # FormData
Perl Package download link:
https://elanat.net/content/27/Perl Package Windows.html
Ruby
puts (ARGV[0]) # QueryString
puts (ARGV[1]) # FormData
Ruby Package download link:
https://elanat.net/content/28/Ruby Package Windows.html
The query string and form data are added as the following strings:
name1=value1,name2=value2,name3=value3...nameN=valueN
In the next versions of Elanat, this system will support session and cookie in addition to query string and form data.
Add-on raw file in GitHub:
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/component/component_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/module/module_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/plugin/plugin_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/page/page_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/patch/patch_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/extra_helper/extra_helper_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/editor_template/editor_template_raw
https://github.com/elanatframework/Elanat_add-ons/tree/elanat_framework/fetch/fetch_raw
Top comments (2)
That Perl example should probably be:
With the
@
signs will still work, but will generate warnings.Thanks for the information about the Perl programming language.