Field Permissions are not working at costum node--xxx.tpl.php

Created on 26 September 2012, over 12 years ago
Updated 6 February 2025, 4 months ago

Hello,
I have created a custom node.tlp.php.
If I spend a value of a field is always displayed. Even if it is set to not be visible.
If I spend it so, it is always displayed.

<?php
$field_code = $node->field_code['und']['0']['value'];
?>
<?php print $field_code;?>

If I spend it so it works.

<?php print render($content['field_ code']); ?>

But I need only "value" from the field, not with div.

Can someone help me?

πŸ’¬ Support request
Status

Closed: outdated

Component

Code

Created by

πŸ‡©πŸ‡ͺGermany Fianko

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024