satikusala
(Michael Becker)
September 7, 2020, 8:43pm
1
Hi there, I suspect the answer to this one is easy. I’ve modified an HTML export template to automatically added child references to the bottom of my articles.
^If(RefInclude==True){^value(Bibliography)}
^children(/Templates/Article page/Reference item)
It is working mostly at expected, but the HTML output is hosing the { }, shown here:
{Watanabe, H. (2020, September 4). XXXX https://XXXX/ }
Question: What do I need to do so that the { } don’t show up in the output?
mwra
(Mark Anderson)
September 7, 2020, 9:11pm
2
satikusala:
It is working mostly at expected, but the HTML output is hosing the { }, shown here:
{Watanabe, H. (2020, September 4). XXXX https://XXXX/ }
Question: What do I need to do so that the { } don’t show up in the output?
You are using action code if(){}else{} syntax when you should be using ^if()^…^else^…^endIf^ export code syntax. See the linked articles.
Based on information supplied, I think you want:
^if(RefInclude==True)^^value(Bibliography)^^endIf^
^children("/Templates/Article page/Reference item")^
satikusala
(Michael Becker)
September 7, 2020, 9:25pm
3
Wonderful. Thank you. I’m very grateful. After years of struggle, I think I’m finally getting there.
1 Like