test
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • htomek Friend
    #184828

    I’m using the JA Newspro module for showing some articles from different categories in the front page. And, these articles are grouped by category, and the header for each category (category name) is actually link to that particular category. But, I would like to add the very same link under the links (see screenshot attached).

    I believe a I need to add it somewhere in the mod_janewspro/tmpl/default/blog_item.php file, but I’m not 100% sure where. Link should have same visual appearance as Read more link which is placed under the picture if turned on in the module settings.

    Thanks.

    htomek Friend
    #482979

    <em>@htomek 359463 wrote:</em><blockquote>I’m using the JA Newspro module for showing some articles from different categories in the front page. And, these articles are grouped by category, and the header for each category (category name) is actually link to that particular category. But, I would like to add the very same link under the links (see screenshot attached).

    I believe a I need to add it somewhere in the mod_janewspro/tmpl/default/blog_item.php file, but I’m not 100% sure where. Link should have same visual appearance as Read more link which is placed under the picture if turned on in the module settings.

    Thanks.</blockquote>

    Forgot to add a screenshot.


    1. janewspro
    Wall Crasher Developer
    #483410

    Hi htomek,

    I am not sure about your request.
    Please provide some information about your site.
    What template you are using?

    I will provide tips on how to customize on JA Teline III. If you are using other template, please update the correct template name in the path. You may try with these steps:

    1. modulesmod_janewsprotmpltelineiiiblog_item.php
    2. Find and copy the category link. It should be inside the <div class=”ja-zincat clearfix”> block

    <a href="<?php echo $cat->link?>" title="<?php echo trim(strip_tags($cat->description));?>">
    <span><?php echo $cat->title;?></span>
    </a>

    3. Look for More links. It should be belows <strong><?php echo JTEXT::_(‘MORE’)?></strong> tag. Add paste the category link above.

    <ul class="jazin-links">
    <?php foreach ($rows as $row){?>
    <li>
    <span <?php if($showtooltip){?> class="editlinktip jahasTip" title="<?php echo trim(strip_tags($row->title), '"'); ?>::<?php echo htmlspecialchars($row->image.$row->introtext)?>"<?php }?>>
    <a href="<?php echo $row->link; ?>">
    <?php echo $row->title; ?>
    </a>
    </span>
    </li>
    <?php }?>

    <li>
    <span <?php if($showtooltip){?> class="editlinktip jahasTip" title="<?php echo trim(strip_tags($row->title), '"'); ?>::<?php echo htmlspecialchars($row->image.$row->introtext)?>"<?php }?>>
    <a href="<?php echo $cat->link?>" title="<?php echo trim(strip_tags($cat->description));?>">
    <span><?php echo $cat->title;?></span>
    </a>
    </span>

    </li>
    </ul>

    Now, save, clear cache and try again.

    Regards

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

This topic contains 3 replies, has 2 voices, and was last updated by  Wall Crasher 11 years, 9 months ago.

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