-
AuthorPosts
-
January 25, 2011 at 6:35 pm #373750
This helped alot, but I find myself still confused a little. Right now I have a second mega menu loaded into the “mainnav” position ( my real main nav I moved all the way to the very top ) but the second menu is taking on the css of topnav and not main nav, what would I change to make it take on the mainnav styling?
thuanlq Friendthuanlq
- Join date:
- October 2010
- Posts:
- 528
- Downloads:
- 0
- Uploads:
- 29
- Thanks:
- 8
- Thanked:
- 121 times in 99 posts
January 26, 2011 at 10:59 am #373881Hi @strullinger,
Yes you can do it, please copy all style of mainnav, then define new style for topnav with prefix for all copy styling as
i copy #mainmenu .link { color: red; }, my topnav style should #topnav .link { color: red; }March 1, 2011 at 4:34 pm #379103<em>@khanh le 198785 wrote:</em><blockquote>T3v2 templates provide a main navigation (mainnav block type) which can be configured in the template manager, profiles tab. This tutorial will show you simple steps to load another built-in menu system.
1. Download the attachment file and extract into folder: templates/[your template]/blocks. We have a new block type name “topmega”
2. Open the file (topmega.php) and update your setting (Eg: change the menutype you want to show)
3. In template manager, edit the current layout to show the new block:<blocks name=”top”>
…
<block name=”topnav” type=”topmega”></block>
…
</blocks>9276</blockquote>
Hello guys, sorry if I make this request.
I followed your guide, but I get lost at some point.
When you say you put the file in the “blocks”.
I folder named “blocks” inside “template” do not have it.
I installed Joomla 1.6 with a T3.
What’s wrong?Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 1, 2011 at 8:28 pm #379139This modification was aimed at users of Joomla 1.5, not 1.6 so it may not work as expected. Try it and see.
However, you should have a blocks folder. If it is the blamk T£ template you are using then it will be in templates>ja_t3_blank>blocks
March 2, 2011 at 8:34 am #379242Ah oks Phil and you have some suggest? My customer want Joomla 1.6 and i need to realize a different copy of megamenu above the banner, in this style:
– MEGAMENU1
– BANNER
– MEGAMENU 2Thanks for any idea.
Simone
Phill ModeratorPhill
- Join date:
- February 2014
- Posts:
- 7013
- Downloads:
- 40
- Uploads:
- 77
- Thanks:
- 917
- Thanked:
- 2206 times in 1818 posts
March 2, 2011 at 10:29 am #379276I’m not saying it will not work, it is just I have not tried it. Give the above a go and report back.
mfi_michael Friendmfi_michael
- Join date:
- May 2011
- Posts:
- 17
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 3
- Thanked:
- 1 times in 1 posts
May 24, 2011 at 5:30 pm #392712I know this thread is a little old, but thought I would mention that I grabbed the php and used it on the Blank T3 Template and it seems to be working just fine for me.
All I needed to do was add in a block name with the new file (which I changed to botmega.php) from the Layout panel in the Template Manager:
<blocks name="bottom" style="xhtml">
....
<block name="botnav" type="botmega" main-inner="1"></block>
....
</blocks>
And then edit the .php to, primarily, change this line:
/* Set the menutype */
$topparams->set( 'menutype', 'topmenu' );
I think this might be the part confusing some people… In the Administration Panel, go to Menus –> Menu Manager. In the list of your menus, you’ll see a sub-caption that tells you the menutype (which you assigned when you created the menu). So just change topmenu in the php file to whatever your menutype displays.
In 1.6 version of T3, there is no default blocks folder, but all you have to do is create a new folder and name it blocks and drop the php into it. It can go in the template folder (ie: ja_t3_blank or ja_purity_ii) or, probably preferably, in the ja_t3_blank/local/themes/user-theme folder if you’re building a sub-theme.
1 user says Thank You to mfi_michael for this useful post
davidyv Frienddavidyv
- Join date:
- July 2007
- Posts:
- 97
- Downloads:
- 1
- Uploads:
- 10
- Thanks:
- 4
- Thanked:
- 2 times in 1 posts
May 25, 2011 at 7:42 am #392776Hi khanh le,
Thanks for your tutorial. I had a few problems which hopefully you can clear up for me: How to add Menu Image to menu items like mainmenu? I try setting a Menu Image to a menu, but it can not show.:((
May 30, 2011 at 5:25 am #393502Hi
Can You give your site URL ,please? Please Update your admin username & password http://support.joomlart.com/index.php?/Tickets/Ticket/View/73319October 3, 2011 at 3:57 pm #416481<em>@mfi_michael 242362 wrote:</em><blockquote>And then edit the .php to, primarily, change this line:
/* Set the menutype */
$topparams->set( 'menutype', 'topmenu' );
I think this might be the part confusing some people… In the Administration Panel, go to Menus –> Menu Manager. In the list of your menus, you’ll see a sub-caption that tells you the menutype (which you assigned when you created the menu). So just change topmenu in the php file to whatever your menutype displays.
</blockquote>
I was confusing by this part of the tutorial. Thank you mfi_michael!
Working good with 1.7 version of T3.zloy_lamer Friendzloy_lamer
- Join date:
- August 2010
- Posts:
- 7
- Downloads:
- 7
- Uploads:
- 0
- Thanked:
- 2 times in 2 posts
May 1, 2012 at 3:13 pm #450873how to make a second megamenu, if I have a vertical megamenu?
If I change a line in the file topmega.php$ this-> addCSS ('css/menu/mega2.css');
and then add the file mega2.css styles are mixed and broken vertical megamenu….
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
May 22, 2012 at 8:49 am #454201You can customize second vertical megamenu by:
Open file templates/ja_teline_iii/css/menu/mega.css
from
<blockquote>.ja-megamenu ul.level0 li.mega {
background: none repeat scroll 0 0 transparent;
display: block;
float: left;
margin: 0;
padding: 0;
}</blockquote>change to<blockquote>
.ja-megamenu ul.level0 li.mega {
background: none repeat scroll 0 0 transparent;
display: block;
float: none;
margin: 0;
padding: 0;
}</blockquote> -
AuthorPosts
This topic contains 27 replies, has 15 voices, and was last updated by Ninja Lead 12 years, 5 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum