View Single Post
Old 08-02-2024, 12:56 AM   #1378
ownedbycats
Custom User Title
ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.ownedbycats ought to be getting tired of karma fortunes by now.
 
ownedbycats's Avatar
 
Posts: 11,115
Karma: 77213681
Join Date: Oct 2018
Location: Canada
Device: Kobo Libra H2O, formerly Aura HD
Quote:
Originally Posted by capink View Post
Theoretically it should be possible, but I have not tried it myself. So you have a go and tell how it went:
  • In the caller chain, define the following variable using the Chain Variables action:
    Code:
    _variant_argument = 'your_variant_argument'
  • In the chain caller action, enable the option to pass variables to the called chain.
I got around to finally testing this - I don't know if it failed or if I made a mistake.

My called chain has a variant called 'tbr'

Code:
program:
    add_chain_variant('Add to Backlog','rg','', 'statistics.png');
    add_chain_variant('Add to Backlog + TBR List','tbr','','statistics.png');
so I added this variable:

Click image for larger version

Name:	2024-08-02 01_54_30-Chain Variables.png
Views:	1831
Size:	12.8 KB
ID:	209892

Click image for larger version

Name:	2024-08-02 01_54_37-Chain Caller.png
Views:	1729
Size:	7.0 KB
ID:	209893

The two actions marked under 'tbr' didn't run, though.

EDIT: I figured it out, I misunderstood the instructions. I was only supposed to put tbr (no quotes and not the full thing) into the template.

Last edited by ownedbycats; 08-02-2024 at 01:03 AM.
ownedbycats is offline   Reply With Quote