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

Категория:

В 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; ?>

Let make Drupal Rock.

Коментари

Нов коментар

Съдържанието на това поле е поверително и няма да бъде показвано публично.
  • Адресите на уеб-страници и имейл-адресите автоматично се конвертират в хипервръзки.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre><img>
  • Редовете и параграфите се оформят автоматично.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".

Повече информация за форматиращите опции

You can change the default for this field in "Comment follow-up notification settings" on your account edit page.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 1 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.