![]() |
#1 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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 |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,733
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
|
![]() |
![]() |
Advert | |
|
![]() |
#3 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
|
Quote:
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 |
|
![]() |
![]() |
![]() |
#4 |
Leftutti
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 549
Karma: 1717097
Join Date: Feb 2019
Location: Bavaria
Device: iPad Pro, Kobo Libra 2
|
Use forum search. Trigonometric hint: extra files
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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""" 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 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. Last edited by thiago.eec; 07-29-2023 at 01:46 PM. Reason: typo |
![]() |
![]() |
Advert | |
|
![]() |
#6 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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! |
![]() |
![]() |
![]() |
#7 |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 260
Karma: 139980
Join Date: Mar 2014
Device: Android
|
|
![]() |
![]() |
![]() |
Tags |
data files |
|
![]() |
||||
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 |