klox7 VIP
Total posts: 914
16 Dec 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.

Last Modified: 02 Mar 2014


Konstantin
Total posts: 1,113
16 Dec 2013 23:09

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

Sergey
Total posts: 13,748
16 Dec 2013 23:30

or core.label_class


klox7 VIP
Total posts: 914
17 Dec 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 Dec 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 Dec 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 Jan 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 Jan 2014 22:43

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

Powered by Cobalt