Hi.

With the previous version to 5.x-1.10 of CCK I showed a text field in my custom node templates using:

print $field_evaluacion[0]['view'];

But now it doesn't work. What's the new code to show the field description?

Thanks in advance.

Comments

NoRandom’s picture

Extra information, it seems to be some kind of bug:

1.- Two cck text fields (CCK-1, CCK-2) applyed to two kind of node-types (A and B).

2.- Same php snippet to show these two fields inside two custom node templates:

<?php if ($field_evaluacion[0]['value']!=''): ?>
		<div id="evaluacion" class="evaluacion-<?php print $field_evaluacion[0]['value']; ?> portada-hidden">
			<strong><?php print $field_evaluacion[0]['view']; ?>
			<?php if($field_evaluaciondescripcion[0]['value']): ?>:</strong> <?php print $field_evaluaciondescripcion[0]['value']; ?><?php else: print '.</strong>'; ?><?php endif; ?>
		</div>
		<pre><?php print_r($field_evaluacion[0]); ?></pre>
	<?php endif; ?>

Node type A: Everything OK (http://pixelgordo.com/version/poogaboo). You can see the two variables "view" and "value" from cck $field_evaluacion[0]

Node type B: Problems... (http://pixelgordo.com/juego/poogaboo). You can't see the "view" variable from cck $field_evaluacion[0]

Kind regards.

PS.- If you need more information, don't hesitate to ask for it.

karens’s picture

Status: Active » Closed (won't fix)

The D5 version is no longer being supported. Sorry.