View Single Post
Old 08-27-2014, 01:44 PM   #3276
MiniMouse
Groupie
MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.MiniMouse ought to be getting tired of karma fortunes by now.
 
MiniMouse's Avatar
 
Posts: 197
Karma: 318144
Join Date: Jul 2013
Location: Well, there will always be a big time delay because I'm not living in the US! And there could be some communication difficulties too because I'm not a native speaker!
Device: Sony PRS-T3S
Quote:
Originally Posted by JimmXinu View Post
Here's an example of one way to do it:

Code:
[test1.com]
# creates a new metadata entry 'pairing'
add_to_extra_valid_entries:,pairing

# populates pairing with the same values as ships.
include_in_pairing:ships

# replace pairings with straight or slash as you prefer.
add_to_replace_metadata:
 pairing=>Jane/Thor=>straight
 pairing=>Arthur/Merlin=>slash

# only include slash or straight in pairing, discarding any 
# that weren't replaced.
add_to_include_metadata_post:
 pairing==slash
 pairing==straight

# populate custom column
add_to_custom_columns_settings:
 pairing=>#timeline
You could add that code to [defaults] to effect all sites, or to only certain sites in their sections. Adding it to site test1.com is shown.
Is there a way to more simplify the following?

## replace pairings with het or slash as you prefer.
add_to_replace_metadata:
pairing=>Arthur/Merlin=>slash
pairing=>Arthur,Merlin=>slash
pairing=>Merlin/Arthur=>slash
pairing=>Merlin,Arthur=>slash
pairing=>Sherlock Holmes/John Watson=>slash
pairing=>Sherlock Holmes&John Watson=>slash
pairing=>John/Sherlock=>slash

Because there are a lot of variations out there...

Mini
MiniMouse is offline