-
AuthorPosts
-
Armenos Lumen Leviticus Emmanuel Friend
Armenos Lumen Leviticus Emmanuel
- Join date:
- September 2014
- Posts:
- 13
- Downloads:
- 86
- Uploads:
- 4
- Thanks:
- 6
May 5, 2014 at 3:21 pm #197415Hi,
How can I add functionality to JA Content Slider module?
I would like make the module title clickable, to link to category or a menu item?
ThanksNinja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 6, 2014 at 3:54 pm #533851This way will help you to change the module title clickable link to category.
+ Go to Admin site -> Module Manager -> JA Content Slider module and set Linked Titles: Yes
+ Open templates/ja_obelisk/html/mod_jacontentslider/default.php file
Change
<?php zecho ($params->get( 'link_titles' ) ) ? '<a href="'.$link.'" title="">'.$contn->title.'</a>' : $contn->title;?>
To
<?php
$catslug = $contn->catid . ':' . $contn->category_alias;
$cat_link = JRoute::_(ContentHelperRoute::getArticleRoute($catslug, $contn->catid));
echo ($params->get( 'link_titles' ) ) ? '<a href="'.$cat_link.'" title="">'.$contn->title.'</a>' : $contn->title;?>Armenos Lumen Leviticus Emmanuel FriendArmenos Lumen Leviticus Emmanuel
- Join date:
- September 2014
- Posts:
- 13
- Downloads:
- 86
- Uploads:
- 4
- Thanks:
- 6
May 7, 2014 at 1:24 pm #534001I can’t find the code in templates/ja_obelisk/html/mod_jacontentslider/default.php file
The code is even not found in: modules/mod_jacontentslider filesI have modyfed helper.php and mod_jacontentslider.xml into modules/mod_jacontentslider path to get random option: see http://www.joomlart.com/forums/topic/ja-content-slider-modul-featured-articles-random-articles/
1. now I need to be able to link to category or a menu-item (manual)
2. and to be able to link to anything that the image is linked to from the articleSee the zip files in attachment
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 8, 2014 at 9:48 am #534161I just checked and still see the templates/ja_obelisk/html/mod_jacontentslider/default.php file in JA Obelisk template. If possible, please pm me admin login and FTP credentials of your site. I will help you out.
Armenos Lumen Leviticus Emmanuel FriendArmenos Lumen Leviticus Emmanuel
- Join date:
- September 2014
- Posts:
- 13
- Downloads:
- 86
- Uploads:
- 4
- Thanks:
- 6
May 9, 2014 at 9:18 am #534321Thnx,
For this project I’ve made an alternative layout “default-okn”.
You can find this file in “/templates/ja_obelisk/html/mod_jacontentslider” ‘default-okn.php’
Looking forward for the solution.I’ve send you the login and FTP credentials, see PM
Thanks again.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 12, 2014 at 4:47 am #534576@acreacom: I just enabled Title and Linked Titles options in Nieuwe leden module and modified the source code to link Category and Menu Items on the title.
Here is the change in title items.
In the templates/ja_obelisk/html/mod_jacontentslider/default-okn.php file,
Change
<?php if( $params->get( 'showtitle' ) ) { ?>
<div class="ja_slidetitle">
<?php echo ($params->get( 'link_titles' ) ) ? '<a href="'.$link.'" title="">'.$contn->title.'</a>' : $contn->title;?>
</div>
<?php } ?>
To
<?php if( $params->get( 'showtitle' ) ) {
$catslug = $contn->catid . ':' . $contn->category_alias;
$cat_link = JRoute::_(ContentHelperRoute::getArticleRoute($catslug, $contn->catid));
?>
<div class="ja_slidetitle">
<?php echo ($params->get( 'link_titles' ) ) ? '<a href="'.$cat_link.'" title="">'.$contn->title.'</a>' : $contn->title;?>
</div>
<?php } ?>The change was reflected in frontend:
Please check your site again and let me know if it helps.
Armenos Lumen Leviticus Emmanuel FriendArmenos Lumen Leviticus Emmanuel
- Join date:
- September 2014
- Posts:
- 13
- Downloads:
- 86
- Uploads:
- 4
- Thanks:
- 6
May 12, 2014 at 8:24 am #534596Hi, @ninja Lead
It still doesn’t work.1. I want to be able to link from the module title
> in some cases to one category where the articels presented from
> in some cases to the menu item (just a link) (! this one is the most important)
this only for the module title2. it must be possible to make the link work from the artikel, see those pictures have there own links, but when you click on it it goes to the actikel. I don’t want to go to the articel, I whant to be linked to some url or a link that is given to the pic in the articel.
see the attachment
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 12, 2014 at 2:48 pm #534646I am sorry, my suggestion above just customises the (link) title of each articles in JA Content Slider module, not the module title as you mean.
The module title is supported by default Joomla. To add the link like that, I am afraid it needs heavy customization which is beyond scope of JA support.
Armenos Lumen Leviticus Emmanuel FriendArmenos Lumen Leviticus Emmanuel
- Join date:
- September 2014
- Posts:
- 13
- Downloads:
- 86
- Uploads:
- 4
- Thanks:
- 6
May 14, 2014 at 11:10 am #535103What about point 2. this is a joomlart module?
2. it must be possible to make the link work from the artikel, see those pictures have there own links, but when you click on it it goes to the actikel. I don’t want to go to the articel, I whant to be linked to some url or a link that is given to the pic in the articel.
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
AuthorPostsViewing 10 posts - 1 through 10 (of 10 total)This topic contains 10 replies, has 2 voices, and was last updated by Ninja Lead 10 years, 6 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum