Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Can you please help me with this:
I'm using your Grunge Drupal theme for a site currently under development.
If I put stories (blog posts) to the front page, print $node_url will have no effect, i.e. the title is not linked to the content though it is in node.tpl.php as usual:
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
Please let me know how I could solve this.
Best,
Csaba
Comment | File | Size | Author |
---|---|---|---|
#1 | 1216472-1-Fix-node-title-urls-in-pages.patch | 733 bytes | szantog |
Comments
Comment #1
szantog CreditAttribution: szantog commentedAnd some fix
Comment #2
balintk CreditAttribution: balintk commentedActually, the patch in #1 doesn't solve the problem. The condition is correct, because 0 evaluates to FALSE. After all you should consider the changes what the patch introduces, because the code will be more readable and obvious this way.
The reason of this problem described here:
#1217028: Wrong jQuery selector brakes the node title links on the frontpage