I have got a problem. I have been upgrading my site from Drupal 6 to 7 and I've reached about 75% of the way. I have updated all my 3rd party modules and custom modules and while I was configuring some setting for my 3rd party modules, like Taxonomy Image, I noticed that in my front page the teasers where displaying a view that I wanted to embed only in the full node view.
I looked at my node.tpl.php, which is where I was adding the view and the if/else for the view looks good, but for some reason, when I debugged it, the if ($teaser) is not the one that it is going to when I load the front page, it is actually going to the else.
This is the code in my node.tpl:
<div class="clearfix">
<?php if (!empty($content['links'])): ?>
<div class="links"><?php print render($content['links']); ?></div>
<?php endif; ?>
<?php if($teaser): ?>
<?php print render($content['comments']); ?>
<?php else: ?>
<!-- //Add the comments and related_by_term block to the footer_wrapper div -->
<div id="footer_wrapper">
<?php print render($content['comments']); ?>
<?php $related_by_term_block = block_load('views', 'related_by_term-block_1');
$block_content = _block_render_blocks(array($related_by_term_block));
$build = _block_get_renderable_array($block_content);
?>
<div id="blackborder_related_by_term_block">
<?php
print render($build);
?>
</div>
</div>
<?php endif; ?>
</div>
I have no idea if any of the 3rd party modules I have are getting in the way. This is the list of my 3rd party modules:
- FLAG
- DATE
- CAPTCHA
- MOLLOM
- ADVANCED HELP
- BETTER FORMATS
- FLAT COMMENTS
- FORWARD
- SEARCH CONFIGURATION
- SHARED EMAIL
- VOTING API
- WYSIWIG
- AUTHOR PANE
- PUBLISH CONTENT
- WORKFLOW
- THEMEKEY
- CHAOS TOOL SUITE (CTOOLS)
- VIEWS
- ENTITY API
- VIEWS BULK OPERATIONS (VBO)
- VIEWS ATTACH (EVA)
- SIMILAR BY TERMS
- ADVANCED FORUM
- RULES
- LIBRARIES API
- GRAMMAR PARSER
- GRAMMAR PARSER LIBRARY
- HTML PURIFIER
- TOKEN
- INVITE
- FIVESTAR
Any input would be greatly appreciated. Thanks.