-
AuthorPosts
-
May 3, 2011 at 11:39 pm #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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 4, 2011 at 11:37 pm #389869ok, 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]
May 8, 2011 at 2:08 pm #390298It works. Thank you tienhc.
egotfrid Friendegotfrid
- Join date:
- December 2010
- Posts:
- 8
- Downloads:
- 0
- Uploads:
- 2
- Thanked:
- 1 times in 1 posts
June 22, 2011 at 6:50 pm #397910I 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 Friendhimangi
- Join date:
- April 2011
- Posts:
- 1406
- Downloads:
- 1
- Uploads:
- 86
- Thanks:
- 21
- Thanked:
- 345 times in 332 posts
June 27, 2011 at 11:40 am #398647Hi egotfrid,
To display read more link irrespective of the author name ,created date etc being displayed, please follow the steps below.
- Go to templates/your_template/html/com_content/category and edit blog_item.php
- Find the following code in the file
- Replace the above code with the following code. I have highlighted the extra code in it.
- Save the file and check if the REad more link shows up as you want it to.
<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><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>1 user says Thank You to himangi for this useful post
-
AuthorPosts
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