tobimori / kirby-icon-field

🏷️ A simple Icon field plugin for Kirby CMS.
https://getkirby.com/plugins/tobimori/icon-field
MIT License
38 stars 4 forks source link

Don't save "icon.svg" in a custom block #17

Closed jp-clerc closed 3 months ago

jp-clerc commented 3 months ago

I followed this tutorial to create a custom icon block with other field like "size" and "decoration". But once I press "Save" and "Reload" the field is not updated with the "icon.svg" : Testblock: [{"content":{"icone":"","style":"sans","size":"lg"},"isHidden":false,"type":"icons"}]

On the other hand, outside a layout ou blocks field, it works perfectly.

tobimori commented 3 months ago

I'm currently using the plugin inside of a custom block and don't have any issues with the field. In any case, the demo block from the tutorial you provided works fine to me as well.

jp-clerc commented 3 months ago

Ah yes, it works with my dev server: "kirby": "4.3.0", "php": "8.1.28", "server": "Apache" but not with my local server: "kirby": "4.3.0", "php": "8.2.12","server": "Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12". This must be because of that.

Additional question: how long does it take to refresh the cache when enable? When I upload a new icon in the folder, with the panel, I don't see it instantly.

tobimori commented 3 months ago

The cache is never refreshed automatically, you have to delete it manually.

jp-clerc commented 3 months ago

Thanks a lot!