Skip to content

String Modifiers within partials #7720

Discussion options

You must be logged in to vote

Hey there!

Sounds like the Antlers version is set to regex; that new syntax is only supported with the newer Antlers version. If you need to continue using that version, the docs here will help with passing arguments to modifiers: https://statamic.dev/antlers-legacy#stringshorthand-style

To change the Antlers version, in config/statamic/antlers.php you can set the version entry to runtime:

<?php

return [
    // ...
    'version' => 'runtime',
   // ...
];

If its already set like that, or you still receive the error after the change, you can try clearing the configuration cache using:

php artisan config:clear

If you decide to change the Antlers version, your condition can be simplified to…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by joshuablum
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants