different favicon on each page AppGini 5.41

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
_bruno_
Posts: 1
Joined: 2015-07-02 18:27

different favicon on each page AppGini 5.41

Post by _bruno_ » 2015-07-02 18:42

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

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

Re: different favicon on each page AppGini 5.41

Post by a.gneady » 2015-07-10 21:34

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'/>";
}
:idea: AppGini plugins to add more power to your apps:

Post Reply