I cant figure out what is going on here. For all of my node teasers the title is displayed along with a body teaser, but no author name is displayed...unless you view the full node.
However i have one page that displays node teasers and it does show the author name and posting date. I want all my teasers to show this. Have i deleted something i shouldnt??

the view that shows the author name in teaser is using formblock...thats the only difference i can find.

would appreciate any help or suggestions

Comments

mtsanford’s picture

No. !$teaser means NOT teaser, so our node tpl.php would show it if its not showing the teaser.

What do you mean "However i have one page that displays node teasers" What is this page? It is a Views module page display or what? You're not giving much info here.

If what you want it to have a page that displays node teasers, and format the information to just what you like, you can use the Views 2 module, or edit your node.tpl.php to do what you like.

calebm12’s picture

Sorry. Let me try again.

I have multiple views. All of these views are set to display with a row style of node. When i look at the view you see the title and the body teaser as well as links. There is no author information (such as who made the node and at what time). If you click on the title you see the full node and you then see the author information. All of my views are set like this. However one of them will display the author information for the node listings. The only difference i can find is that this view also utilizes formblock module. What i am looking to do is display the author information in the node preview display. I am not sure what to edit to show this.

calebm12’s picture

maybe i am wrong but should the following in node.tpl.php

<?php if (!$teaser): ?>
	<?php if ($submitted): ?>
      <div class="metanode"><p><?php print t('By ') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p>

be

<?php if (!$teaser): ?>
  <div class="metanode"><p><?php print t('By ') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p>
	<?php if ($submitted): ?>
      <div class="metanode"><p><?php print t('By ') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p>
calebm12’s picture

i see thats wrong. here is my whole code

<?php if ($page == 0) { ?><h2 class="nodeTitle"><a href="<?php print $node_url?>"><?php print $title?></a>
	
	<?php global $base_url;
	if ($sticky) { print '<img src="'.base_path(). drupal_get_path('theme','marinelli').'/img/sticky.gif" alt="'.t('sticky icon').'" class="sticky" />'; } ?>
	</h2><?php }; ?>
    
	<?php if (!$teaser): ?>
	<?php if ($submitted): ?>
      <div class="metanode"><p><?php print t('By ') .'<span class="author">'. theme('username', $node).'</span>' . t(' - Posted on ') . '<span class="date">'.format_date($node->created, 'custom', "d F Y").'</span>'; ?></p>
	  

	  
	  </div> 
    <?php endif; ?>
    <?php endif; ?>
    
    <div class="content">
	
	
	<?php print $content?></div>