Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • annabelr Friend
    #147453

    Hi there,

    I’m not using the syndicate module as intended in JA megamenu. Instead i’m displaying it in a module with right position.
    I figured that to change the way the module is displayed i had to change JA Telline template for the module

    <?php // no direct access
    defined(‘_JEXEC’) or die(‘Restricted access’); ?>
    <a class=”megaitem” href=”<?php echo $link ?>”><span>RSS</span></a>

    which i did to

    <?php // no direct access
    defined(‘_JEXEC’) or die(‘Restricted access’); ?>
    <a href=”<?php echo $link ?>”>
    <?php echo JHTML::_(‘image.site’, ‘livemarks.png’, ‘/images/M_images/’, NULL, NULL, ‘feed-image’); ?> <span><?php echo $params->get(‘text’) ?></span></a>

    which is a copy/paste from Joomla’s default template for the syndicate module.

    BUT… The livemarks.png isn’t displayed instead i get an RSS icon that i can’t even locate.
    see there : http://cohabitat.fr/JA/accueil/agenda.html
    I guess something must be wrong with the
    echo JHTML::_(‘image.site’, ‘livemarks.png’, ‘/images/M_images/’, NULL, NULL, ‘feed-image’);
    bit, given that the template isn’t located where it ought to be (modules/mod_syndicate). But i don’t know what.
    What should i replace it with to actually display the image?
    OR (better still, since i could decide which template to use according to where the module is displayed – ie. Megamenu or other position) Is there a way to revert to Joomla’s default without altering JA Telline template for that module?

    Thx for your answers.

    Saguaros Moderator
    #329134

    You can use these code
    [PHP]<img src=”<?php echo JURI::base()?>/images/M_images/livemarks.png” title=”feed-image”>[/PHP]
    to replace
    [PHP]echo JHTML::_(‘image.site’, ‘livemarks.png’, ‘/images/M_images/’, NULL, NULL, ‘feed-image’);[/PHP]

    annabelr Friend
    #329213

    Thx Tienhc
    It did the trick!

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

This topic contains 3 replies, has 2 voices, and was last updated by  annabelr 14 years, 9 months ago.

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