Page 1 of 1

different favicon on each page AppGini 5.41

Posted: 2015-07-02 18:42
by _bruno_
Hi Guys,
I'm using Appgini since one year and I found it amazingly simple and effective to use even if I'm not a programmer.
For my application I wold like to have a different favicon on each detail view page of my tables.
I was thinking to use the default icons contained into resources/table_icons/ for consistency with the icons used on my homepage...
I guess I should place something like echo "<link rel='shortcut icon' href='resources/table_icons/backpack.png' type='image/png'/>"; in the corresponding hook tablename_dv....

I tried this:

function tablename_dv($selectedID, $memberInfo, &$html, &$args){
echo "<link rel='shortcut icon' href='resources/table_icons/backpack.png' type='image/png'/>";
}

but no results...
someone may help me?
thanks a lot!
Bruno

Re: different favicon on each page AppGini 5.41

Posted: 2015-07-10 21:34
by a.gneady
Try this (I didn't test it but I guess it would probably work):

Code: Select all

function tablename_dv($selectedID, $memberInfo, &$html, &$args){
     $html .= "<link rel='shortcut icon' href='resources/table_icons/backpack.png' type='image/png'/>";
}