Jump to content

{$record->customFieldDisplayByKey('my_key')|raw} remove $label from output?


jaeitee

Recommended Posts

Posted

Could anyone share with me how to strip the $label field out of {$record->customFieldDisplayByKey('my_key')|raw} ?

My template key is {$record->customFieldDisplayByKey('location_name')|raw} which outputs "Location Name: Location1" 

$label being Location Name
$value being Location1

I would like the output of {$record->customFieldDisplayByKey('location_name')|raw} to be simply "Location1"

Posted

Ignore me, I just realise that it pulls the information directly from Display Options -> Display View Format -> Custom.  It's just outputting exactly what i've put in that box.

Problem solved :thumbsup:

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...