Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • kennyd Friend
    #163553

    I am using joomla 1.5, when I disable author name,creation date, etc, the “read more” does not show, how to fix it please. I did read some of the posting in this forum, but it does not work.
    If I make the author name or creation date, etc, any of such to be active, then “read more” button appear.

    Saguaros Moderator
    #389869

    ok, this is issue of the template, i reported this to dev team.

    please open the file: htmlcom_contentfrontpagedefault_item.php and find the following code:

    [PHP]
    <?php if ($this->item->params->get(‘show_readmore’) && $this->item->readmore) : ?>
    <p class=”readmore”>
    <a href=”<?php echo $this->item->readmore_link; ?>” title=”<?php echo $this->escape($this->item->title); ?>”>
    <?php if ($this->item->readmore_register) : ?>
    <span><?php echo JText::_(‘Register to read more…’); ?></span>
    <?php else : ?>
    <span><?php echo JText::_(‘Read more…’); ?></span>
    <?php endif; ?>
    </a>
    </p>
    <?php endif; ?>

    </div>
    <?php endif; ?>
    <!– //Article tools –>

    [/PHP]

    replace by:

    [PHP]

    </div>
    <?php endif; ?>
    <!– //Article tools –>

    <?php if ($this->item->params->get(‘show_readmore’) && $this->item->readmore) : ?>
    <p class=”readmore”>
    <a href=”<?php echo $this->item->readmore_link; ?>” title=”<?php echo $this->escape($this->item->title); ?>”>
    <?php if ($this->item->readmore_register) : ?>
    <span><?php echo JText::_(‘Register to read more…’); ?></span>
    <?php else : ?>
    <span><?php echo JText::_(‘Read more…’); ?></span>
    <?php endif; ?>
    </a>
    </p>
    <?php endif; ?>

    [/PHP]

    kennyd Friend
    #390298

    It works. Thank you tienhc.

    egotfrid Friend
    #397910

    I was happy to find this fix but see that it only corrects the problem on the home page. I’m also using Category blog layout for another page, and the Read More does not show unless I turn on Author Name or Creation Date. What can I change to make Read More show without having either Author Name or Creation Date turned on for Category blog layout? Thanks in advance for your help.

    himangi Friend
    #398647

    Hi egotfrid,

    To display read more link irrespective of the author name ,created date etc being displayed, please follow the steps below.

    1. Go to templates/your_template/html/com_content/category and edit blog_item.php
    2. Find the following code in the file
    3. <blockquote>if (
      ($this->item->params->get(‘show_create_date’))
      || (($this->item->params->get(‘show_author’)) && ($this->item->author != “”))
      || (($this->item->params->get(‘show_section’) && $this->item->sectionid) || ($this->item->params->get(‘show_category’) && $this->item->catid))
      || ($this->item->params->get(‘show_pdf_icon’) || $this->item->params->get(‘show_print_icon’) || $this->item->params->get(‘show_email_icon’))
      || ($this->item->params->get(‘show_url’) && $this->item->urls)
      ) :</blockquote>

    4. Replace the above code with the following code. I have highlighted the extra code in it.
    5. <blockquote> if (
      ($this->item->params->get(‘show_create_date’)) || ($this->item->params->get(‘show_readmore’) && $this->item->readmore)
      || (($this->item->params->get(‘show_author’)) && ($this->item->author != “”))
      || (($this->item->params->get(‘show_section’) && $this->item->sectionid) || ($this->item->params->get(‘show_category’) && $this->item->catid))
      || ($this->item->params->get(‘show_pdf_icon’) || $this->item->params->get(‘show_print_icon’) || $this->item->params->get(‘show_email_icon’))
      || ($this->item->params->get(‘show_url’) && $this->item->urls)
      ) :</blockquote>

    6. Save the file and check if the REad more link shows up as you want it to.
Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 4 voices, and was last updated by  himangi 13 years, 5 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum