Keyword

Edit btn not shown when article title set to hide

  • Ronald de Vries
  • Ronald de Vries's Avatar Topic Author
  • Offline
  • New Member
More
12 years 9 months ago - 12 years 9 months ago #60667 by Ronald de Vries
Edit btn not shown when article title set to hide was created by Ronald de Vries
When I hide the article title in the category settings, the edit button is gone too.
As far as I can understand the code it confirms this behavior. But the question is why?

I want to hide the title but show the edit button.
<?php if($this->item->params->get('itemTitle')): ?>
  <!-- Item title -->
  <h2 class="itemTitle">
    <?php if(isset($this->item->editLink)): ?>
      <!-- Item edit link -->
      <span class="itemEditLink">
        <a class="modal" rel="{handler:'iframe',size:{x:990,y:550}}" href="<?php echo $this->item->editLink; ?>">
          <?php echo JText::_('K2_EDIT_ITEM'); ?>
        </a>
      </span>
    <?php endif; ?>
                        
    <?php echo $this->item->title; ?>
      <?php if($this->item->params->get('itemFeaturedNotice') && $this->item->featured): ?>
        <!-- Featured flag -->
        <span>
          <sup>
            <?php echo JText::_('K2_FEATURED'); ?>
          </sup>
        </span>
      <?php endif; ?>

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum