Welcome, Guest
Username: Password: Remember me

TOPIC: Adds support for printing or export to excel

Adds support for printing or export to excel 30 May 2012 10:40 #2444

Adds support for printing or export to excel according to predefined templates
The administrator has disabled public write access.

Re: Adds support for printing or export to excel 30 May 2012 18:50 #2450

  • VeCrea
  • VeCrea's Avatar
  • Offline
  • Platinum Member
  • Absolute JCook fan
  • Posts: 473
  • Thank you received: 100
  • Karma: 30
Or save as pdf maybe.
Just a hint here, to get another template to load when clicking on a link that's created in a grid

<td style="text-align:center">
<?php echo JDom::_('html.fly', array(
'dataKey' => 'certif_num',
'dataObject' => $row,
'route' => array('view' => 'vhu','layout' => 'd1certificat','cid[]' => $row->id, 'template' => 'beez_20')
));
?>
</td>

i added the template part here, because i added the call to template in the administrator/component_name/dom/html.php :

function createRoute()
{
if (!isset($this->route))
return;


$vars = array('option', 'view', 'layout', 'cid[]', 'template');
$followers = array('lang', 'Itemid', 'tmpl');

$queryVars = array();
Last Edit: 30 May 2012 18:52 by VeCrea.
The administrator has disabled public write access.
The following user(s) said Thank You: adti_mientay, edwardcox

Re: Adds support for printing or export to excel 30 May 2012 21:09 #2451

  • edwardcox
  • edwardcox's Avatar
  • Offline
  • Premium Member
  • Here to help.
  • Posts: 131
  • Thank you received: 26
  • Karma: 12
Nice!
Passionate Joomla! Developer and J-Cook pro evangelist.
www.jcombuilder.com - we build great Joomla!® Components so you don't have to.
The administrator has disabled public write access.
Time to create page: 0.102 seconds

Get Started