contao / core

Contao 3 → see contao/contao for Contao 4
GNU Lesser General Public License v3.0
492 stars 213 forks source link

Show only images sizes defined in selected theme #8008

Open christianromeni opened 9 years ago

christianromeni commented 9 years ago

I have a Contao installation with 3 themes, and each has at least 5 image sizes defined in the theme. But when adding an image to a page where theme A is selected, I also see the images sizes defined in theme B.... image In this example, only Rollingmelder should be visible.

leofeyer commented 9 years ago

How is the image element supposed to know about the theme you have assigned to a page? I think it is correct to display all image sizes in this case.

christianromeni commented 9 years ago

I'm not sure, is there no object aware of the current theme? It should be available in the page object or am I wrong?

Zeromax commented 9 years ago

I think the layout section stuff is related: #6094

So there only the position wehere an article could be placed is shown.

Why not do the same here?