How do I write a Kirbytag inside an info field without it getting rendered?
Something like…
text: "Use \(email: name@provider.com\)"
?
How do I write a Kirbytag inside an info field without it getting rendered?
Something like…
text: "Use \(email: name@provider.com\)"
?
@daizumi did you find a solution for this ?
Or does somebody know how to achieve that ?
Have a look at how it is done on the getkirby.com website
<?php echo str_replace('(\\', '(', kirbytext($page->text())) ?>
@texnixe thanks a lot for the input! I couldn’t figure out how to use str_replace in the blueprint info field, so I just replaced the parentheses with the number code what works fine for me :
info:
label: Link einfügen
type: info
text: >
(link: http://myLink.xyz text: myLink.xyz popup: yes)
to get this: (link: http://myLink.xyz text: myLink.xyz popup: yes). How would it work with str_replace?
Ah, sorry, that was a misunderstanding on my side, you can’t use PHP code in blueprints. Your solution is the the way to go.
Ah ok, but thanks a lot anyway for the info !