Hi,
can I format the output of CF directly using the display-field or must I do this with CSS?
I want to view the output of one CF as h2-header. So I tried to put the following code in the display field:
$display = '

' . $node_field_item['value'] . '

';

But output is no html-formated string now, instead I find

my outputstring

Kind regards

Kai

Comments

vistree’s picture

Status: Active » Fixed

Oh sorry, I did not check the display properties enough - it is quite easy by just changing to formated text there.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

sticky2010’s picture

Title: How to output as HTML » How to add 2 strings in CCK Computed field?

I have a CCK Text field called: field_fb_field_b

I have a Computed field called: field_fb_link_computed

In my computed field I have 2 variables called:

$var1 ="some text";
$var2 ="some more text";

I wanted my Computed fields to add something like:

$node_field[0]['value'] = $var1.$node->field_fb_field_b[0]['value'].$var2

Is this correct?

I want to display field_fb_field_b in a View I have created. But the field_fb_field_b shows empty!

Thank you.