Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • Armenos Lumen Leviticus Emmanuel Friend
    #197415

    Hi,
    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?
    Thanks

    Ninja Lead Moderator
    #533851

    This 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 Friend
    #534001

    I 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 files

    I 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 article

    See the zip files in attachment


    Ninja Lead Moderator
    #534161

    I 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 Friend
    #534321

    Thnx,
    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 Moderator
    #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.


    1. front_site
    Armenos Lumen Leviticus Emmanuel Friend
    #534596

    Hi, @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 title

    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.

    see the attachment


    1. okn-web-link-menu
    Ninja Lead Moderator
    #534646

    I 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 Friend
    #535103

    What 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 Moderator
    #535243

    Its true that JA Content Slider module doesn’t support the options you mentioned. I have forwarded your request to our development team here. Anyway, I am afraid for not being in the position to confirm on adding those features.

Viewing 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