changing column with recordcount
changing column with recordcount
Hi,
The need option "Show record count in Homepage" is very functional.
I'm looking for a way to adjust the column with.
Where to do so?
Ron
The need option "Show record count in Homepage" is very functional.
I'm looking for a way to adjust the column with.
Where to do so?
Ron
Re: changing column width recordcount
Hi,
Is a solution nearby
Ron
Is a solution nearby

Ron
Re: changing column with recordcount
Hi Ron,
what do you want to adjust?
You can select the number of entries shown in a row (between 1 - 4 ).
If you want to change the size of the size of the badge you can try to put something like
in the hooks/footer-extras.php
what do you want to adjust?
You can select the number of entries shown in a row (between 1 - 4 ).
If you want to change the size of the size of the badge you can try to put something like
Code: Select all
<style>
.table_links .badge {
scale: 1.4;
}
</style>
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: changing column with recordcount
Hi pbottcher,
Thanks for your reply.
I've used your suggestion however ... now expected result.
Maybe the screen dump clears things out.
As the count mostly is < 10 I like to adjust the width, in Tabel View, of the Record Count columns
Thanks for your reply.
I've used your suggestion however ... now expected result.
Maybe the screen dump clears things out.
As the count mostly is < 10 I like to adjust the width, in Tabel View, of the Record Count columns
Re: changing column with recordcount
Hi Ron,
thanks for clarifying, that helps
you may play with this css selector:
put it in the header-extras.php
or if you address only a specific table you may try
thanks for clarifying, that helps

you may play with this css selector:
Code: Select all
<style>
table [data-table] {
width:400px;
}
</style>
or if you address only a specific table you may try
Code: Select all
table[data-tablename="TABLENAME"] [data-table] {
width:200px;
}
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: changing column with recordcount
Hi pbottcher,
Thanks again, however
I tried both suggestion but I don't see any effect.
I've put the code the "Hooks directory" and later on in de "root directory"
Ron
Thanks again, however
I tried both suggestion but I don't see any effect.
I've put the code the "Hooks directory" and later on in de "root directory"
Ron
Re: changing column with recordcount
Hi Ron,
can you share where you put the code.
can you share where you put the code.
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: changing column with recordcount
Hi pbottcher
In de Hooks directory Header-extras.php
The width should be for table contacten
No changes seen
After that
In de Main directory Header-extras.php
No changes seen
In de Hooks directory Header-extras.php
The width should be for table contacten
Code: Select all
<style>
table[data-tablename="contacten"] [data-table] {
width:200px;
}
</style>
After that
In de Main directory Header-extras.php
Code: Select all
<style>
table [data-table] {
width:200px;
}
</style>
Re: changing column with recordcount
HI Ron,
can you chech in the developers tool the tablename you are using. In my example the tablen is calles contribution and the code in the hooks/header-extras is:
Just for testing, put the style code to the top of your header-extras.php file, before the <?php tag.
This expands the table column correctly to 500px on my system.
can you chech in the developers tool the tablename you are using. In my example the tablen is calles contribution and the code in the hooks/header-extras is:
Code: Select all
<style>
table[data-tablename="contribution"] [data-table] {
width:500px;
}
</style>
<?php
This expands the table column correctly to 500px on my system.
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: changing column with recordcount
Hi pbottcher,
The "overrule" is correct however I don't see any column width adjustments Ron
The "overrule" is correct however I don't see any column width adjustments Ron
Re: changing column with recordcount
Sorry, I think the CSS selector should be different.
Given table name =
You can play around with
---
If this is a default table view (as long as you don't have multipe tables in the same page), this can be even easier:
I hope this helps!
Given table name =
services
and column name = name
, the following code can be used to set the width of column services-name
to 600px
:Code: Select all
<!-- file: hooks/header-extras.php -->
<style>
table[data-tablename="services"]>tbody>tr>td.services-name {
min-width: 600px;
}
</style>
min-width
, max-width
, width
and, obviously, change 600px
to something different like 30%
or any valid CSS size value.---
If this is a default table view (as long as you don't have multipe tables in the same page), this can be even easier:
Code: Select all
<!-- file: hooks/header-extras.php -->
<style>
/* given: table name = "services" and column name = "name" */
table[data-tablename] .services-name {
min-width: 600px;
}
</style>
Kind regards,
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
AppGini 25.10 + all AppGini Helper tools
<js />
My AppGini Blog:
https://appgini.bizzworxx.de/blog
You can help us helping you:
Please always put code fragments inside
[code]...[/code]
blocks for better readabilityAppGini 25.10 + all AppGini Helper tools
Re: changing column with recordcount
Hi again,
not sure why it would not work. I think you are talking about the reference columns in the table.
You may check in your setting:
As example I use the basetable to be adressed with 2 reference columns ( reftable and reftable_1)
without styling:
and with applied styles in the hooks/header-extras.php file:
The first style would be applied to all columns, the second one only to the reftable_1 column.
not sure why it would not work. I think you are talking about the reference columns in the table.
You may check in your setting:
As example I use the basetable to be adressed with 2 reference columns ( reftable and reftable_1)
without styling:
and with applied styles in the hooks/header-extras.php file:
Code: Select all
<style>
table[data-tablename="basetable"] [data-table] {
width:20px;
background: lightgray;
}
table[data-tablename="basetable"] [data-table="reftable_1"] {
width:200px;
background: lightblue;
}
</style>
The first style would be applied to all columns, the second one only to the reftable_1 column.
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: changing column with recordcount
Hi Guys,
Thank you for thinking with me
I've found a very simple solution:
I've adjusted the "Tab/Column Title in "box" Parent/Children settings.
Likewise for the other Tab/Column Titles
Ron
Thank you for thinking with me

I've found a very simple solution:
I've adjusted the "Tab/Column Title in "box" Parent/Children settings.
Likewise for the other Tab/Column Titles
Ron
- Attachments
-
- Width-Solution.JPG (118.15 KiB) Viewed 26056 times
Re: changing column with recordcount
Hi Ron,
great that you found a solution. Out of curiosity, you do not have ticked the box for "Show count of children in table view (TV)".
So to which width are you refering?
My thought was that we talk about this column, that will be added to the TV.
great that you found a solution. Out of curiosity, you do not have ticked the box for "Show count of children in table view (TV)".
So to which width are you refering?
My thought was that we talk about this column, that will be added to the TV.
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: changing column with recordcount
Hi pbottcher
That was "sharp" of you!
Now that you mention it I didn't pay attention at it, however it occurred some versions ago.
I just activated the "Count in TV" and that went well, numbers appeared.
After that I deactivated the Count, however, the columns are still shown, with no values in the columns.
Ron
That was "sharp" of you!
Now that you mention it I didn't pay attention at it, however it occurred some versions ago.
I just activated the "Count in TV" and that went well, numbers appeared.
After that I deactivated the Count, however, the columns are still shown, with no values in the columns.
Ron