Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • milsirhc Friend
    #164021

    Hi,

    My current menu contains 3 categories.
    – A – site.com/a
    – B – site.com/b
    – C – site.com/c

    How do I make the logo link dynamic such that when I click B, the logo link is site.com/b, and when i click on menu C, the logo link is site.com/c.

    thangnn1510 Friend
    #391423

    Could you give us your site link?

    milsirhc Friend
    #392028

    Pm’ed you!

    thangnn1510 Friend
    #392035

    Hi milsirhc!

    I think that is possible. Please send the login FTP/Admin to the site via your support ticket IJE-249-74598 or via PM. I’ll try for you.

    milsirhc Friend
    #392917

    PM’ed. Thanks!

    thangnn1510 Friend
    #392931

    I have changed this for you by changing the code in header.php of templates/ja_rasite/block to:

    <?php
    /*
    # ------------------------------------------------------------------------
    # Ja Rasite Template for Joomla 1.6
    # ------------------------------------------------------------------------
    # Copyright (C) 2004-2009 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
    # @license - Copyrighted Commercial Software
    # Author: J.O.O.M Solutions Co., Ltd
    # Websites: http://www.joomlart.com - http://www.joomlancers.com
    # This file may not be redistributed in whole or significant part.
    # ------------------------------------------------------------------------
    */

    ?>

    <?php
    $app = & JFactory::getApplication();
    $siteName = $app->getCfg('sitename');
    if ($this->getParam('logoType', 'image')=='image'): ?>

    <?php
    $option = JRequest::getVar('option');
    $view = JRequest::getVar('view');
    $Itemid = JRequest::getVar('Itemid');
    $catid = JRequest::getVar('catid');
    $link = "";
    if(($option == "com_jreviews")&&($view == "category")){
    $link = "index.php?option=com_jreviews&view=category&Itemid=".$Itemid;
    }

    if($view == "article"){
    switch($catid){
    case 7:
    case 9:
    $link = "index.php?option=com_jreviews&view=category&Itemid=105";
    break;

    case 10:
    case 11:
    $link = "index.php?option=com_jreviews&view=category&Itemid=147";
    break;

    case 12:
    case 13:
    $link = "index.php?option=com_jreviews&view=category&Itemid=148";
    break;

    case 14:
    case 15:
    $link = "index.php?option=com_jreviews&view=category&Itemid=149";
    break;

    case 16:
    case 17:
    $link = "index.php?option=com_jreviews&view=category&Itemid=150";
    break;

    case 18:
    case 19:
    $link = "index.php?option=com_jreviews&view=category&Itemid=151";
    break;

    case 2:
    default:
    $link = "";

    }
    }

    ?>
    <h1 class="logo">
    <a href="<?php echo $link; ?>"><img src="/images/logo.png" /></a>
    </h1>
    <?php else:
    $logoText = (trim($this->getParam('logoText'))=='') ? $siteName : JText::_(trim($this->getParam('logoText')));
    $sloganText = JText::_(trim($this->getParam('sloganText'))); ?>
    <div class="logo-text">
    <h1><a href="/" title="<?php echo $siteName; ?>"><span><?php echo $logoText; ?></span></a></h1>
    <p class="site-slogan"><?php echo $sloganText;?></p>

    </div>
    <?php endif; ?>

    <?php if($this->countModules('search')) : ?>
    <div id="ja-search">
    <jdoc:include type="modules" name="search" />
    </div>

    <?php endif; ?>

    <?php if ($this->countModules('top-panel')) { ?>
    <div id="ja-top-panel" >
    <jdoc:include type="modules" name="top-panel" style="JAxhtml" />
    </div>
    <?php } ?>

    milsirhc Friend
    #393178

    You are a legend mate! 🙂

    Thanks for putting so much effort in this. Much appreciated.

    Btw, is there anyway to make this code working when SEF is turned on?

    thangnn1510 Friend
    #393310

    Yes, The code will work when you turn on SEF. Please try and confirm me again.

    milsirhc Friend
    #393371

    Hi thangnn1510,

    Tried turning it on and the code does not work when SEF is turned on.

    When in the category, it append: ?view=category behind it.

    And in the article, the logo link defaults back to the root link.

    thangnn1510 Friend
    #393486

    I don’t see that you did it, please try adding my code then I just could check for you.

    milsirhc Friend
    #393619

    The code is in there.

    I’ve turned off SEF and rewrite in Joomla and it seems to be working, however turning them back on, it does not seems to work.

    Would really appreciate if you can help me check to see what’s wrong.

    Thanks buddy.

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

This topic contains 11 replies, has 2 voices, and was last updated by  milsirhc 13 years, 5 months ago.

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