Hey guys,

really nice module. All is working fine, but I am just asking myself if there is a way to show CCK-fields depending on zones?

Let's say that I want to show a CCK-field of a node only in Zone 1, but in Zone 2 it should be hidden. Is there any chance to get it done by an if-statement?

Like that:

<?php if ($composite_zone == "zone1"): ?>
<div class="block-title">
<a href="<?php print $node_url; ?>"><?php print $node->field_blockcustomtitle[0]['value'] ?></a>
</div>
<?php endif; ?>

Comments

bengtan’s picture

Hi,

There was an issue some time back which addressed this. See #847402: Custom fields for blocks showing teasers.

Relatively recent development snapshots after issue #847402: Custom fields for blocks showing teasers will should inject extra fields into $node which you can test for. Try testing for either $composite_zone or $node->composite_zone.

bengtan’s picture

Status: Active » Fixed

Expiring this issue as it is old and uncertain whether it is still applicable.

Status: Fixed » Closed (fixed)

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