CMS Development

tstrack
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

Extra Classes Parameter Ignored

resolver

When I add the extra_classes parameter to a module inside of a Flexible Column it's ignored.

{% widget_container "main_content_wrapper" %}
    {% image "offer_image" label="Offer Image", alt="Offer Image", src="//placehold.it/768x240", extra_classes="mb-30" %}
{% end_widget_container %}

It works fine outside of the Flexible Column.

{% image "offer_image" label="Offer Image", alt="Offer Image", src="//placehold.it/768x240", extra_classes="mb-30" %}

Any ideas as to why? Is it not possible?

0 Avaliação positiva
1 Solução aceita
DaniellePeters
Solução
Top colaborador(a)

Extra Classes Parameter Ignored

resolver

Since it's a flexible column, anything that you add on the template level is just a blueprint and can be removed and replaced with some other module on the page editor level. You cannot add classes to modules within flexible columns since they may or may not actually make it to the live page.

 

Exibir solução no post original

3 Respostas 3
adriancblack
Participante | Parceiro
Participante | Parceiro

Extra Classes Parameter Ignored

resolver

Still, let that be my problem, i mean the developers problem. I need to a) stop the weapper from rendering on the live site or b) an option to add extra class regardless if inside flexible column or not.
Becase of this i now have to write a buch of javascript to inject/unwrap when i coud've literaly be done with it wit just 2 css properties. literaly 2 properties. Unaccepted solution

DaniellePeters
Solução
Top colaborador(a)

Extra Classes Parameter Ignored

resolver

Since it's a flexible column, anything that you add on the template level is just a blueprint and can be removed and replaced with some other module on the page editor level. You cannot add classes to modules within flexible columns since they may or may not actually make it to the live page.

 

tstrack
Colaborador(a) | Parceiro Platinum
Colaborador(a) | Parceiro Platinum

Extra Classes Parameter Ignored

resolver

That makes sense. Thanks for the clarification!

0 Avaliação positiva