klox7 VIP
Total posts: 914
16 Дек 2013 05:31

Where should field "label class" be applied?

If I check output in record there is

for label and
for field value. Inside
there is
and
. But if I insert "label class" nothing happens (default template).

As I'm making my custom template I would like to know how to get field class . Something like

<?php echo $item->fields_by_id[ID]->fieldclass;?>

for field class.

Последние изменения: 02 Март 2014


Konstantin
Total posts: 1,113
16 Дек 2013 23:09

<?php echo $item->fields_by_id[ID]->params->get('core.field_class');?>

Sergey
Total posts: 13,748
16 Дек 2013 23:30

or core.label_class


klox7 VIP
Total posts: 914
17 Дек 2013 03:03

Sorry, I meant how to get label class not field class (field class is working fine). Thanks for both answers:)


klox7 VIP
Total posts: 914
19 Дек 2013 13:58

Actually is core.lable_class (e & l letters in label are reversed). So it is:

<?php echo $item->fields_by_id[ID]->params->get('core.lable_class');?>

Field class works both ways:

<?php echo $item->fields_by_id[ID]->fieldclass;?>
<?php echo $item->fields_by_id[ID]->params->get('core.field_class');?>

pepperstreet VIP
Total posts: 3,837
30 Дек 2013 00:21

But if I insert "label class" nothing happens (default template).

Bug confirmed for latest Cobalt release 8.457.

There is** no output** of custom LABEL CLASS ?!


pepperstreet VIP
Total posts: 3,837
23 Янв 2014 19:54

But if I insert "label class" nothing happens (default template). > But if I insert "label class" nothing happens (default template).

Bug confirmed for latest Cobalt release 8. 457.

There is no output of custom LABEL CLASS ?!

BTW, is it solved in latest Cobalt 8.470 ?


Sergey
Total posts: 13,748
23 Янв 2014 22:43

I am not sure. I think in some templates. For example label class in table template is meaningless.

Работает на Cobalt