tjikko-studio / components

Component library for Tjikko Studio apps
0 stars 0 forks source link

Remove Kirby-specific data structures from Media #158

Open shawninder opened 3 years ago

shawninder commented 3 years ago

From: https://github.com/tjikko-studio/components/pull/157#discussion_r720708411

Screen Shot 2021-10-02 at 14 26 09

I think we should keep only this new alt prop and have Kirby provide a value from content. We don't want to make this component library Kirby-specific since Kirby isn't good and we'll want to replace it someday… This implies changes in both the backend and frontend.

starjdave commented 3 years ago

It's a bug in Kirby, or I don't see any way how to make Kirby pass alt text to the parent object. It's available only on image edit level. So probably we need load image info separately

starjdave commented 3 years ago

Then only way I see now it's load image info via additional call like /api/pages/solutions+real-estate/files/capture-1.png