Below you will find documentation on how to use our software. This contains easy-to-use steps by step guides with helpful screenshots on how to configure and get the best results.


Chapter 7: Adding Extra Fields [Modifying component layout or template layout override]

Okay, what we do in this section is similar to what we did in the Component Override and Template Override section, previous. If you require a detailed explanation of the parameters passed to the inline plugin event, please see those sections for a full breakdown.

Now, all you to have to do is fire off the inline event passing in the field value you want to make inline editable. That is it.

In our case, we did the following for our, simple, Content Construction Kit:

<?php foreach ($this->item->fields as $field) : ?>
<div class="mycck field-body field-margin">
		$dispatcher->trigger('editable',array(&$field->text, array('id'=>.$this->item->item_id.'_'.$field->field_id,'context'=>'mycck','itemtype'=>$field->type)));
		echo $field->text;
<?php endforeach;?>

Note: Since we only have one extra field, we did no checks to check the field type in the above example.

Okay, we are not finished yet; Now, we have to add the functions to allow the editor to update or save our data during inline editing in the following section.

WebxSolution Ltd is not affiliated with or endorsed by the Joomla! Project or Open Source Matters. The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.

Copyright © 2009 - 2016 WebxSolution Ltd
Powered by JoomlaWired


Cron Job Starts