Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 04-21-2014, 04:34 PM   #1
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Question Custom adding to toolbar?

Is it possible to add custom buttons to the mail toolbar?

I have two custom templates to save books and would like a button on the toolbar.

Now every time I have to change templates I have to do:
Preferences
Saving books to disk
change template
Apply
Close

I am hoping for a quicker method

Thanx
imans314 is offline   Reply With Quote
Old 04-21-2014, 06:26 PM   #2
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
Quote:
Originally Posted by imans314 View Post
Is it possible to add custom buttons to the mail toolbar?

I have two custom templates to save books and would like a button on the toolbar.

Now every time I have to change templates I have to do:
Preferences
Saving books to disk
change template
Apply
Close

I am hoping for a quicker method

Thanx
Quick Preferences Plugin should help
theducks is offline   Reply With Quote
Advert
Old 04-22-2014, 03:38 PM   #3
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Thanx!
imans314 is offline   Reply With Quote
Old 04-23-2014, 11:46 AM   #4
fidvo
Addict
fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.
 
Posts: 296
Karma: 1599870
Join Date: Jun 2012
Device: none
As you've by now discovered, the Quick Preferences plugin won't allow you to change Save to Disk templates.

Do you need to export certain books with one template and other books with a different template? If so, you might be able to use the Switch function in your Save to Disk template to choose between two different sub-templates based upon fields in the database. For example, you could set up your template to export Epub books with one sub-template and PDF books with a different sub-template.

Take a look at this thread for more info. I use it to set up different templates for my different libraries, but the concept should be the same for working with books in a single library.
fidvo is offline   Reply With Quote
Old 04-23-2014, 12:03 PM   #5
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
I remember that...

Post the criteria you need to select for, here or in the templates thread, and we can help you figure out the appropriate template.
eschwartz is offline   Reply With Quote
Advert
Old 04-23-2014, 03:22 PM   #6
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
I have two templates I am using:
Series: {authors} - {series} {series_index:0>2s} - {title}
No series: {authors} - {title}

And would like a quick way to acces them.
imans314 is offline   Reply With Quote
Old 04-23-2014, 05:16 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
Posts: 29,803
Karma: 54830978
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
I use a bit more complicated one to do similar and avoid some pitfalls with the way you handle series:

Code:
program:test(field('series'),strcat(
substr(field('series'), 0, 1),template("-series/{series:subitems(0,1)||/}{series:subitems(1,2)||/}{series_index:0>5.2f}-{title}_{authors}_{id}")
),template("00noseries/{author_sort[0]}_authors/{author_sort}/{title}-{authors}_{id}")
)
I use 2 folder structures as my device only has File name sort

00Noseries for all non series books. The 00 rises to the top in a Alpha sort

Since I keep most of my Library on the device (SDCARD):
I create a Alphabetical layer of folders and distribute that way
00NoSeries:
A_Authors
B_Authors ...

(Series):
A_series
B_series

Series is also Hierarchical so there can ALSO be sub folders:

Pern/Dragonriders
Pern/Harperhall
(Pern)

With series... {Author} is LAST as you may have a series with more than 1 Author contributing, THE SERIES belongs together: series index-title Author, this way books are in alpha order

I also use ##.## for fine layer of series indexing
theducks is offline   Reply With Quote
Old 04-23-2014, 07:52 PM   #8
fidvo
Addict
fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.fidvo ought to be getting tired of karma fortunes by now.
 
Posts: 296
Karma: 1599870
Join Date: Jun 2012
Device: none
Quote:
Originally Posted by imans314 View Post
I have two templates I am using:
Series: {authors} - {series} {series_index:0>2s} - {title}
No series: {authors} - {title}

And would like a quick way to acces them.
Just so I'm clear, do you mean you have some books with series and some without, and you always want to save the "series" books with your first template and the "non-series" books with your second template?

This is fairly easy to configure.

Or do you mean you want to save the same book sometimes with its series info and sometimes without?

This is much more difficult, if it's possible at all.
fidvo is offline   Reply With Quote
Old 04-23-2014, 10:58 PM   #9
eschwartz
Ex-Helpdesk Junkie
eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.eschwartz ought to be getting tired of karma fortunes by now.
 
eschwartz's Avatar
 
Posts: 19,422
Karma: 85397180
Join Date: Nov 2012
Location: The Beaten Path, USA, Roundworld, This Side of Infinity
Device: Kindle Touch fw5.3.7 (Wifi only)
Your templates appear to be more or less identical. If you simply want to avoid the extra " - " floating around when there is no series, use
Code:
{series:| - |}
instead of
Code:
 - {series}

Last edited by eschwartz; 04-23-2014 at 11:01 PM.
eschwartz is offline   Reply With Quote
Old 04-28-2014, 08:29 AM   #10
imans314
Enthusiast
imans314 began at the beginning.
 
Posts: 39
Karma: 10
Join Date: Jul 2012
Device: sony prs-t1
Avoiding the extra "-" is just what I am looking for.

That is indeed the best solution, Thanx!

Last edited by imans314; 04-28-2014 at 08:36 AM.
imans314 is offline   Reply With Quote
Reply

Tags
template, toolbar


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is Adding Custom Fonts to Kindle 4B still possible? stutzj Amazon Kindle 0 11-07-2013 06:31 PM
Adding custom fields to the main UI karimnaguib Library Management 5 10-06-2013 09:27 PM
Sigil forgets custom toolbar layout (0.6.2) JeffPalley Sigil 0 12-18-2012 02:57 PM
Adding Custom Metadata balancestudios Calibre 3 01-23-2012 12:06 PM
iLiad Adding custom action buttons to toolbar thijso iRex Developer's Corner 1 12-31-2009 07:12 AM


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


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