Is there a way to rearrange home links so that custom links appear in the same row on the home page as table links?? If you look at the image you see the large blank space created in the link section. I want to eliminate this. The "Open Audits" link is to a PHP page, not an AppGini table. It would be nice to see it on the same row as the link above it.
Thanks, Ray
Arranging custom links to save space on home page
Re: Arranging custom links to save space on home page
Hi,
you can try this in your hooks/footer-extras.php
you can try this in your hooks/footer-extras.php
Code: Select all
<script>
$j(function() {
$j('.custom_links').prev().last().append($j('.custom_links div:first'));
$j('.panel-body-description').css('height','auto')
})
</script>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Arranging custom links to save space on home page
That didn't do it Pascal.
Re: Arranging custom links to save space on home page
try this instead (a small variation), by the way thanks to pböttcher
Take a look at this link, might help:
viewtopic.php?f=4&t=4837
Code: Select all
<script>
$j(function() {
$j('.custom_links').prev().first().append($j('.custom_links div:first'));
})
</script>
viewtopic.php?f=4&t=4837
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper
Re: Arranging custom links to save space on home page
Well, when I use that variation the link in question goes into the first Table Group, ignoring the setting in the links-home.php file. Do I need to create the fake table as you talk about in the link you provided also?
Re: Arranging custom links to save space on home page
The easiest way to get full control is creating fake table that act as redirection, since it is automated via Appgini, no coding is required.
This is what I personally use.
This is what I personally use.
AppGini 22.14 - xampp 3.3.0 - PHP 7.4.30 - Summary reports - Calendar - Mass update - Messages - AppGiniHelper
Re: Arranging custom links to save space on home page
Hi,
thanks for testing. As you may have multiple table-groups you can try
This shall append your custom entry to the end of existing tablelist within your table-group.
If you want to add your custom entry to the beginning try
thanks for testing. As you may have multiple table-groups you can try
Code: Select all
<script>
$j(function() {
$j('.custom_links').prev().each(function() {
$j(this).append($j(this).next().find('div:first'))
})
$j('.panel-body-description').css('height','auto')
})
</script>
If you want to add your custom entry to the beginning try
Code: Select all
<script>
$j(function() {
$j('.custom_links').prev().each(function() {
$j(this).prepend($j(this).next().find('div:first'))
})
$j('.panel-body-description').css('height','auto')
})
</script>
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.
Re: Arranging custom links to save space on home page
Hi, script is working just everything (custom-links) disappears in mobilemenu (vertical)
Re: Arranging custom links to save space on home page
Yes, it works, but only once, if you have two custom links, one is on the first row (that of table f.i.), but the second is on the second row, even is the is place on the first row ....