What do I need to change to get all table groups expanded at startup?
I would like to keep empty table groups hidden.
I guess the answer might be in home.php, but I am not expert enough to get it.
Keep table groups expanded
Re: Keep table groups expanded
Hi,
you can try adding to the hooks/header-extras.php:
you can try adding to the hooks/header-extras.php:
Code: Select all
<?php $is_homepage = (basename($_SERVER['PHP_SELF']) === 'index.php' && !isset($_REQUEST['signIn'])); if ($is_homepage) { ?>
<script>
$j(function() {
$j('.collapse').addClass('in');$j('.collapser').children('.glyphicon').toggleClass('glyphicon-chevron-right glyphicon-chevron-down');
})
</script>
<?php } ?>
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: Keep table groups expanded
Hi pböttcher
Thx a lot for your reply.
It kinda works, but inverts the scene.
So the main table group is now colappsed, while the other ones are expanded.
Do you have a final hint how to expand all, but the empty ones?
Thx a lot for your reply.
It kinda works, but inverts the scene.
So the main table group is now colappsed, while the other ones are expanded.
Do you have a final hint how to expand all, but the empty ones?
Re: Keep table groups expanded
Hi,
true, sorry, overlooked that.
Try not adding to the header, but the footer-extras.php the corrected version:
true, sorry, overlooked that.
Try not adding to the header, but the footer-extras.php the corrected version:
Code: Select all
<?php $is_homepage = (basename($_SERVER['PHP_SELF']) === 'index.php' && !isset($_REQUEST['signIn'])); if ($is_homepage) { ?>
<script>
$j(function() {
$j('.collapse').not('.in,.navbar-collapse').addClass('in');$j('.collapser').not(':first').children('.glyphicon').toggleClass('glyphicon-chevron-right glyphicon-chevron-down');
})
</script>
<?php } ?>
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: Keep table groups expanded
Awsome.
Works like a charme.
Thank you so much.
Works like a charme.
Thank you so much.