Hi all,
Please can you take a look at this page/node and try to help me figure out where that "View" and "Repeats" tab came from and how I can disable that for viewers?

(Please note that this site is currently under heavy construction!)

I am wondering if it has to do with my custom node-article.tpl.php. (Unfortunately I don't know too much about php... I am basically just moving things around as I need until things are where I want them)

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  
    <!--[if IE]>
  <style>
  
  .field-item img
{
float:right;
margin:15px 0pt 5px 10px;
}

  #image_primary img
{
float:right;
margin:15px 0pt 5px 10px;
}
  
  </style>
  <![endif]-->
  
  </head>
  
  <body>


<div class="node <?php print $node_classes; ?>" id="node-<?php print $node->nid; ?>"><div class="node-inner">



<?php if ($page == 0): ?><!-- this is a list or view, not a single node -->
    <h2 class="title">
      <a href="<?php print $node_url; ?>"><?php print $title; ?></a>
    </h2>
    
      <?php if ($picture) print $picture; ?>

  <?php if ($submitted): ?>
    <div class="submitted">
      <?php print $submitted; ?>
    </div>
  <?php endif; ?>
  
   <?php if ($field_image_primary): ?>
  <div id="image_primary_thumb">
  <?php print $node->field_image_primary[0]['view'] ?>
</div>
 <?php endif; ?>
 
 <?php if ($unpublished): ?>
    <div class="unpublished"><?php print t('Unpublished'); ?></div>
  <?php endif; ?>
  
 
  <?php if (count($taxonomy)): ?>
    <div class="taxonomy"><?php print t(' in ') . $terms; ?></div>
  <?php endif; ?>
  
 

  <?php print $node->content['body']['#value'] ?>
  
<!-- now you want to reverse the logic, so change "endif" to "else" -->
<?php else: ?>
  <?php if ($field_subtitle): ?>
      <div class="field-field-subtitle">
      <?php print $node->field_subtitle[0]['value']; ?>
      </div>
 <?php endif; ?> <!-- end of the code dependent on existence of the subtitle -->
 
     <?php if ($field_image_primary or $field_image_primarytext): ?>
  <div id="image_primary_main">
  <?php print $node->field_image_primary[0]['view'] ?>
  <span class="cutline"><?php print $node->field_image_primarytext[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
  <?php if ($picture) print $picture; ?>
  
    <?php if ($submitted): ?>
    <div class="submitted">
      <?php print $submitted; ?>
    </div>
  <?php endif; ?>
  
  <?php if ($unpublished): ?>
    <div class="unpublished"><?php print t('Unpublished'); ?></div>
  <?php endif; ?>
  
 
  <?php if (count($taxonomy)): ?>
    <div class="taxonomy"><?php print t(' in ') . $terms; ?></div>
  <?php endif; ?>
  
   <?php print $node->content['body']['#value'] ?>
  
   <?php if ($field_image_extra_01 or $field_image_extratext_01): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_01[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_01[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
 <?php if ($field_image_extra_02 or $field_image_extratext_02): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_02[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_02[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
 <?php if ($field_image_extra_03 or $field_image_extratext_03): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_03[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_03[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
 <?php if ($field_image_extra_04 or $field_image_extratext_04): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_04[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_04[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
 <?php if ($field_image_extra_05 or $field_image_extratext_05): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_05[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_05[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
 <?php if ($field_image_extra_06 or $field_image_extratext_06): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_06[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_06[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
  <?php if ($field_image_extra_07 or $field_image_extratext_07): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_07[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_07[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
  <?php if ($field_image_extra_08 or $field_image_extratext_08): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_08[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_08[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
  <?php if ($field_image_extra_09 or $field_image_extratext_09): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_09[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_09[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
  <?php if ($field_image_extra_10 or $field_image_extratext_10): ?>
  <div class="image_extra">
  <?php print $node->field_image_extra_10[0]['view'] ?>
 <span class="cutline"><?php print $node->field_image_extratext_10[0]['view'] ?></span>
</div>
 <?php endif; ?>
 
 

 
  
<?php endif; ?> <!-- the is the end of the whole $page scenario. including the "else" -->

  

  <?php if ($links): ?>
    <div class="links">
      <?php print $links; ?>
    </div>
  <?php endif; ?>

</div></div> <!-- /node-inner, /node -->

</body>
</html>

Thanks a lot in advance for your assistance:)

Christine

Comments

coreyp_1’s picture

Tabs appear because a module puts them there.

"View" is the default tab. It only appears when another tab appears. If you get rid of "Repeats", then "View" will disappear automatically.

"Repeats" was put there by some module, so you need to figure out which one, and do whatever is necessary to suppress the tab. Maybe it is a permission setting for that module?

- Corey

johnnoc’s picture

Hi Christine!

This does not answer your question directly, but I found out where the "Repeats" tab comes from. It comes from the "Date Repeat API" module, which ships as part of the Date module. Probably you can start by looking at the support issues page of the Date module or ask for support there.

I have the Date module installed on one of my sites and I do not use the Date Repeat API, so what I did was to deactivate that module. The Repeats tab is now gone and the "View" tab disappeared in effect.

John
-----------------------------
http://drupalnorge.no
hvor norske brukere, oversettere, utviklere, og leverandører av Drupal samles

talyia’s picture

John,

I disabled the "Date Repeat API" module and that solved it (I don't think I'll have a need for that anyway right now). (YAHOO!) This would have taken me forever to figure out had you not told me that... so THANK you!:) I am SO glad it is not appearing anymore!

Thanks everyone,
Christine

ddlb’s picture

Thank you, Thank you, Thank you...but really, this has been bugging me since day 1.
I had no clue what it was for and where it came from.
My pages look so much better and the tab will not confuse the users any longer.
So i guess this is one of those "usability" things.

defconjuan’s picture

i have the same problem. it's the date module, but nothing on their issues threads addresses this simple issue.

johnnoc’s picture

Hi defconjuan.

If you wish, you can submit an issue on the date module's project page. It's our fault then. We do know about the bug but we did not care to report it.

I'll try to beat you in the race of submitting an issue about it! :-)

John
-----------------------------
http://drupalnorge.no
det offisielle norske nettstedet for Drupal