Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • wan fadli Developer
    #164231

    Dear JA,

    I really like the JA template because it comes with the K2 Extension. 😀 , now i have the problem with my K2 extension.

    I published the K2 content module (with the rss icon enabled at the bottom) at the content mass-top user module (style for content-mass-top already change to “jaxhtml”).

    it is possible for me to change/move the rss icon inside the header module instead at the bottom of the module. like image attached. If yes, can show me how..

    Template : JA Portfolio


    1. rss
    khoand Friend
    #392207

    Hi,
    Could you give me a link to your page that you want to change?

    wan fadli Developer
    #392561

    <em>@khoand 241728 wrote:</em><blockquote>Hi,
    Could you give me a link to your page that you want to change?</blockquote>

    Hi Khoand.. thank for replying..

    here is my demo website for your reference:

    http://demo-k2.mte.org.my/

    There’s the rss icon at the bottom of the K2 Content Module module. And I want to move the rss icon to the right of h3 header.

    can u give the solution.?

    thanks..

    khoand Friend
    #392899

    You replace this code from modulesmod_k2_contenttmplDefaultdefault.php


    <div class="k2FeedIcon">
    <a href="<?php echo JRoute::_('index.php?option=com_k2&view=itemlist&format=feed&moduleID='.$module->id);?>" title="<?php echo JText::_('Subscribe to this RSS feed'); ?>">
    <span><?php echo JText::_('Subscribe to this RSS feed'); ?></span>
    </a>
    <div class="clr"></div>
    </div>

    with


    <script type="text/javascript">
    var k2FeedIcon = document.createElement("div");
    k2FeedIcon.addClass("k2FeedIcon");
    k2FeedIcon.setAttribute("style","position: absolute; right: 0px; top: 0px; float: right; padding: 0px;");
    var a = document.createElement("a");
    a.setAttribute("href", "<?php echo JRoute::_('index.php?option=com_k2&view=itemlist&format=feed&moduleID='.$module->id);?>");
    a.setAttribute("title", "<?php echo JText::_('Subscribe to this RSS feed'); ?>");
    k2FeedIcon.appendChild(a);
    var span = document.createElement("span");
    var text = document.createTextNode("<?php echo JText::_('Subscribe to this RSS feed'); ?>");
    span.appendChild(text);
    a.appendChild(span);
    var clr = document.createElement("div");
    clr.addClass("clr");
    k2FeedIcon.appendChild(clr);
    $("Mod<?php echo $module->id; ?>").getElementsByTagName("h3")[0].appendChild(k2FeedIcon);
    </script>

    wan fadli Developer
    #392944

    Not working Khoand :confused:

    khoand Friend
    #393156

    Could you give me username+password of ftp and backend to check it?

    wan fadli Developer
    #393495

    <em>@khoand 242952 wrote:</em><blockquote>Could you give me username+password of ftp and backend to check it?</blockquote>

    i pm u the details… thanks.. 🙂

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

This topic contains 7 replies, has 2 voices, and was last updated by  wan fadli 13 years, 6 months ago.

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