Форуми / Cotonti / Skins / Changing style for input / Options in select

Mr G.
#1 23.01.2013 13:48

 

Hi.

I have one question.

Is there a possibility to change the style of input for title in page.add.tpl? There is only a {PAGEADD_FORM_TITLE}, and i want to change font size only for title input, not for all inputs...

 


Відредаговано: Mr G. (04.02.2013 10:40, 11 років тому)
Kort
#2 23.01.2013 15:57

add the following line to the js.js:

$('input[name=rpagetitle]').css('font-size','2em');

... or assign a class:

$('input[name=rpagetitle]').addClass('someclass');

... or use plain css:

input[name=rpagetext] { font-size:2em; }

 

SED.by - создание сайтов, разработка плагинов и тем для Котонти

Відредаговано: Kort (23.01.2013 16:10, 11 років тому)
Mr G.
#3 24.01.2013 12:37

Thanks for answer.

not so handy solution, but i think i have no choice :)

i thought maybe there is some trick with callbacks or $R

Trustmaster
#4 24.01.2013 13:29

Right guess about $R, what you need to override is $R['input_text_rpagetitle'] in your theme PHP file.

May the Source be with you!
Mr G.
#5 25.01.2013 09:49
#36876 Trustmaster:

Right guess about $R, what you need to override is $R['input_text_rpagetitle'] in your theme PHP file.

Works fine, thx :)

Added 1 weeks later:

Hi, i have another question.

I have extra field select on page (License) with some options (by, by-sa, by-nc, by-nc-sa, by-nd, by-nc-nd), and in language file

ie. $L[license_by] = 'Attribution'; $L[license_by-sa]=........

, that works fine on page.edit.tpl, but on page.tpl i want to display options from db not translations, cuz it's a part of link

<a href="http://creativecommons.org/licenses/{PAGE_LICENSE}/3.0/pl/" title="creativecommons"><img src="http://i.creativecommons.org/l/{PAGE_LICENSE}/3.0/pl/88x31.png" alt="creativecommons"/></a>

Any ideas how to do it?


Відредаговано: Mr G. (04.02.2013 10:49, 11 років тому)
Trustmaster
#6 04.02.2013 17:35

There's a new type of tags recently added for that: {PAGE_LICENSE_VALUE} for instance. I'm not sure if it is already available in 0.9.12.1 or you need to grab the latest version from Github to use them.

May the Source be with you!