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
<?php
/**
* Bootstrap Details Template
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.1
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
$form = $this->form;
$model = $this->getModel();
if ($this->params->get('show_page_heading', 1)) : ?>
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</div>
<?php
endif;
if ($this->params->get('show-title', 1)) :?>
<div class="page-header">
<h1><?php echo $form->label;?></h1>
</div>
<?php
endif;
echo $form->intro;
if ($this->isMambot) :
echo '<div class="fabrikForm fabrikDetails fabrikIsMambot" id="' . $form->formid . '">';
else :
echo '<div class="fabrikForm fabrikDetails" id="' . $form->formid . '">';
endif;
echo $this->plugintop;
echo $this->loadTemplate('buttons');
echo $this->loadTemplate('relateddata');
foreach ($this->groups as $group) :
$this->group = $group;
?>
<div class="<?php echo $group->class; ?>" id="group<?php echo $group->id;?>" style="<?php echo $group->css;?>">
<?php
if ($group->showLegend) :?>
<h3 class="legend">
<span><?php echo $group->title;?></span>
</h3>
<?php endif;
if (!empty($group->intro)) : ?>
<div class="groupintro"><?php echo $group->intro ?></div>
<?php
endif;
// Load the group template - this can be :
// * default_group.php - standard group non-repeating rendered as an unordered list
// * default_repeatgroup.php - repeat group rendered as an unordered list
// * default_repeatgroup_table.php - repeat group rendered in a table.
$this->elements = $group->elements;
echo $this->loadTemplate($group->tmpl);
if (!empty($group->outro)) : ?>
<div class="groupoutro"><?php echo $group->outro ?></div>
<?php
endif;
?>
</div>
<?php
endforeach;
echo $this->pluginbottom;
echo $this->loadTemplate('actions');
echo '</div>';
echo $form->outro;
echo $this->pluginend;
<?php
/**
* Bootstrap Details Template
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.1
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
?>
<div id="footdompdf">
<span class="footleft"><?php echo $this->table->label;?></span>
/* MPDF CODES LINES */
<span class="pagenum">Page <php echo $pageno ;?></span>
/* MPDF CODES LINES */
</div>
<?php
$form = $this->form;
$model = $this->getModel();
/* MPDF CODES LINES */
$mpdf = new \Mpdf\Mpdf();
// Set a simple Footer including the page number
$pageno = $mpdf->setFooter('{PAGENO}');
/* MPDF CODES LINES */
if ($this->params->get('show_page_heading', 1)) : ?>
<div class="componentheading<?php echo $this->params->get('pageclass_sfx')?>">
<?php echo $this->escape($this->params->get('page_heading')); ?>
</div>
<?php
endif;
if ($this->params->get('show-title', 1)) :?>
<div class="page-header">
<h1><?php echo $form->label;?></h1>
</div>
<?php
endif;
echo $form->intro;
if ($this->isMambot) :
echo '<div class="fabrikForm fabrikDetails fabrikIsMambot" id="' . $form->formid . '">';
else :
echo '<div class="fabrikForm fabrikDetails" id="' . $form->formid . '">';
endif;
echo $this->plugintop;
echo $this->loadTemplate('buttons');
echo $this->loadTemplate('relateddata');
foreach ($this->groups as $group) :
$this->group = $group;
?>
<div class="<?php echo $group->class; ?>" id="group<?php echo $group->id;?>" style="<?php echo $group->css;?>">
<?php
if ($group->showLegend) :?>
<h3 class="legend">
<span><?php echo $group->title;?></span>
</h3>
<?php endif;
if (!empty($group->intro)) : ?>
<div class="groupintro"><?php echo $group->intro ?></div>
<?php
endif;
// Load the group template - this can be :
// * default_group.php - standard group non-repeating rendered as an unordered list
// * default_repeatgroup.php - repeat group rendered as an unordered list
// * default_repeatgroup_table.php - repeat group rendered in a table.
$this->elements = $group->elements;
echo $this->loadTemplate($group->tmpl);
if (!empty($group->outro)) : ?>
<div class="groupoutro"><?php echo $group->outro ?></div>
<?php
endif;
?>
</div>
<?php
endforeach;
echo $this->pluginbottom;
echo $this->loadTemplate('actions');
echo '</div>';
echo $form->outro;
echo $this->pluginend;
<php echo $pageno ;?>
<?php
/**
* Bootstrap Details Template
*
* @package Joomla
* @subpackage Fabrik
* @copyright Copyright (C) 2005-2016 Media A-Team, Inc. - All rights reserved.
* @license GNU/GPL http://www.gnu.org/copyleft/gpl.html
* @since 3.1
*/
// No direct access
defined('_JEXEC') or die('Restricted access');
?>
<?php
$mpdf = new \Mpdf\Mpdf();
$mpdf->WriteHTML('<h1>Hello world!</h1>');
$mpdf->Output();
?>
<?php
echo $this->pluginbottom;
echo '</div>';
echo $form->outro;
echo $this->pluginend;
What was "intended" and what did you get?I have searched Wiki, the PDF template available is for DomPDF which is not rendering output as intended.
Just for the record, I have responded the way I did because I understood (assumed?) that you want PDF output by default, meaning no HTML page with a PDF button or so. Maybe you could confirm if I understood right, or if you want only "optional" PDF output.I'm confused whether I need to add extra codes to the custom template...
I'd say you do need mPDF code in your template files... though Troester may well prove me wrong on this, and then I shall stand corrected!