I’m totally new to Kirby and so far I think it’s great. I’ve managed to solve pretty much all my issues so far with trial and error plus the resources I can find online.
One thing is alluding me.
How can I display a value I have declared in my site blueprint via a custom kirbytag?
I have created my plugin following the instructions in the Kirby documentation:
Then, in my page editor in the Kirby Panel I have put in:
(companyno: html)
But this simply displays the text string “(companyno: html)” on the page. If I change return $site->conumber()->kirbytext(); to a simple text string it works fine. How do I access the value I have declared for conumber?
Also, would it be possible to declare a Kirbytag using this kind of structure that would access various fields I have declared for the site blueprint?
(companydata: companyno)
(companydata: companyaddress1)
(companydata: companytel)
etc.
Sorry if this seems really basic but I’m trying to get my head around it all fits together!
Thanks for that. At the moment I’m looking for a simple solution to pull in common text field values and display them (allowing the user to change them globally by simply altering one field in the Panel). However, your HTML5 Video tag is certainly something that will be useful to me soon, so thanks for sharing!