Support > Elxis 4.x/5.x DEV

Elxis content plugins

(1/1)

datahell:
Elxis Nautilus introduces content plugins. This new type of extension replaces the 2009.x bots. Note that the other types of bots were also removed (1).

A plug-in I just finished is the Elxis Link (elink). Elxis Link makes easy creating cross-site portable links. The links are entered in the editor text area as typical html anchors starting with #elink: prefix and following by the Elxis URI (2). Elxis Content Plugins have a helper window for easy generation of the plugin code. In the screenshot I attach you can see the helper window for the Elxis Link plug-in. You can create links to autonomous pages, content categories and articles by just clicking on the item you want to link to. You can also link to other, than content, components.


Notes
1. Search bots became search engines (component Search extensions). Content bots became content plugins  (component Content extensions). Editor bots were removed. Introduced Authentication methods (component User extensions).
2. Elxis URI: A special formatted string that after get parsed by the elxisURI class generates a standard HTTP link. Elxis URIs provides easy linking and portability.
The generic format is of an Elxis URI: {LANGUAGE_IDENTIFIER}:{COMPONENT}:{PAGE} where LANGUAGE_IDENTIFIER can be omitted for auto cross-language linking.
An example.
Let's say you want to create a link to category "Sports". The seolink of this category is: "sports/"
So, the Elxis URI will be: content:sports/
As "content" is the default site route, the component name can be omited. So the Elxis URI will become: sports/
To generate the full HTTP link we will use the makeURL method of the Elxis framework:

--- Code: ---$link = eFactory::getElxis()->makeURL('sports/');
--- End code ---
The generated link will be:

--- Code: ---$link = 'http://www.example.com/sports/';
--- End code ---

If we want to create a link to a sub-category of sports:

--- Code: ---$link = eFactory::getElxis()->makeURL('sports/football/');
--- End code ---
The result will be:

--- Code: ---$link = 'http://www.example.com/sports/footbal/';
--- End code ---

If, we want to create a link pointing to search engine images:

--- Code: ---$link = eFactory::getElxis()->makeURL('search:images.html');
--- End code ---
The result will be:

--- Code: ---$link = 'http://www.example.com/search/images.html';
--- End code ---

This is a more advanced link:

--- Code: ---$link = eFactory::getElxis()->makeURL('fr:search:images.html', 'inner.php', true);
--- End code ---
The above link will be against inner.php file (index2.php replaced by inner.php), instead of the default index.php, it will be forced to have a secure SSL/TLS scheme if SSL/TLS is enabled in Elxis config and it will force the change of the language to French.
The result will be:

--- Code: ---$link = 'https://www.example.com/inner.php/fr/search/images.html';
--- End code ---

datahell:
The following 2 plug-ins completed today:
Contact form: Displays a configurable contact form. With this plugin you can convert any Elxis article into a contact page. Note: Elxis 4.0 does not uses a contacts specific component.
Automatic links: Automatically converts given keywords or article's META keywords found inside article's text area into links pointing to tags search page. The plugin improves site's cross-linking and SEO.

Navigation

[0] Message Index

Go to full version