Closed (fixed)
Project:
AdaptiveTheme
Version:
7.x-3.1
Component:
CSS/HTML
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2013 at 15:18 UTC
Updated:
29 Jan 2013 at 10:50 UTC
I've got a page--front.tpl.php and have a custom content type and on this template page I need to layout the fields on certain parts of the page eg:
<!-- region: Main Content -->
<?php if ($content = render($page['content'])): ?>
<div id="content" class="region">
<?php hide($content['field_questions']); ?>
<?php hide($content); ?>
<div class="customClass">
<?php print render($content['field_questions']); ?>
</div>
</div>
<?php endif; ?>
The field_questions does not get output to the page even though it has a value and my page looses it's style. If I leave it as print $content then renders the page the default style. Can I not use hide within this part of the template (using a subtheme)?
Comments
Comment #1
ursula00 commentedNot sure whether the variables were in scope but I've solved my problem by creating a template for that node and I can now render specific fields.