I've been trying out this theme for several days and really like it, but have run into a serious issue: After promoting a node to the front page, attempts to view the node alone result in a broken page with no theming. For instance, I can create three article nodes and they each are viewable alone or in lists, as expected. After promoting any of the nodes to the front page, selecting the promoted node displays it without the rest of the page. That is, no headers, menus, blocks, etc. Only the node in plain, unstyled HTML, beginning with the title and ending with any tags that follow the main body.

If you view the source of the resulting page, it begins with:
<div class="node node-article node-promoted node-sticky node-teaser contextual-links-region node-first">

and ends with <div class="read-more">

I've been able to isolate the problem to line 47 in node.tpl.php...

<div class="read-more"><?php print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); ?></div>

I can't figure out what the problem with that line is, but if you remove it it solves the problem, though you also lose the "Read More" links on all non-blog nodes.

Comments

bryrock’s picture

Status: Active » Needs review

I think I have this figured out. Line 47 in node.tpl.php is not following the correct, new Drupal 7 syntax for the link function in which class elements must also be in an array (http://api.drupal.org/api/drupal/includes--common.inc/function/l#comment...).

So <div class="read-more"><?php print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => t('node-readmore-link')))); ?></div>

needs to be rewritten as

<div class="read-more"><?php print l(t('Read more'), 'node/' . $nid, array('attributes' => array('class' => array (t('node-readmore-link'))))); ?></div>

I still don't understand the impact the old code had and/or why it only affected promoted documents, but the above fix solved this issue for me.

bryrock’s picture

I should add that this same "Read more" link code needs to be rewritten in node--blog.tpl.php or else the same problem will occur when blog posts are promoted. See above #1076694-1: Promoting a node to front-page breaks that node's page and theme when viewed as a single node..