Hi,

I have overwritte my node.tpl.php of one of my flexinode. I rename the file to node node-flexinode-1.tpl.php. I have remove the variable $content and replace it by each of my variable. This way I have better flexibility on the theme of my flexinode.

My problem is that I also print the teaser of this flexinode in the profile of each user. Since I don't have my variable $content in my file node-flexinode-1.tpl.php he is not printing only the teaser but all the content that I put in my file. Is there a way to use a different file like the node-flexinode-1.tpl.php that will give me the theme of my flexinode teaser but only for profile of each user.

Hope I'm not too confusing.

Thank you

Nicholas

Comments

fourchette’s picture

Is there a way to distinguish in node.tpl.php if we are it's a summary/teaser or it's the full content? This way I could resolve my problem.

If ($teaser) {} else {}

Is there a variable $teaser or $summary?

Thank you

Nicholas

magico’s picture

<?php if ($page == 0): /* teaser */?>
<div class="node-flexinode-6-teaser"></div>
<?php else: /* full */ ?>
<div class="node-flexinode-6"></div>
<?php endif; ?>

----------
Fernando Silva
Openquest - Sistemas de Informação, Lda