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 07-28-2023, 11:38 PM   #1
jecilop
Addict
jecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day now
 
Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
Data files condition for Look & Feel options?

UPDATE: Solved as of POST #5....awesome
*******************************************88

Has anyone figured out a condition that will trigger a custom icon or custom color under Prefs/Look and Feel?

I really need something more than just the field "Folders:Book Files, Data Files" showing in Book Details as the only clue Data Files exist.

The combos I've attempted for the conditions just don't return anything.

Path is the field name. After looking at actual paths I've tried:
path contains \data
path contains data

But neither trigger the icon. I cannot figure out what else to type. "path" is the field name based on what I see in Book Detail options for viewing it.

Unfortunately, it also doesn't work as a search either such as path:true or path:data to see entries with data files.

Any input is appreciated.

Last edited by jecilop; 08-01-2023 at 01:04 PM. Reason: UPDATE
jecilop is offline   Reply With Quote
Old 07-28-2023, 11:55 PM   #2
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,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
Try the has_extra_files template function in an advanced rule.

BR
BetterRed is offline   Reply With Quote
Advert
Old 07-29-2023, 12:26 AM   #3
jecilop
Addict
jecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day now
 
Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
Quote:
Originally Posted by BetterRed View Post
Try the has_extra_files template function in an advanced rule.

BR
Ok, BR.. I need a little hand hold on this...I think if I figure this out with your help, I will be going though your referenced page trying many things....

I have used the has_extra_files([pattern]) in 2 locations, at least how I think it's used. That may very well be the problem. I've tried:

Prefs/L&Feel/Cust.Icons....Condition...matches pattern... then put in the field " has_extra_files([data]) " RESULT: ...nothing
Same thing but only " has_extra_files " in the field. RESULT: nothing kind of as expected.

I've tried Advanced search/Template Search:
TemplateValue: has_extra_files([pattern])

TempValue: data with Template: has_extra_files([pattern])

TempValue: (nothing here) with Template: has_extra_files

....and variations of this as well as with the Comparison Type field....

None of my attempts are giving my anything related to entries with Data Files.

Obviously, I'm new to this part and could use extra direction. I have tried. As I've stated before, the help docs I'm sure are good, but it's still like jumping into the middle of the textbook and not knowing where you need to go back to start to learn. (If you want to apply Trigonometry & Pre-calc, you have to understand triangles. But if you don't know that's where you need to start......) I have tried. Any extra direction is appreciated
jecilop is offline   Reply With Quote
Old 07-29-2023, 01:18 AM   #4
Wiggo
Leftutti
Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.Wiggo ought to be getting tired of karma fortunes by now.
 
Wiggo's Avatar
 
Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
Use forum search. Trigonometric hint: extra files
Wiggo is offline   Reply With Quote
Old 07-29-2023, 08:13 AM   #5
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,216
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
If you want to use a template search, here is the code @chaley provided in this topic:

Code:
template:"""program:has_extra_files()#@#:b:yes"""
Just copy and paste the whole code above on the search bar.

Now, if you want to use a 'Column icon', this is how you do it:

Preferences > Look & feel > Column icons : Add advanced rule



In the new dialog opened:

1) Chose the column you want to display the icon
2) Select the icon from the dropdown menu and press the copy button next to it (you will need this on the code below)
3) If the icon you want is not there, you need to add it ('Add icon' button).
4) Use this template:
Code:
program:
	if has_extra_files()
		then 'ok.png'
	fi
5) Replace 'ok.png' with the icon name you copied in step 2
6) Click OK, then Apply

Now, in the library view, you will see an icon on the column you chose when the book has one or more extra files.

Attached Thumbnails
Click image for larger version

Name:	image1.png
Views:	204
Size:	42.1 KB
ID:	202854   Click image for larger version

Name:	image2.png
Views:	214
Size:	45.5 KB
ID:	202855  

Last edited by thiago.eec; 07-29-2023 at 01:46 PM. Reason: typo
thiago.eec is offline   Reply With Quote
Advert
Old 08-01-2023, 12:57 PM   #6
jecilop
Addict
jecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day now
 
Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
Thank you, @thiago.ecc !!!!! Works so well know, and I have more to play with to learn.

I appreciate your effort in posting the graphics and instructions...I just couldn't get the advanced addition right until this help. Thanks!
jecilop is offline   Reply With Quote
Old 08-01-2023, 12:59 PM   #7
jecilop
Addict
jecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day nowjecilop will be dicovering the secret to cold fusion any day now
 
Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
Quote:
Originally Posted by Wiggo View Post
Use forum search. Trigonometric hint: extra files
Thank you, @Wiggo...
I was searching Data Files topics...didn't know Extra Files is more accurate until these answers were provided.
Even tagged my post as Data Files..
jecilop is offline   Reply With Quote
Reply

Tags
data files


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Transform HTML in Look & Feel - Common options doesn't work ishare Conversion 4 05-03-2023 02:06 AM
Look & Feel seems to start with wrong TAB DrChiper Library Management 2 09-10-2022 04:25 AM
Importing HTML Meta Data Options RonBall42 Sigil 1 08-12-2014 11:39 AM
Testpoints etc. for USB Data+ & Data- ? Upprcalypse Kindle Developer's Corner 5 03-16-2013 12:47 PM
Sell iRex DR800s in perfect condition & with BookArmor Case An-Jay Flea Market 2 06-26-2011 06:09 PM


All times are GMT -4. The time now is 01:59 AM.


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