Page 1 of 1

Bootstrap File Listing

Posted: Wed Mar 15, 2023 8:37 am
by paul.maechler
I want to sort the files by date by default. Latest on top.
Also like to reduce the font size of the list.
Tried to make some changes in CSS without success.
Could you tell me how reach that goal ?
And how to make it "permanent".

Or is there anyway a better (also commercial) solution ?

Thanks
Paul

DEV example : https://eiwa.ch/PUBL.html

Re: Bootstrap File Listing

Posted: Wed Mar 15, 2023 10:07 am
by Pablo
You can set the font size via the style properties.

You can set the default sort of via:
https://eiwa.ch/PUBL-DIR.php?&sort=date:desc
or
https://eiwa.ch/PUBL-DIR.php?&sort=date:asc

Re: Bootstrap File Listing

Posted: Wed Mar 15, 2023 11:40 am
by paul.maechler
Thanks for that quick reply.
Sort works. :)

But can't find the size of the table-font.
Style of extension is set to 10px Arial. Title seems to be OK.
But not the content - it is most definitely bigger than 10px.

Rgds
paul

Re: Bootstrap File Listing

Posted: Wed Mar 15, 2023 12:19 pm
by Pablo
The specified font size applies to all text in the extension.

Note that the specifies sizes (in the UI) are in points, the output (in HTML) are in pixels.
10pt = 13px

Note that your page does not have a valid document type, so this means that styles may not work as expected.
The document type (in Page Properties) should be set the 'html5'.

Re: Bootstrap File Listing

Posted: Fri Mar 17, 2023 8:33 am
by paul.maechler
>> The document type (in Page Properties) should be set the 'html5' <<
That did the trick !!

Thanks a lot Pablo

Re: Bootstrap File Listing

Posted: Wed May 03, 2023 3:36 pm
by onlye
Pablo wrote: Wed Mar 15, 2023 10:07 am You can set the font size via the style properties.

You can set the default sort of via:
https://eiwa.ch/PUBL-DIR.php?&sort=date:desc
or
https://eiwa.ch/PUBL-DIR.php?&sort=date:asc
Pablo - I am using the Bootstrap File Listing in a column of a Layout Grid. I need to sort by file name in descending order. I looked at the examples you showed above and i see the code after the file name. How and where would I add that in the extension in the layout grid?

Here is the page. Using the File Listing extension in locations for Board Agenda, Board Minutes, and Job Opportunities towards the bottom of the page
https://www.pearlrivercounty.net/

THANK YOU

Re: Bootstrap File Listing

Posted: Wed May 03, 2023 3:51 pm
by Pablo
You cannot add this in the extension. These are page arguments, so they should either be entered in the browser's address bar or in the link to the page:
https://www.pearlrivercounty.net/index. ... t=date:asc
or
https://www.pearlrivercounty.net/index. ... =date:desc

Re: Bootstrap File Listing

Posted: Wed May 03, 2023 4:03 pm
by onlye
Pablo wrote: Wed May 03, 2023 3:51 pm You cannot add this in the extension. These are page arguments, so they should either be entered in the browser's address bar or in the link to the page:
https://www.pearlrivercounty.net/index. ... t=date:asc
or
https://www.pearlrivercounty.net/index. ... =date:desc
Thanks. So the best way to handle this would be to make a link from the home page to a new page with the file listings. Then in the menu or a link to that new page add the page arguments?

Re: Bootstrap File Listing

Posted: Wed May 03, 2023 5:21 pm
by Pablo
Correct