WapplerSystems / ws_slider

GNU General Public License v2.0
3 stars 2 forks source link

In the flexslider element setting there are no items to chose under "Text Position" and "Text style class" #23

Open FrischeWelt opened 1 year ago

FrischeWelt commented 1 year ago

Text option "Text position" has "Default" (expected left and right) and "Text style class" has no options at all (expected Style 1 - 4)

jk-propeller commented 1 year ago

Same Problem here.

Somehow we need to change these arrays: https://github.com/WapplerSystems/ws_slider/blob/6cae6bd0cc70d6155786bca925f389207bc2cf50/Configuration/TCA/tx_wsslider_domain_model_item.php#L162 and https://github.com/WapplerSystems/ws_slider/blob/6cae6bd0cc70d6155786bca925f389207bc2cf50/Configuration/TCA/tx_wsslider_domain_model_item.php#L176

A segment in the documentation about how to change/add these options via TypoScript would be great! It would also help if these default options would be included again.

jk-propeller commented 1 year ago

@FrischeWelt Habt ihr da mittlerweile zufällig was herausgefunden?

linawolf commented 1 year ago

You can add options with TsConfig

TCEFORM.tx_wsslider_domain_model_item {
  text_position.addItems {
    left = LLL:EXT:ws_slider/Resources/Private/Language/locallang.xlf:text_position.left
    right = LLL:EXT:ws_slider/Resources/Private/Language/locallang.xlf:text_position.right
  }
}

and then output them in the template like it is already done for text_position in the flexslider template