DrupalBin
Submit Code
About
Recent Posts
How do i make this work in D6 (I have to clear the cache everytime to see the tabs)
2 hours 47 sec
ago
Code
2 hours 55 min
ago
Code
6 hours 54 min
ago
oopsie in modules/taxonomy/taxonomy.test
8 hours 53 min
ago
more
Tags
CCK
drupal
fapi
jquery
menu
module
Panels
php
simpletest
test
theme
views
more tags
User login
Log in using OpenID:
What is OpenID?
Username:
*
Password:
*
Create new account
Request new password
Log in using OpenID
Cancel OpenID login
Home
Fix for if a teaser in a node template
View
Download
Fix
This fix will not be saved to the database until you submit.
Summary:
Tags:
Any tags you'd like to associate with your code, delimitered by commas (example: Views, CCK, Module, etc).
Source code:
*
<?php if ($teaser): ?> <!-- this displays when teaser of this node type is called --> <h2 class="title"> <a href="<?php print $node_url; ?>"><?php print $title; ?></a> </h2> <!-- any code you like --> <?php endif; ?> <?php if (!$teaser): ?> <!-- this displays when it's not a teaser --> <h2 class="title"> <a href="<?php print $node_url; ?>"><?php print $title; ?></a> </h2> <!-- any code you like --> <?php endif; ?>
Syntax highlighting mode:
ActionScript
ColdFusion
Diff
Drupal
Drupal 5
Drupal 6
HTML
Javascript
MySQL
PHP
Python
robots.txt
SQL
Text
Select the syntax highlighting mode to use.