test
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • praathand Friend
    #146886

    On our frontpage we want to use the contentslider to show selected articles as usual. But instead of a click resulting in showing the chosen article, we would like a category blog layout to be shown.

    Clicking on a contentslider element result in opening for example:
    /index.php?option=com_content&view=article&id=64:workshops&catid=42:workshops&Itemid=76

    Can this link be changed into:
    /index.php?option=com_content&view=category&layout=blog&id=42&Itemid=76

    I’m everything but an expert on this stuff, but it seems that all the necessary variables are known. It ‘just’ seems that the link has to be composed in a different way.

    Saguaros Moderator
    #326954

    Hello praathand!

    Please open the file: /modules/mod_ja_contentslide/tmpl/default.php and try to find codes:
    [PHP]$link = modJaContentslideHelper::articleLink( $contn );[/PHP]
    you replace them by :
    [PHP]$link = JRoute::_(ContentHelperRoute::getCategoryRoute($contn->catslug, $contn->sectionid)); [/PHP]

    Good luck

Viewing 2 posts - 1 through 2 (of 2 total)

This topic contains 2 replies, has 2 voices, and was last updated by  Saguaros 15 years, 1 month ago.

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