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.
First of all this module is a great idea. But for me it doesn't work.
Drupal 6.15 fresh install. After instaling your module I renamed example_block.tpl.php to block.tpl.php and put this file to my theme folder. I have Block Title Link settings section with "Title Path" field in block settings page. After I put url and hit save button, block's title becomes a link, but link is
mylocalsite/admin/build/<? print $block->title_link ?>
if I on mylocalsite/admin/build/block
or
mylocalsite/node/<? print $block->title_link ?>
if I'm on mylocalsite/node/2
tested on Garland - the same. Please help
Comments
Comment #1
AlexanderPop CreditAttribution: AlexanderPop commentedI used code from http://drupal.org/node/662294 post and it works.
Comment #2
geoff3jones CreditAttribution: geoff3jones commentedyup, had this issue too but realise that the clue is in the error notice that it is thinking that
<? ....?>
is the link it is meant to be linking to and is the same for all of the blocks you enable, this module on. Take a peak at the php of the example on line 5 the<? print $block->title_link ?>
is slightly different to the other time that this command pops up (line 9)<?php print $block->subject; ?>
now it should be easy to spot that the thing that is stopping the block working with it super desirable slickness is the missing letters 'php' after the initial<?
that way the line is read as php instead of plain txt try the following snippet adjustmentthis fixed it for me hope it does for you too.
Comment #3
ngmaloney CreditAttribution: ngmaloney commentedNew release should resolve. Be sure to update tpl.php