Log in Register

Login to your account

Username *
Password *
Remember Me

Create an account

Fields marked with an asterisk (*) are required.
Name *
Username *
Password *
Verify password *
Email *
Verify email *

Plugins

plugins

By creating FLEXIcontent, one of my aim was to make it the more extensible as I could trough the Joomla! plugin system (which is according to my opinion one of the most powerful system in Joomla 1.5). Thus, each field type is a standard Joomla plugin, allowing third party developers to easily create their own according to their needs. If professional Joomla developers rely on this system, we should see very soon a series of plugins that will significantly increase the scope of the software.

There are four types of plugins within FLEXIcontent:

1.- The system plugin:

It has mainly two functions: it prevents backend users using the standard sections/categories/articles (except for Super administrators). Thus, the links to the standard article manager are automatically redirected to their counterparts in FLEXIcontent. This avoids loosing fields or extended data when modifying content outside FLEXIcontent.

The second function is roughly the same, but this time for the frontend. All link com_content links are automatically redirected to their counterparts in FLEXIcontent

index.php?option=com_content&view=article&id=12

would become

index.php?option=com_flexicontent&view=items&id=12

This allows, for example, to use the modules designed for com_content without having to change them.

Since the beta4 release you can configure backend redirections in the plugin configuration.

system-plugin-1

2.- The search plugin:


It works like traditional search plugins, except it’s able performs full text searches with Boolean operators - AND: + sign, OR: nothing, NOT: - sign and WILCARD: * sign (see also contents chapter). To avoid duplicate content in the search results, it is strongly recommended to unpublish the Joomla! search plugin (search.content).

3.- Field plugins:

These are the famous plugins that allow third party developers to design their own field types. In the example of the existing plugins, the logic is fairly simple to understand. The observed events are:

onDisplayField: It renders the field form element to be displayed in the item form

onDisplayFieldValue: It renders the field to be displayed in the website

onDisplayFilter: It renders the filter dropdowns in category views. I’ve arbitrarily chosen dropdowns, but after all, everyone is free to design them otherwise ;-)

onBeforeSaveField: It processes data before saving the field values. This allows for example to handle uploaded files or to reformat the $_POST data.

onAfterSaveField: It processes data after the storage of the field values. This event is not used in the standard fields but it will be soon. Its aim is to allow the connection or integration with third party components. We could imagine the automatic creation of a product in Virtuemart, or a Joomla! user, a.s.o. …

4.- Content plugins:

FLEXIcontent can trigger standard content plugins on any type of field. This means that you can use audio players, video players, Google maps a.s.o. ... with a simple text field. Read more about the universal plugin support in this article. The only event currently triggered is "onPrepareContent”. Beware, however: all plugins are not necessarily designed to run outside com_content! They may need small modifications.
×** [Flexisystem PLG: Auto Checkin/Auto state(e.g. archive): 0.01 s]
0.000 seconds (+0.000); 11.36 MB (+11.356) - START: FLEXIcontent component
0.310 seconds (+0.310); 20.54 MB (+9.189) - END: FLEXIcontent component: (VIEW: item)

-- [Initialize component: 0.03 s]
-- [FC Templates XML Parsing (cacheable): 0.01 s]
-- [Joomla Content Plugins: 0.02 s]
-- [Get/Calculate Item Properties: 0.03 s]
-- [FC fields values retrieval + field params creation: 0.01 s]
-- [FC "item" view Template Rendering: 0.00 s]

-- [FC Fields Rendering: 0.12 s]
0.004 scheckboximage
0.002 sselect
0.002 sradio
0.009 scheckbox
0.035 simage
0.010 sdate
0.009 sweblink
0.007 stext
0.009 sfile
0.003 sselectmultiple
0.003 sradioimage
0.003 stextselect
0.009 sfcpagenav
0.003 scoreprops
0.004 stitle
0.000 smaintext
0.000 screated
0.000 screatedby
0.000 smodified
0.000 smodifiedby
0.000 shits
0.000 stype
0.000 sversion
0.000 sstate
0.001 svoting
0.000 sfavourites
0.001 scategories
0.001 stags
0.005 stoolbar




0.000 seconds (+0.000); 26.01 MB (+26.013) - START: FLEXIcontent Adv Search Module
0.015 seconds (+0.015); 26.04 MB (+0.024) - END: FLEXIcontent Adv Search Module