Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Library Management

Notices

Reply
 
Thread Tools Search this Thread
Old 06-01-2025, 10:22 AM   #1
kamowski
Junior Member
kamowski began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2025
Device: none
Tip : How to display whether a book has added files in "Data files"

I created a custom column:

Lookup name: datafiles

Column header: Data Files

Column type: Column built from other columns (Behaves like a tag)

Template: program: has_extra_files()

Search template: {has_extra_files()}

Show in tag browser: Yes

Sort or search columns by: #It doesn’t matter what I chose, the column always displays the number of additional files.

Now, the column shows the number of added files, and it also appears on the left as a category. This is sorted based on the number of added files. Moreover, the column doesn't have to be visible—I can hide it, and the category will still work.

We worked on this with AI for about an hour.
kamowski is offline   Reply With Quote
Old 06-01-2025, 01:46 PM   #2
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,364
Karma: 8012652
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Do you have a question? You described behavior. If it isn't the behavior you want then what do you want?
chaley is offline   Reply With Quote
Advert
Old 06-01-2025, 01:50 PM   #3
dunhill
Guru
dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.dunhill ought to be getting tired of karma fortunes by now.
 
dunhill's Avatar
 
Posts: 878
Karma: 409970
Join Date: Sep 2017
Location: Buenos Aires, Argentina
Device: moon+ reader, kindle paperwhite
There's information about it on the forum. Searching for extra_files will give you many threads. Here's one:
https://www.mobileread.com/forums/sh...&postcount=715
dunhill is offline   Reply With Quote
Old 06-01-2025, 02:28 PM   #4
kamowski
Junior Member
kamowski began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2025
Device: none
Quote:
Originally Posted by chaley View Post
Do you have a question? You described behavior. If it isn't the behavior you want then what do you want?
No, I don't have a question. I was just working on this and found a solution, so I shared it with the community. It's possible that I categorized it incorrectly
kamowski is offline   Reply With Quote
Old 06-01-2025, 06:25 PM   #5
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Quote:
Originally Posted by kamowski View Post
No, I don't have a question. I was just working on this and found a solution, so I shared it with the community. It's possible that I categorized it incorrectly
It's in the right place. I changed the thread title to indicate it's not a question.

I attach a 'folder' icon to a column (e.g. Title) if has_extra_files() is True.

BR
BetterRed is online now   Reply With Quote
Advert
Old 06-02-2025, 03:58 AM   #6
kamowski
Junior Member
kamowski began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2025
Device: none
Quote:
Originally Posted by BetterRed View Post
....

I attach a 'folder' icon to a column (e.g. Title) if has_extra_files() is True.

BR
How? Please describe it in a few words.
kamowski is offline   Reply With Quote
Old 06-02-2025, 04:39 AM   #7
BetterRed
null operator (he/him)
BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.BetterRed ought to be getting tired of karma fortunes by now.
 
Posts: 21,660
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
No words needed, picture is easier:

Click image for larger version

Name:	Screenshot 2025-06-02 182216.jpg
Views:	34
Size:	104.0 KB
ID:	215947

Links is a long text column. I attach the folder icon to it because when I store the original file in the 'data' folder I usually put a link to the file in the Links column. Which means I can 'click' on (open) it from the Book details panel - saves having to open and close File System windows.

BR

Last edited by BetterRed; 06-02-2025 at 05:02 AM.
BetterRed is online now   Reply With Quote
Old 06-02-2025, 08:49 AM   #8
kamowski
Junior Member
kamowski began at the beginning.
 
Posts: 8
Karma: 10
Join Date: May 2025
Device: none
Quote:
Originally Posted by BetterRed View Post
No words needed, picture is easier: ...
BR
yesssss!
Click image for larger version

Name:	calibre_ikona.jpg
Views:	25
Size:	47.6 KB
ID:	215950
kamowski is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
On manually creating /data/ folder vs using "Add data files to selected book records" droopy Library Management 1 07-31-2023 09:29 PM
Link to open book's data files folder BetterRed Library Management 7 04-28-2023 06:16 PM
Copy book data to separate library without duplicating the actual book files? dewd Library Management 5 01-12-2022 03:11 PM
New version 1.6 Book Cleaner data files JSWolf Workshop 0 10-29-2008 04:30 AM


All times are GMT -4. The time now is 05:04 AM.


MobileRead.com is a privately owned, operated and funded community.