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 03-28-2018, 04:04 AM   #1
Bluez
Junior Member
Bluez began at the beginning.
 
Bluez's Avatar
 
Posts: 7
Karma: 10
Join Date: Jan 2012
Device: Windows 10 Tablet
Question Another 'Send to Disk' Question

I am trying to get my files to save to template using a hierarchy tag structure.

So, example, say I have a recipe book, it would like like this in Calibre:
Title: Favourite Recipes
Author: Various Authors
Tag:600 Technology.640 - Recipes
Fiction:Non-Fiction (Custom column)

and
Title:IT
Author:Stephen King
Tag:800 Literature
Fiction:Fiction

I am trying to save these to disk using a template to split the fiction and non-fiction.

So far, I have got the following:
Code:
program:
	middle = contains(
		field('#fiction'),
		'Non-Fiction', 
		strcat(field('tags'),"/",field('title'),' - ',field('author'),""), 
		strcat(field('author_sort'),'/',field('title'))
	);
	strcat(field('#fiction'),'/',middle)
but, it would be nice to be able to split the tags into a folder structure, eg.
- Non-Fiction\600 Technology\640 - Recipes\Favourite Recipes - Various Authors
- Fiction\King, Stephen\IT

I've tried playing around with {tags:subitems(0,1)||/} but I just cannot get it to work.

Any help would be appreciated.
Bluez is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with 'Send to Disk' template Kaimeirra Library Management 13 03-14-2018 08:22 PM
Using Tags or tag-like column in Save To Disk/Send to Device BookJunkieLI Library Management 34 05-03-2015 05:45 AM
Send to Device (iPad) vs. Save to Disk (cover issue) 1611mac Devices 17 04-20-2011 11:19 AM
Save to disk question Amalthia Calibre 2 08-16-2010 06:17 PM
Save to Disk or Send to device Dopedangel Calibre 13 12-11-2009 01:56 PM


All times are GMT -4. The time now is 09:32 AM.


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