MetaModels / core

MetaModels Core Module
GNU Lesser General Public License v3.0
96 stars 42 forks source link

Implement lightboxSize in tl_layout for files #1457

Closed MacKP closed 2 years ago

MacKP commented 2 years ago

Checklist before I submit this issue report

I confirm that:

My environment is:

(Please fill in the actual values from your environment - check Contao Manager or use composer show)

Key Value Comments
PHP version: 7.4.x
Contao version: 4.9.x
MetaModels version: 2.2.0

Issue description

lightboxSize in the tl_layout is not used for the Lightbox Images at the Moment.

zonky2 commented 2 years ago

How can I check this?

MacKP commented 2 years ago
  1. Set lightboxSize in the PageLayout
  2. Goto Rendersettings -> Check Link or Lightbox in file Attribute
  3. Goto Frontend and klick on Image for the Lightbox-View.
MacKP commented 2 years ago

The Size is in -> unserialize($GLOBALS['objPage']->getRelated('layout')->lightboxSize))

[0] -> width [1] -> height [2] -> ID of ImageSize

with and height are only set if you set it in the PageLayout.

zonky2 commented 2 years ago

MM 2.2 implemented