Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • dzamanis Friend
    #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 Friend
    #405017

    Hi 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 Friend
    #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 !

    dzamanis Friend
    #405967

    Everything 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>

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

This topic contains 4 replies, has 2 voices, and was last updated by  dzamanis 12 years, 9 months ago.

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