Since Kirby 2.4.1 my smartypants setup in config file is not working. How can I overwrite ‘smartypants.doublequote’?
Can you show your current config?
Is it placed in site/config/config.php
or somewhere else?
There are two separate options:
smartypants.doublequote.open
smartypants.doublequote.close
Are you using those?
config.php:
c::set(‘smartypants.doublequote.open’, ‘„’);
c::set(‘smartypants.doublequote.close’, ‘“’);
I was always using this, worked in Kirby 2.3.2 but no longer in 2.4.1
Would this work as a workaround?
// site/config/config.php
$kirby = kirby();
// Workaround for https://github.com/getkirby/kirby/issues/166
// Start the SmartyPants component, without using it, to import its default options
$kirby->component('smartypants');
// Then set the desired options for SmartyPants
$kirby->set('option', 'smartypants.doublequote.open', '„');
$kirby->set('option', 'smartypants.doublequote.close', '“');
I haven’t tried it and am only 60% sure that it would work.
This should now be fixed on the dev branch.