Hello all,

I am trying to have webfm attachments at the bottom of this particular content type. However, they are not showing, and in fact the block does not appear and since I am admin I don't understand what is happening.

My template looks like:

<?php
// $Id$

?>
<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">

<?php
/*
 * If node is being displayed as a teaser
 */
?>
<?php if ($teaser) { ?>

  <?php if ($page == 0) { ?>
    <?php if ($title) { ?>
      <h3 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h3>
         	  <p><span STYLE="color:#A0A0A0"><?php  format_date($node->changed, 'custom','m/d/Y'); ?></span></p><br/>
    <?php }; ?>
  <?php }; ?>

  <?php if ($submitted) { ?>
    <span class="submitted"><?php print $submitted?></span> 
  <?php }; ?>

  <div class="content"><?php print $content?></div>
  <div class="clear-block clear"></div>
  <hr/>

<?php
/*
 * Implementation of node
 */
?>
<?php } else { ?>

  <?php if ($page == 0) { ?>
    <?php if ($title) { ?>
      <h3 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h3>
	  <p><span STYLE="color:#A0A0A0"><?php print format_date($node->created, 'custom', "d F Y") ?></span></p><br/>
    <?php }; ?>
  <?php }; ?>

  <div class="content">

<?php $user = $GLOBALS['user']; ?>
<?php if (in_array('customer', $user->roles) != '' OR $user->name = 'admin') : ?>

<?php
/*
 * Print out some node records:
 * Implementation of node.tpl API for $submitted, $node->nid and $node->changed
 */
?>
 <span class="submitted">Document ID#:<?php print $node->nid ?></span> <br>

<?php 
	echo '<span class="submitted">Last updated: ';
	$output2 .= format_date($node->changed, 'custom','m/d/Y');
	echo $output2.'</span><br/>';
?>
<?php if ($submitted) { ?>
    <span class="submitted"><?php print $submitted?></span> <br>
<?php }; ?>
<?php endif; ?>
 
<?php
/*
 * Introduction CCK field
 * field_kb_introduction
 */
?>
 <div id="kb" class="field-label"><h3>Introduction:</h3></div>
 <div id="kb" class="field-items">
 <?php foreach ($field_kb_introduction as $intro) { ?>
     <?php print content_format('field_kb_introduction', $intro, 'default' ) ?>
 <?php } ?>
 </div>
 
<?php
/*
 * More information CCK field
 * field_kb_mre_info
 */
?>
 <div id="kb" class="field-label"><h3>More Information:</h3></div>
 <div id="kb" class="field-items">
 <?php foreach ($field_kb_mre_info as $more) { ?>
     <?php print content_format('field_kb_mre_info', $more, 'default' ) ?>
 <?php } ?>
 </div>
 
<?php
/*
 * Related articles CCK field
 * field_kb_related
 */
?>
 <div id="kb" class="field-label"><h3>Related Articles:</h3></div>
 <div class="field-items">
 <?php foreach ($field_kb_related as $related) { ?>
     <?php print content_format('field_kb_related', $related, 'default' ) ?>
 <?php } ?>
 </div>
 
 <?php
/*
 * Print out terms that have been assigned to this node.
 * Implementation of node.tpl API
 */
?>
  <?php if ($terms) { ?>
	 <h5>Keywords:</h5>
	  <span class="terms">
		  <?php print $terms?>
	  </span> <br>
 <?php }; ?>
<p>&nbsp;</p>

  <div class="clear-block clear"></div>
  </div>
  <div class="clear-block clear"></div>
<?php } ?>
</div>

Anyone have an idea?

Comments

julien.reulos’s picture