| 
			
			 | 
		#1 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 3 
				Karma: 10 
				Join Date: Jan 2021 
				
				
				
				Device: Kobo Clara HD 
				
				
				 | 
	
	
	
		
		
			
			 
				
				Need Template help
			 
			
			
			Hey there, I've been trying to figure this out for a while but haven't yet been able to.  
		
	
		
		
		
		
		
		
		
		
		
		
	
	What I'm needing is a send-to-device template to sort a fiction and non-fiction library. Ideally, something like: if fiction: fiction/author_sort/title - authors if non-fiction: non-fiction/subject/title - authors I'm just using tags for this, where the first tag is fiction or non-fiction, and the second is used only for non-fiction, and that's the subject matter. So tags for a fiction book is just "fiction". And tags for a non-fiction might be "non-fiction, world history". If anyone can provide some help or insight, that'd be much appreciated!  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Well trained by Cats 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,267 
				Karma: 61916422 
				Join Date: Aug 2009 
				Location: The Central Coast of California 
				
				
				Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A 
				
				
				 | 
	
	
	
		
		
		
		
		 Moderator Notice 
		please do not hijack another thread. Use the New Post button Upper Left in each forum  | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
| 
			
			 | 
		#3 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 3 
				Karma: 10 
				Join Date: Jan 2021 
				
				
				
				Device: Kobo Clara HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Oh, shoot, I'm sorry. I figured that was the right place to put it. Thanks for moving it!
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#4 | 
| 
			
			
			
			 Wizard 
			
			![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,216 
				Karma: 1995558 
				Join Date: Aug 2015 
				
				
				
				Device: Kindle 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			This is very ugly/unreadable, but here you go: 
		
	
		
		
		
		
		
		
		
		
		
		
	
	Code: 
	{tags:'str_in_list($,',','fiction',strcat('fiction/',field('author_sort')),strcat('non-fiction/',list_difference(field('tags'),'non-fiction',',')))'}/{title} - {authors}
 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 Junior Member 
			
			![]() Posts: 3 
				Karma: 10 
				Join Date: Jan 2021 
				
				
				
				Device: Kobo Clara HD 
				
				
				 | 
	
	
	
		
		
		
		
		 
			
			Thank you very much! It works perfect, thanks for your help.
		 
		
	
		
		
		
		
		
		
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
		
		
		
			 
		
		
		
		
		
		
		
			
		
		
		
	 | 
| Advert | |
| 
         | 
    
![]()  | 
            
        
    
| Thread Tools | Search this Thread | 
            
  | 
    
			 
			Similar Threads
		 | 
	||||
| Thread | Thread Starter | Forum | Replies | Last Post | 
| "Normal" template inside GPM template | ownedbycats | Library Management | 20 | 12-02-2020 10:40 PM | 
| Template if -- then -- else | chaley | Library Management | 6 | 09-06-2020 07:57 AM | 
| Help with a template | dunhill | Library Management | 10 | 06-04-2020 07:34 AM | 
| Using built-in template functions in a custom template function | ilovejedd | Library Management | 4 | 01-28-2018 01:20 PM | 
| Help with template... or something else | Glottis | Library Management | 5 | 10-07-2015 01:55 PM |