Been playing around with this, looked around the tutorials and support forums, and no matter what I do I cannot seem to change the style class that is being used for the Main menu content section! Anyone know the secret to this?
Thanks,
-BZ
Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 07:01 AM
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 06:41 AM
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 06:27 AM
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 01:29 AM
- mdee created topic »How to implement returnpage ?« 01:00 AM
- nestormateo responded to »Fillters in Clip« 24. May
- damon responded to »Can the Updated Version Check be Turned Off (Z 1.3)« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
How to have the MainMenu block use different styles?
-
- Rank: Developer
- Registered: Dec 31, 1969
- Last visit: Jun 01, 2010
- Posts: 6859
First off, I'd get xMenu from Oh phooey, I forget the URL... But it uses HTML Lists, much like 760 will be doing, so it's more customizable.
--
Home Page | Find on Facebook | Follow on Twitter
-
- Rank: Developer
- Registered: Jun 16, 2003
- Last visit: May 29, 2010
- Posts: 1966
then just find and change the MainMenu.htm tmplate in the theme file. -
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
does the 760 RC's have something different with the main menu? I didnt notice, so im still using the xmenu. -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
The main menu can have its own block template with Xanthia, but not all themes include it.
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide -
- Rank: Expert
- Registered: Dec 31, 1969
- Last visit: Oct 21, 2009
- Posts: 1437
Doesnt look like it loops to grab each individual link. Still takes them as a whole. IE $content.
Maybe something more like this:
Code
<!--[foreach from=$menuitems item=item ]-->
<TR class=NavRow>
<TD class=swath> </TD>
<!--[if $item.MENUITEMTITLE != '' && $item.MENUITEMURL != '' ]-->
<A href="<!--[$item.MENUITEMURL]-->" class="NavText" title="<!--[$item.MENUITEMALT]-->">
<TD class="Nav">
<DIV class=NavText><A href="[-$item.MENUITEMURL]-->" class="NavText" title="<!--[$item.MENUITEMALT]-->"><!--[$item.MENUITEMTITLE]--></A></DIV></TD></A></TR>
<!--[else]-->
<TD class=Nav><DIV class=NavText><!--[$item.MENUITEMTITLE]--></DIV></TD>
[<!--[/if]-->
<!--[/foreach]--> -
- Rank: Legend
- Registered: Dec 11, 2002
- Last visit: Oct 21, 2009
- Posts: 11674
That's true - you'd need the .8 blocks module to get templated blocks....
--
itbegins.co.uk - Zikula Consulting
birtwistle.me.uk - Personal Blog
Please read the Support Guide
- Moderated by:
- Support
Users on-line
- 0 users
This list is based on users active over the last 60 minutes.
