Как да премахнем хипер линка от title на sticky node?

Posted by Stanislav Nedelchev on Fri, 11/07/2008 - 12:00

В Drupal това може да стане лесно по следния начин:
Като направим следната промяна в node.tpl.php
Там, където се принтира title заменете с този ред:

<?php if ($sticky) { ?> <h2 class="title"> 
<?php print $title; ?> 
</h2> <?php } else 
  { ?> <h2 class="title"><a href="<?php print $node_url?> "> 
<?php print $title?></a></h2><?php } ?>
  <?php endif; ?>
<php>
 
Let make Drupal Rock.

Add new comment

Refresh Type the characters you see in this picture. Type the characters you see in the picture; if you can't read them, submit the form and a new image will be generated. Not case sensitive.  Switch to audio verification.