I am theming a specific node type in Drupal 7. I have named my file
node--mynodetypename.tpl.php. Everything is fine and I can override the default node template; the issue is that I want to do very slight changes to the regular node template, basically the way the DIVs are structured. I get into trouble trying to replicate the original layout.
I have installed the Content Templates module, and I am getting the variable names from there. I am not using it because it has some bugs in the current version.
How can I add the comments block to the end of my content type? I just want the ordinary comments engine placed in there, but it disappeared with my new layout. Contemplate does not provide the variable to make all that comments block appear.
Is there a correct way to publish the URL of an image? Contemplate provides me with this
$node->field_image['pt-br']['filename']for the raw image file, but then I have to manually fulfill all the folder structure; it also gives me this
$node->field_image['pt-br']['uri']. It presents the folder structure above the image file, more or less like
Is there some kind of function I should call that would build the entire image URL for me?
I have created a piped list of countries as a select list. In my layout, I would like to show the name of the country, but the variable generated in contemplate
$node->field_country['pt-br']['value']only holds the country code; I would like to get the name of the country.
How can I do that?