-
AuthorPosts
-
June 2, 2010 at 3:44 pm #151533
Hi,
I search everywhere without success, i just want to hide the menu on some pages, like the “old” menu module 😉
For my example on the Ja_norite home page, i don’t want to publish it …
Thanks
John Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
June 6, 2010 at 3:54 am #346100In the administration area…
Goto EXTENTIONS > MODULE MANAGER then find the MAIN MENU module or whatever you are calling the menu you want to hide.
Open it and on the left under MENU ASSIGNMENT select the pages you want it to show on.Have fun.
John.1 user says Thank You to John Wesley Brett for this useful post
June 7, 2010 at 4:46 am #346163Hello JBrett,
I understood but I use T3 with mega menu. My main menu is not published.
Do we have to create a new layout for page we don’t want to show the main menu :confused: It ‘s not so easy by this way.
ThanksJohn Wesley Brett ModeratorJohn Wesley Brett
- Join date:
- July 2013
- Posts:
- 2142
- Downloads:
- 17
- Uploads:
- 26
- Thanks:
- 175
- Thanked:
- 645 times in 426 posts
June 8, 2010 at 12:42 am #346267I may be misunderstanding you again…but, here are two thoughts:
[FONT=”Arial Black”]#1 [/FONT]using Joomla, you cannot have a front page that is not part of a menu. You can always create an HTML front page that is not part of Joomla…like a splashpage…that would then launch to whatever part of your Joomla site you are wanting your user to go to. But Joomla, by its very nature, is built on a menu.
[FONT=”Arial Black”]#2 [/FONT]Now having said that…perhaps you are just wanting to select a different page as your frontpage…or “DEFAULT” page as Joomla calls it. Many people forget you can do this..
Go to MENUS > MAIN MENU (or any other menu)
Then put a check mark beside absolutely any page that you want to load first when someone comes to your site. And then select DEFAULT in the menu at the top. Then the page you selected will be the first shown when someone goes to http://www.yoursite.comHope I’m getting closer to an answer for you.
John.June 8, 2010 at 6:21 am #346290Hi John,
All is ok with the menu, my question is :
How to do not display the main menu on some page (front or other ;)) with T3 framework and megamenu.
your first answer is for the “traditionnal main menu module’:
Goto EXTENTIONS > MODULE MANAGER then find the MAIN MENU module or whatever you are calling the menu you want to hide.
Open it and on the left under MENU ASSIGNMENT select the pages you want it to show on.With T3, it’s impossible by this way.
I posted a ticket too,
Thanks
Dave
June 8, 2010 at 8:39 am #346311i have the same question with spdave :confused:
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
June 9, 2010 at 9:14 am #346500Dear all!
Pls open the file templates/ja_purityii/layouts/blocks/mainnav.php and replace all source code by the following code:
[PHP]
<?php $items = array(53,54) ; // 53, 54 is the value of the ItemId ?>
<?php if ( !in_array((int)JRequest::getVar(‘Itemid’),$items) ) : ?>
<div id=”ja-mainnav” class=”wrap”>
<div class=”main clearfix”>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>
</div>
</div><?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
<div id=”ja-subnav” class=”wrap”>
<div class=”main clearfix”>
<?php $jamenu->genMenu (1); ?>
</div>
</div>
<?php endif;?><ul class=”no-display”>
<li><a href=”<?php echo $this->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
</ul>
<?php endif; ?>
[/PHP]in this code: [PHP]<?php $items = array(53,54) ; // 53, 54 is the value of the ItemId ?>[/PHP]
you put which Items you choose to hide the menuGood luck
June 9, 2010 at 9:32 am #346503Hi,
Many thanks Tienhc, but with the ja_norite template, I cannot find this code :-[
mfaisalk Friendmfaisalk
- Join date:
- June 2010
- Posts:
- 4
- Downloads:
- 0
- Uploads:
- 0
- Thanks:
- 3
- Thanked:
- 1 times in 2 posts
June 11, 2010 at 3:52 am #346698thanks it works for me.
June 11, 2010 at 7:23 am #346730Hello,
I don’t know why JA staff open two tickets for me for this post, I’m just waiting an answer since monday.
So, display or not a module must stay a basic event in joomla, in french we say : Better is the enemy of good.
Thanks for your work 😀
Spdave
June 18, 2010 at 7:24 am #347437Hello,
All is in the title … I will close and post in norite forum,
Thanks
jimcapraro Friendjimcapraro
- Join date:
- September 2008
- Posts:
- 109
- Downloads:
- 8
- Uploads:
- 2
- Thanks:
- 22
- Thanked:
- 4 times in 1 posts
August 30, 2010 at 5:05 pm #354154spdave,
I need to also hide the main menu in JA_Norite. Did you ever get an answer?railer Friendrailer
- Join date:
- October 2007
- Posts:
- 236
- Downloads:
- 102
- Uploads:
- 9
- Thanks:
- 17
- Thanked:
- 24 times in 1 posts
February 7, 2012 at 1:48 pm #437339<em>@tienhc 182141 wrote:</em><blockquote>Dear all!
Pls open the file templates/ja_purityii/layouts/blocks/mainnav.php and replace all source code by the following code:
[PHP]
<?php $items = array(53,54) ; // 53, 54 is the value of the ItemId ?>
<?php if ( !in_array((int)JRequest::getVar(‘Itemid’),$items) ) : ?>
<div id=”ja-mainnav” class=”wrap”>
<div class=”main clearfix”>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>
</div>
</div><?php if ($this->hasSubmenu() && ($jamenu = $this->loadMenu())) : ?>
<div id=”ja-subnav” class=”wrap”>
<div class=”main clearfix”>
<?php $jamenu->genMenu (1); ?>
</div>
</div>
<?php endif;?><ul class=”no-display”>
<li><a href=”<?php echo $this->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
</ul>
<?php endif; ?>
[/PHP]in this code: [PHP]<?php $items = array(53,54) ; // 53, 54 is the value of the ItemId ?>[/PHP]
you put which Items you choose to hide the menuGood luck</blockquote>
I’m also using the JA Norite template. Should I copy the above quoted code and add it to my mainnav.php file (in the layouts/blocks override)?
Would the below be the correct modification to the exiting mainnav.php file for JA Norite?:
[PHP]<?php $items = array(53,54) ; // 53, 54 is the value of the ItemId ?>
<?php if ( !in_array((int)JRequest::getVar(‘Itemid’),$items) ) : ?><!– START OF EXISTING MAINNAV CODE: –>
<div id=”ja-mainnav” class=”clearfix”>
<div class=”inner”>
<?php if (($jamenu = $this->loadMenu())) $jamenu->genMenu ($this->getParam(‘startlevel’,0), $this->getParam(‘endlevel’,-1)); ?>
</div>
</div><ul class=”no-display”>
<li><a href=”<?php echo $this->getCurrentURL();?>#ja-content” title=”<?php echo JText::_(“Skip to content”);?>”><?php echo JText::_(“Skip to content”);?></a></li>
</ul><!– END OF EXISTING MAINNAV CODE. –>
<?php endif; ?>[/PHP]
Please advise…
Thanks,
railerjmiller@mokoconsulting.com Friendjmiller@mokoconsulting.com
- Join date:
- January 2016
- Posts:
- 1
- Downloads:
- 6
- Uploads:
- 0
August 26, 2016 at 4:09 pm #963272The easiest way without overwriting code is the create a Duplicate Style, then add CSS to hide the Menu.
That’s the method I used for the Purity Template.
-
AuthorPosts
This topic contains 12 replies, has 7 voices, and was last updated by jmiller@mokoconsulting.com 8 years, 2 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum