View Single Post
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,229
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:	213
Size:	42.1 KB
ID:	202854   Click image for larger version

Name:	image2.png
Views:	223
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