We have now opened a commercial services section here on the forum for registered users. If you have a Fabrik project that you wish to have someone work on for you, post it under Help Wanted. If you are an application developer and wish to earn some money helping others, post your details under Fabrik Application Developers.
Both of these are unmoderated. It will be up to both parties to work out the details and come to an agreement.
For running J!5.1 you must https://fabrikar.com/forums/index.php?wiki/update-from-github/ or include the new file manually https://fabrikar.com/forums/index.php?threads/joomla-5-1-and-fabrik-cannot-find-files-error.54473/post-285151 See also Announcements
// The number of columns to split the list rows into
$columns = 1;
// Show the labels next to the data:
$this->showLabels = true;
// Show empty data
$this->showEmpty = false;
$elementLabel = $this->Groups->tablename___elementname; //replace 'tablename___elementname' with your element's full name
$elementData = $this->_row->data->tablename___elementname;
<?php if ($this->tablePicker != [I]) { ?>[/I]
<div style="text-align:right">
<?php echo JText::_('COM_FABRIK_LIST') ?>: <?php echo $this->tablePicker; ?>
</div>
<?php } ?>
<?php if ($this->params->get('show-title', 1)) {?>
<h1>
<?php echo $this->table->label;?>
</h1>
<?php }?>
<?php echo $this->table->intro;?>
<form class="fabrikForm" action="<?php echo $this->table->action;?>" method="post" id="<?php echo $this->formid;?>" name="fabrikList">
<?php echo $this->loadTemplate('filter'); }?>
<div class="fabrikDataContainer">
<?php foreach ($this->pluginBeforeList as $c) {
echo $c;
}?>
<div class="boxflex">
<div class="fabrikList" id="list_<?php echo $this->table->renderid;?>" >
<?php
$gCounter = 0;
foreach ($this->rows as $groupedby => $group) {
if ($this->isGrouped) {
?>
<div class="fabrik_groupheading">
<a href="#" class="toggle">
<?php echo FabrikHelperHTML::image('orderasc.png', 'list', $this->tmpl, JText::_('COM_FABRIK_TOGGLE'));?>
<?php echo $this->grouptemplates[$groupedby]; ?> ( <?php echo count($group)?> )
</a>
</div>
<?php }?>
<div class="fabrik_groupdata">
<div class="groupdataMsg">
<div class="emptyDataMessage" style="<?php echo $this->emptyStyle?>">
<?php echo $this->emptyDataMessage; ?>
</div>
</div>
</div>
<?php
foreach ($group as $this->_row) {
echo $this->loadTemplate('row');
}
?>
<?php if ($this->hasCalculations) { ?>
<ul class="fabrik_calculations">
<?php
foreach ($this->calculations as $cal) {
echo "<li class=\"fabrik_row___".$el."\">";
echo array_key_exists($groupedby, $cal->grouped ) ? $cal->grouped[$groupedby] : $cal->calc;
echo "</li>";
}
?>
</ul>
<?php }
$gCounter++;
}?>
</div>
<?php
echo $this->nav;
print_r($this->hiddenFields);
?>
</div>
</div>
</form>
$this->_row->data->tablename___elementname //replace 'tablename___elementname' with your element's full name
<?php echo $this->_row->data->table-name___element_name;?>
stdClass Object (
[data] => stdClass Object (
[slug] => 64
[__pk_val] => 64
[fabrik_select] =>
[fabrik_view_url] => /fabrik30x/index.php?option=com_fabrik&view=details&formid=40&rowid=64&Itemid=142
[fabrik_edit_url] => /fabrik30x/index.php?option=com_fabrik&view=form&Itemid=142&formid=40&rowid=64&listid=37
[fabrik_view] => [View link and icon]
[fabrik_edit] => [Edit link and icon]
[fabrik_actions] => <ul> of the application row buttons edit/view/delete/+ any plugin buttons
)
[cursor] => 1
[total] => 16
[id] => list_37_com_fabrik_37_row_64
[class] => fabrik_row oddRow0
)
<?php echo $this->_row->data->{'##1___##2-##3-##4_list_heading'};?>
var_dump($this->_row);
<?php
/**
* Layout: list row buttons - rendered as a Bootstrap dropdown
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2013 fabrikar.com - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.0
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
$class = 'btn-group fabrik_action';
if ($displayData['align'] == 'right')
{
$class .= ' pull-right';
}
?>
<div class="<?php echo $class?>">
<a class="dropdown-toggle btn btn-mini" data-toggle="dropdown" href="#">
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<?php foreach ($displayData['items'] as $key => $val)
{
if ($key !== 'fabrik_edit')
{
echo "<li>" . $val . '</li>';
}
}?>
</ul>
</div>
<?php
// No direct access
defined('_JEXEC') or die('Restricted access');
$rowClass = isset($this->_row->rowClass) ? $this->_row->rowClass : '';
$user = JFactory::getUser()->Groups;
$userKeys = array_keys($user);
// the first element of your array is:
$userGroup = $user[$userKeys[0]];
$list_data = array();
foreach ($this->headings as $heading => $label) :
$elem_data = new stdClass;
$h = $this->headingClass[$heading];
$c = $this->cellClass[$heading];
$hStyle = empty($h['style']) ? '' : 'style="' . $h['style'] . '"';
$cStyle = empty($c['style']) ? '' : 'style="'. $c['style'].'"';
$lbl = $label;
$lbl_class = $h['class'];
$el_class = $c['class'];
$el_data = @$this->_row->data->$heading;
if($heading !== 'fabrik_select' && $heading !== 'fabrik_actions'){
$el_name = explode ("___", $heading)[1];
$elem_data->el_name = $el_name;
$elem_data->el_lbl = $lbl;
$elem_data->lbl_class = $el_class;
$elem_data->el_class = $el_class;
$elem_data->el_data = $el_data;
$list_data[$el_name] = $elem_data;
}
if($heading == 'fabrik_actions'){
$actions_class = $el_class;
$actions = $el_data;
$elem_data->actions_class = $actions_class;
$elem_data->actions = $actions;
$list_data[$heading] = $elem_data;
}
if($heading == 'fabrik_select'){
$select_class = $el_class;
$select = $el_data;
$elem_data->select_class = $select_class;
$elem_data->select = $select;
$list_data[$heading] = $elem_data;
}
$d = @$this->_row->data->$heading;
if (isset($this->showEmpty) && $this->showEmpty === false && trim(strip_tags($d)) == '') :
continue;
endif;
endforeach;
//echo '<pre>list_data' . var_export($list_data, true) . '</pre>';
?>
<div class="<?php echo $rowClass; ?>">
<div class="row-fluid fabrikDivElement">
<div class="movie-container">
<div class="<?php echo $list_data['element_name1']->el_class ?>">
<?php echo $list_data['element_name1']->el_data ?>
</div>
<div class="<?php echo $list_data['element_name2']->el_class ?>">
<?php echo $list_data['element_name2']->el_data;?>
</div>
</div>
<?php if($userGroup == 6 || $userGroup == 8) : ?>
<!--
usergroup 6 -> Custom admin
usergroup 8 -> Super User
-->
<div class="<?php echo $list_data['fabrik_actions']->actions_class ?>">
<?php echo $list_data['fabrik_actions']->actions ?>
</div>
<div class="<?php echo $list_data['fabrik_select']->select_class ?>">
<?php echo $list_data['fabrik_select']->select ?>
</div>
<?php endif; ?>
</div>
</div>