Ok, Summary Reports has bad path for header-extra.
If I add background image to header-extra with an image path," hooks/images/image.png"
Summary Reports throws an error bad path body background image shows path as "hooks/hooks/images/image.png"
and therefor no background image.
If I change path in header-extra path to, "images/image.png" it displays correctly in Summary Reports, but all other pages have no background image
and error, bad path.
I've tried to find a way to correct but no luck. Hope there's a fix.
Summary Reports bug
Summary Reports bug
What we envision, we make happen.
Re: Summary Reports bug
Hi,
Not really a fix, a work around. I inspected the broken image link in the console and found that the browser is looking for images in the hooks folder. I added an images folder with the appropriate image header and all works. I don't even have to add an image url to the report when I am creating it.
Cheers,
Not really a fix, a work around. I inspected the broken image link in the console and found that the browser is looking for images in the hooks folder. I added an images folder with the appropriate image header and all works. I don't even have to add an image url to the report when I am creating it.
Cheers,
Re: Summary Reports bug
Sorry for the late reply as I just saw this thread now. Generally, if you're pointing to resources in footer-extras.php or header-extras.php, you should use the predefined constant PREPEND_PATH before the resource path, and then list the path relative to the app path ... So, if the resource is an image stored as hooks/images/image.png (as per your example), you should point to it in header-extras.php like so:
That way, pages stored anywhere on the app would correctly point to it.
Code: Select all
<img src="<?php echo PREPEND_PATH; ?>hooks/images/image.png">
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.
Re: Summary Reports bug
Hi Ahmed,
this is a good tip (tips & tricks?) but unfortunately it is not mentioned in the documentation yet
Olaf
this is a good tip (tips & tricks?) but unfortunately it is not mentioned in the documentation yet
Olaf
Some postings I was involved, you might find useful:
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view
SingleEdit - Prevent concurrent edits on records; Field Permissions; Column-Value-Based-Permissions; Custom (error) message; Audit Log; Backup your database; Two Factor Authentication; Block brute force (failed) logins; Add 2nd SAVE CHANGES button; Place a search on details view