Quote:
Originally Posted by JimmXinu
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