Goodmorning everyone,
is it possible to obtain the numerical value using the Color Picker addon?
I am trying to give the possibility to change the color of the background of a page through an inline CSS.
I used this code in global.php
And recalled the value in the frontend page with.:
If I use the TEXT tag instead of the color picker, the problem does not exist.
Some idea ?
Thank you
is it possible to obtain the numerical value using the Color Picker addon?
I am trying to give the possibility to change the color of the background of a page through an inline CSS.
I used this code in global.php
- Code: Select all
<cms:editable name='def_colori' label='Definizione colori' desc='Definisci i colori per le varie sezioni' type='group' collapsed='2'/>
<cms:editable type='color' name='preload_color' label='Colore Preload' desc='Definisci un colore di background per il preload' group='def_colori'/>
<cms:editable type='color' name='footer_color' label='Colore footer' desc='Definisci un colore di background per il footer'group='def_colori' />
<cms:editable type='color' name='footer_logo_color' label='Colore footer logo' desc='Definisci un colore di background per il footer logo' group='def_colori'/>
And recalled the value in the frontend page with.:
- Code: Select all
<style>
#loader, #loader2, #loader3 {
background-color: #<cms:get_field 'preload_color' masterpage='globals.php' />;
}
</style>.
If I use the TEXT tag instead of the color picker, the problem does not exist.
Some idea ?
Thank you