I have overridden my node tpl page and want to output variables from a field into html. The field is called: "Features Ticked"
I understand that this php code will output the information:
<?php print render($content['field_features_ticked']) ?>
I see the variables are all visible with css tags around them.
Is this the only way I can outpout this information as I want to strip the html tags, how do I do that?
I want to just output row by row then use html within the tpl file.
At the moment I get all these classes:
<div class="field field-name-field-features-ticked field-type-text field-label-above" style=".field-name-field-features-ticked: size"> <div class="field-label">Features/Ticked: </div> <div class="field-items"> <div class="field-item even">Text 1</div> <div class="field-item odd">Text 2</div> <div class="field-item even">Text 3</div> </div></div>
What I want to do it output just:
Text 1 Text 2 Text 3
Then wrap my own html around it.. I think I can override the field.tpl.php file to remove the classes, but I don't know how to output each line of text using php in 3 separate lines of code.
I thought i was something like:
<?php print render($content['field_features_ticked']) ?> <?php print render($content['field_features_ticked']) ?> <?php print render($content['field_features_ticked']) ?>
But my knowledge of php kind of end there!