Post
by ronwill » 2019-11-26 00:03
Hi Olaf,
Agree, comma was not needed, I tried your code (changed to point to a file/icon existing in my project and as it worked fine for me (I'm using latest version) I can't re-create the issue.
As a workaround that I've used in the past (for a different reason: To have my added hooks/php file show in main menu area in a position I want, not added to bottom of a menu under a break line as happens when using links-navmenu.php).
I simply create a new table in AppGini with just an id + text field, name this table similar to my created hooks.php file, then select the table group I want it to belong to. I then go to the created hooks file for this dummy table.php file and under the header function I point it to the hooks file i want i.e, for your case:
case 'tableview':
header('Location: hooks/setup_googleauth.php');
This works fine for me and does not get overwritten as a bonus lol. I think it will give you the result you need. I don't know coding so I always look for alternative solutions!
Cheers, Ron
Ron - Gloucestershire, UK: AppGini Pro V 23.15 Rev 1484 - LOVING IT!
Plugins: Mass Update + Search Page Maker + Summary Reports + Calendar + Messages
Bizzworxx: AppGiniHelper + Inline Detail View
Alejandro Landini: To-Do List + MPI + TV Field Editor
Other: Udemy Course