Elxis CMS Forum

Support => Elxis 4.x/5.x DEV => Topic started by: datahell on April 29, 2012, 11:26:20

Title: Elxis content plugins
Post by: datahell on April 29, 2012, 11:26:20
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.

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: [Select]
$link = eFactory::getElxis()->makeURL('sports/');The generated link will be:
Code: [Select]
$link = 'http://www.example.com/sports/';
If we want to create a link to a sub-category of sports:
Code: [Select]
$link = eFactory::getElxis()->makeURL('sports/football/');The result will be:
Code: [Select]
$link = 'http://www.example.com/sports/footbal/';
If, we want to create a link pointing to search engine images:
Code: [Select]
$link = eFactory::getElxis()->makeURL('search:images.html');The result will be:
Code: [Select]
$link = 'http://www.example.com/search/images.html';
This is a more advanced link:
Code: [Select]
$link = eFactory::getElxis()->makeURL('fr:search:images.html', 'inner.php', true);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: [Select]
$link = 'https://www.example.com/inner.php/fr/search/images.html';
Title: Contact form and Automatic links
Post by: datahell on May 01, 2012, 21:49:29
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.