Display a count with a homelink
Posted: 2015-05-07 21:18
http://forums.appgini.com/phpbb/downloa ... iew&id=166
Using 5.31.
Display a count on a homelink before to see a filtered table view:
hook\home-links.php
$homeLinks[] = array(
'url' => 'jeantable_view.php?FilterAnd[1]=&FilterField[1]=4&FilterOperator[1]=<=>&FilterValue[1]=products',
'icon' => 'images/p_logo.png',
'title' => 'Products',
'description' => '('.sqlValue("select count(*) from `jeantable` where `category` = 'products'").')',
'groups' => array('*'), // groups allowed to see this link
'grid_column_classes' => 'col-sm-6 col-md-4 col-lg-3',
'panel_classes' => 'panel-success',
'link_classes' => 'btn-success'
);
Attract your users!
Have fun with AppGini.
Jean
Using 5.31.
Display a count on a homelink before to see a filtered table view:
hook\home-links.php
$homeLinks[] = array(
'url' => 'jeantable_view.php?FilterAnd[1]=&FilterField[1]=4&FilterOperator[1]=<=>&FilterValue[1]=products',
'icon' => 'images/p_logo.png',
'title' => 'Products',
'description' => '('.sqlValue("select count(*) from `jeantable` where `category` = 'products'").')',
'groups' => array('*'), // groups allowed to see this link
'grid_column_classes' => 'col-sm-6 col-md-4 col-lg-3',
'panel_classes' => 'panel-success',
'link_classes' => 'btn-success'
);
Attract your users!
Have fun with AppGini.
Jean