Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
By tomamon on
I'm trying to do this in a module tpl.php file and nothing is being rendered...
print render($content['field_custom']);
Any pointers or help would be much appreciated.
Thanks
Comments
I found this on the forum to
I found this on the forum to begin with but, am having no luck...
https://drupal.org/node/1323842
Here is what I have so far.
This is my custom module for theming a custom content type node add form
Here is a few of my attempts at creating a working tpl.php file
This gives me a blank white screen of death:
<?php print render($content); ?>
This prints everything as I would expect it to:
<?php print drupal_render_children($content); ?>
This prints nothing:
<?php print render($content['field_custom']) ?>
This is in a module and not in the sub-theme ...
Any help would be awesome as I've been trying for a day to figure this out..
Thanks mucho