-
AuthorPosts
-
August 4, 2011 at 9:06 pm #167087
Is there a way to add a “read more….” or a link of each ja bulletin above the articles?
I want in that way the visitors after viewing the titles of the articles of the bulletin, to browse
via a “read more” button or link to all the article of the category, not only those who are listed
in the ja bulletin….For example
pic1 Title 1 etc
pic2 Title 2 etc
……read more…….
Thank you.
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 9, 2011 at 3:26 am #405017Hi dzamanis,
I am not much sure on your ideal, in the JA Bulletin you already have the urls to link directly to each article, could you please explain this a little bit more details ?
Sherlock FriendSherlock
- Join date:
- September 2014
- Posts:
- 11453
- Downloads:
- 0
- Uploads:
- 88
- Thanks:
- 221
- Thanked:
- 2478 times in 2162 posts
August 12, 2011 at 9:34 am #405902<em>@dzamanis 257633 wrote:</em><blockquote>Is there a way to add a “read more….” or a link of each ja bulletin above the articles?
I want in that way the visitors after viewing the titles of the articles of the bulletin, to browse
via a “read more” button or link to all the article of the category, not only those who are listed
in the ja bulletin….For example
pic1 Title 1 etc
pic2 Title 2 etc
……read more…….
Thank you.</blockquote>
hi dzamanis,
It is strange but you can try as following
open the file of modulesmod_jabulletinmod_jabulletin.php, you would see this line of code[php]
$showreadmore = $params->get(‘show_readmore’,0);[/php]
change it to
[php]
$showreadmore = $params->get(‘show_readmore’,0);
if(!is_array($params->get ( ‘category’ )) && $params->get ( ‘category’ ) !== null){
$catid = $params->get ( ‘category’ );}
[/php]Then you open the file of templatesja_teline_iiihtmlmod_jabulletindefault.php you would see the close div tag at the bottom page you add this code at above that close div tag
[PHP]
<?php
if(isset($catid) && $catid !== “”){
$link = ContentHelperRoute::getCategoryRoute($catid);
//$link = ‘index.php?option=com_content&view=category&id=’.$catid;
$link = JRoute::_($link);?>
<a href=”<?php echo $link; ?>” >
Read more…
</a>
<?php } ?>[/PHP]
hope this would help !
August 12, 2011 at 2:57 pm #405967Everything ik OK. I feel grateful about your job! Thank you very much! I really appreciate it.
<em>@Dat Hoang 259295 wrote:</em><blockquote>hi dzamanis,
It is strange but you can try as following
open the file of modulesmod_jabulletinmod_jabulletin.php, you would see this line of code[php]
$showreadmore = $params->get(‘show_readmore’,0);[/php]
change it to
[php]
$showreadmore = $params->get(‘show_readmore’,0);
if(!is_array($params->get ( ‘category’ )) && $params->get ( ‘category’ ) !== null){
$catid = $params->get ( ‘category’ );}
[/php]Then you open the file of templatesja_teline_iiihtmlmod_jabulletindefault.php you would see the close div tag at the bottom page you add this code at above that close div tag
[PHP]
<?php
if(isset($catid) && $catid !== “”){
$link = ContentHelperRoute::getCategoryRoute($catid);
//$link = ‘index.php?option=com_content&view=category&id=’.$catid;
$link = JRoute::_($link);?>
<a href=”<?php echo $link; ?>” >
Read more…
</a>
<?php } ?>[/PHP]
hope this would help !</blockquote>
-
AuthorPosts
This topic contains 4 replies, has 2 voices, and was last updated by dzamanis 13 years, 4 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum