Display a count with a homelink

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
jeannov
Posts: 11
Joined: 2015-04-01 17:14
Location: Trois-Rivieres,QC Canada

Display a count with a homelink

Post by jeannov » 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

jeannov
Posts: 11
Joined: 2015-04-01 17:14
Location: Trois-Rivieres,QC Canada

Re: Display a count with a homelink

Post by jeannov » 2015-05-09 20:38

here comes the screenshot:
2015-05-07_160325.jpg
2015-05-07_160325.jpg (27.32 KiB) Viewed 3476 times
Jean

User avatar
a.gneady
Site Admin
Posts: 1281
Joined: 2012-09-27 14:46
Contact:

Re: Display a count with a homelink

Post by a.gneady » 2015-05-11 12:45

Thanks Jean :)
:idea: AppGini plugins to add more power to your apps:
  • DataTalk is an innovative AppGini plugin based on ChatGPT that allows you to interact with your AppGini database using natural language questions, without writing any SQL. Check the demo video
  • Mass Update plugin: Update multiple records at once and improve your workflow efficiency.
  • Check our other plugins and get a generous discount of up to 30% when buying 2 or more plugins.

Post Reply