This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<!-- Your forms declarations --> | |
<fieldset name="sigular.form"> | |
<field name="..."/> | |
<fieldset name="sigular.form2"> | |
<field name="..."/> | |
<!-- Write at the end of the file --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- JSON FIELDSET --> | |
<fieldset class="fieldsform form-horizontal"> | |
<legend><?php echo JText::_('My JSON fieldset');?></legend> | |
<?php echo $this->renderFieldset($this->form->getGroup('attribs', true)); ?> | |
</fieldset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// no direct access | |
defined('_JEXEC') or die('Restricted access'); | |
/** | |
* Demo120 View | |
* | |
* @package Demo120 | |
* @subpackage Classes | |
*/ | |
class Demo120ViewProduct extends Demo120CkViewProduct | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Demo120ViewProduct extends Demo120CkViewProduct | |
{ | |
protected function displayProduct($tpl = null) | |
{ | |
echo("Forked"); // Fork and replace the original function | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Demo120ViewProduct extends Demo120CkViewProduct | |
{ | |
protected function displayProduct($tpl = null) | |
{ | |
// Read the ACL of the current user | |
$acl = Demo120Helper::getActions(); | |
if ($acl->get('core.admin')) | |
{ | |
// Call another Layout | |
$this->displayAdminLayout(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Demo120ViewProduct extends Demo120CkViewProduct | |
{ | |
protected function displayProduct($tpl = null) | |
{ | |
$result = parent::displayProduct($tpl); | |
$document = JFactory::getDocument(); | |
$document->title = "Forked title - " . $document->title; | |
return $result; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo JDom::_('html.fly.file', array( | |
// Get the field value | |
'dataKey' => 'image', | |
'dataObject' => $row, | |
//Or | |
//'dataValue' => $row->image, | |
// Define as indirect, with the root folder alias |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MycomponentHelper::getFile($path, 'indirect', array( | |
'width' => 100, | |
'height' => 100, | |
'attrs' => array('crop', 'center') | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MycomponentHelper::getFile($path); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MycomponentHelper::getFile($path, 'direct'); |
OlderNewer