Discussion
Loading...

#Tag

  • About
  • Code of conduct
  • Privacy
  • Users
  • Instances
  • About Bonfire
Scott Jenson and 1 other boosted
Matthias Ott
@matthiasott@mastodon.social  ·  activity timestamp 5 days ago

✍️ New post: Adding AVIF and WebP Sup­port to My Craft CMS Site

#blogtober #CraftCMS #webdev #images #performance
https://matthiasott.com/notes/adding-avif-and-webp-support-to-my-craft-cms-site

Matthias Ott – User Experience Designer

Adding AVIF and WebP Support to My Craft CMS Site · Matthias Ott

Matthias Ott is an independent user experience designer and web design engineer from Stuttgart, Germany. He also teaches Interface Prototyping at the Muthesius Academy of Fine Arts and Design.
⁂
More from
Matthias Ott
  • Copy link
  • Flag this post
  • Block
Matthias Ott
@matthiasott@mastodon.social  ·  activity timestamp 5 days ago

✍️ New post: Adding AVIF and WebP Sup­port to My Craft CMS Site

#blogtober #CraftCMS #webdev #images #performance
https://matthiasott.com/notes/adding-avif-and-webp-support-to-my-craft-cms-site

Matthias Ott – User Experience Designer

Adding AVIF and WebP Support to My Craft CMS Site · Matthias Ott

Matthias Ott is an independent user experience designer and web design engineer from Stuttgart, Germany. He also teaches Interface Prototyping at the Muthesius Academy of Fine Arts and Design.
⁂
More from
Matthias Ott
  • Copy link
  • Flag this post
  • Block
devolute
@devolute@mastodon.social  ·  activity timestamp 3 months ago

Using CKEditor in #CraftCMS v5+ is - at times - a very good author experience†. However, without the relationships that are stored when using the 'traditional' Matrix-based approach feels like you may well be losing the thing that made the CMS such a great platform to work with. This may only be realised in the long term as your website evolves.

(† despite still being unable to cope with emphasised text properly, humph!)

  • Copy link
  • Flag this post
  • Block
Rachel Lawson
@rachel@norfolk.social  ·  activity timestamp 4 months ago
@urlyman heh - indeed it does - and has done for a few years now... https://git.drupalcode.org/project/drupal/-/blob/11.x/core/modules/ckeditor5/js/ckeditor5_plugins/drupalEmphasis/src/drupalemphasisediting.js?ref_type=heads
Jonathan Schofield
@urlyman@mastodon.social replied  ·  activity timestamp 4 months ago

@rachel I guess I could do the same for my #CraftCMS context, but… I’d be playing around with minimised .js which would then get wiped out with every update :/

I hope the CK team listen to @brandon sometime soon https://github.com/ckeditor/ckeditor5/issues/10393#issuecomment-2501930882

  • Copy link
  • Flag this comment
  • Block
Jonathan Schofield
@urlyman@mastodon.social  ·  activity timestamp 4 months ago

Why doesn’t is defined work in a #CraftCMS JSON field?

https://craftcms.stackexchange.com/questions/42361/is-defined-method-does-not-work-with-field-value-of-json-field-type

  • Copy link
  • Flag this post
  • Block
Jonathan Schofield boosted
Craft CMS
@craftcms@masto.craftcms.com  ·  activity timestamp 4 months ago

What’s new in Craft 5.8 https://www.youtube.com/watch?v=hfTnGS6JvTE#CraftCMS

  • Copy link
  • Flag this post
  • Block
Jonathan Schofield
@urlyman@mastodon.social  ·  activity timestamp 4 months ago

Seeking clarity in this interim period on the #CraftCMS “Tags entrification” roadmap:

https://craftcms.stackexchange.com/questions/42359/seeking-clarity-in-this-interim-period-on-the-tags-entrification-roadmap

  • Copy link
  • Flag this post
  • Block
Jonathan Schofield
@urlyman@mastodon.social  ·  activity timestamp 4 months ago

Rebuilding a thing in #CraftCMS 5 (it needed a rebuild anyway).

And getting my head more clearly round how https://craftcms.com/docs/5.x/system/fields.html#multi-instance-fields plays out *before* I start pouring loads of content in.

Just as well, because my dev work has already fallen foul of a variant of this: https://craftcms.com/docs/5.x/system/fields.html#field-layout-elements

Take care when removing a field from a layout: Craft stores field content using each instance’s UID. Re-adding a field (whether or not it uses the same handle) will give it a new UID, meaning it will no longer be associated with existing content! By relegating these changes to a development environment, your live data is typically insulated from major loss—if you do mistakenly remove a field, you can always roll back the corresponding project config changes via git before deploying.

Moving field layout elements between tabs, however, is nondestructive.
Take care when removing a field from a layout: Craft stores field content using each instance’s UID. Re-adding a field (whether or not it uses the same handle) will give it a new UID, meaning it will no longer be associated with existing content! By relegating these changes to a development environment, your live data is typically insulated from major loss—if you do mistakenly remove a field, you can always roll back the corresponding project config changes via git before deploying. Moving field layout elements between tabs, however, is nondestructive.
Take care when removing a field from a layout: Craft stores field content using each instance’s UID. Re-adding a field (whether or not it uses the same handle) will give it a new UID, meaning it will no longer be associated with existing content! By relegating these changes to a development environment, your live data is typically insulated from major loss—if you do mistakenly remove a field, you can always roll back the corresponding project config changes via git before deploying. Moving field layout elements between tabs, however, is nondestructive.
  • Copy link
  • Flag this post
  • Block
Craft CMS
@craftcms@masto.craftcms.com  ·  activity timestamp 4 months ago

What’s new in Craft 5.8 https://www.youtube.com/watch?v=hfTnGS6JvTE#CraftCMS

  • Copy link
  • Flag this post
  • Block
Jonathan Schofield
@urlyman@mastodon.social  ·  activity timestamp 4 months ago

TIL that if the outermost element of content in a #CraftCMS JSON field is an *object*, the validation on Save will re-order its keys (in a non-obvious way) 🤦‍♂️

A way round this is to make the outermost element be an *array*, and then it doesn’t get messed with.

But this means that when key order matters, I can’t…

```
{% for key, data in field %}
…
{% endfor %}
```

I have to…

```
{% for obj in field %}
{% for key, data in obj %}
…
{% endfor %}
{% endfor %}
```

…but…

  • Copy link
  • Flag this post
  • Block
Log in

bonfire.cafe

A space for Bonfire maintainers and contributors to communicate

bonfire.cafe: About · Code of conduct · Privacy · Users · Instances
Bonfire social · 1.0.0-rc.3.21 no JS en
Automatic federation enabled
  • Explore
  • About
  • Members
  • Code of Conduct
Home
Login