-
AuthorPosts
-
milsirhc Friend
milsirhc
- Join date:
- January 2011
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
May 15, 2011 at 12:32 pm #164021Hi,
My current menu contains 3 categories.
– A – site.com/a
– B – site.com/b
– C – site.com/cHow 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 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 16, 2011 at 10:14 am #391423Could you give us your site link?
milsirhc Friendmilsirhc
- Join date:
- January 2011
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
May 20, 2011 at 1:46 am #392028Pm’ed you!
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 20, 2011 at 3:56 am #392035Hi 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 Friendmilsirhc
- Join date:
- January 2011
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
May 26, 2011 at 12:06 am #392917PM’ed. Thanks!
thangnn1510 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 26, 2011 at 4:14 am #392931I 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 Friendmilsirhc
- Join date:
- January 2011
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
May 27, 2011 at 10:44 am #393178You 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 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 28, 2011 at 4:43 am #393310Yes, The code will work when you turn on SEF. Please try and confirm me again.
milsirhc Friendmilsirhc
- Join date:
- January 2011
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
May 28, 2011 at 4:38 pm #393371Hi 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 Friendthangnn1510
- Join date:
- October 2014
- Posts:
- 1608
- Downloads:
- 0
- Uploads:
- 80
- Thanks:
- 73
- Thanked:
- 278 times in 256 posts
May 30, 2011 at 3:44 am #393486I don’t see that you did it, please try adding my code then I just could check for you.
milsirhc Friendmilsirhc
- Join date:
- January 2011
- Posts:
- 108
- Downloads:
- 0
- Uploads:
- 2
- Thanks:
- 9
- Thanked:
- 2 times in 1 posts
May 30, 2011 at 12:45 pm #393619The 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.
-
AuthorPosts
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