T3 Community Discussion & Support

Let's build the best free Joomla template framework, together!
  1. robjen
  2. General Discussion
  3. Tuesday, January 14 2014, 02:18 AM
  4.  Subscribe via email
Hello,

Have been trying to create menus in the footer modules - but all of them have the nav nav-stacked nav-pills styling.

I want plain and simple menus in the footer the same as you have in Joomlart templates.

The problem is that every time you select the menu option when creating a module the above styling is included.

So how do I create a menu in the footer module(s) that does not include nav nav-stacked nav-pills styling.

Any help would be appreciated.


Kind regards,
robjen
Comment
There are no comments made yet.
Admin Accepted Answer Pending Moderation
0
Votes
Undo
Hi robjen,

You can overwrite the markup of mod_menu to remove the class.

Or you can use <jdoc:include type="t3bootstrap" name="'[menutype]" menutype="[menutype]" /> with the value of [menutype] is the menu type of footer menu you want.
Place this code in tpls/blocks/[block].php. [block] should be footer, i think.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 1
robjen Accepted Answer Pending Moderation
0
Votes
Undo
Hello Admin,

Thanks for your prompt reply.

Have managed to create a template override of the mod_menu by changing the class as shown below from:

FIRST SUGGESTION

<?php // The menu class is deprecated. Use nav instead. ?>
<ul class="nav menu<?php echo $class_sfx;?>"
<?php

to:

<?php // The menu class is deprecated. Use nav instead. ?>
<ul class="footernav menu<?php echo $class_sfx;?>"
<?php

SECOND SUGGESTION

I don't understand how to use the jdoc statement. The following section of code is used for the footer.php block.

<?php if ($this->checkSpotlight('footnav', 'footer-1, footer-2, footer-3, footer-4, footer-5, footer-6')) : ?>
<!-- FOOT NAVIGATION -->
<div class="container hidden-xs">
<?php $this->spotlight('footnav', 'footer-1, footer-2, footer-3, footer-4, footer-5, footer-6') ?>
</div>
<!-- //FOOT NAVIGATION -->
<?php endif ?>

How do I incorporate the jdoc line into this code.

I know the [menu type] is the name of the menu. For example, if my menu for the footer-1 position was named footnav, then the code you gave me would read as follows:

<jdoc:include type="t3bootstrap" name="footnav" menutype="footnav" />

So, the question is, how do I place the above jdoc line in the following code block.

<?php if ($this->checkSpotlight('footnav', 'footer-1, footer-2, footer-3, footer-4, footer-5, footer-6')) : ?>
<!-- FOOT NAVIGATION -->
<div class="container hidden-xs">
<?php $this->spotlight('footnav', 'footer-1, footer-2, footer-3, footer-4, footer-5, footer-6') ?>
</div>
<!-- //FOOT NAVIGATION -->
<?php endif ?>

Again, your help would be most welcome.


Kind regards,
robjen
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 2
Admin Accepted Answer Pending Moderation
0
Votes
Undo
Hi robjen,

It is somehow confuse to have the same name for spotlight and menu.

You can place the <jdoc /> above or below the spotlight up to your choice.

<jdoc:include type="t3bootstrap" name="footnav" menutype="footnav" />

<?php if ($this->checkSpotlight('footnav', 'footer-1, footer-2, footer-3, footer-4, footer-5, footer-6')) : ?>
<!-- FOOT NAVIGATION -->
<div class="container hidden-xs">
<?php $this->spotlight('footnav', 'footer-1, footer-2, footer-3, footer-4, footer-5, footer-6') ?>
</div>
<!-- //FOOT NAVIGATION -->
<?php endif ?>

Also, you can wrap the container div

<div class="container">
<jdoc:include type="t3bootstrap" name="footnav" menutype="footnav" />
</div>
.... spotlight goes here ..


Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 3
robjen Accepted Answer Pending Moderation
0
Votes
Undo
Hello Admin,

Thanks for your help. Will give that a try.


Kind regards,
robjen
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 4
Stefan Gofferje Accepted Answer Pending Moderation
0
Votes
Undo
If I may join in here... I have exactly the same issue. I have checked /modules/mod_menu/tmpl/default.php and that class "nav-stacked" doesn't seem to be applied in there. In fact, a grep -R nav-stacked * in the mod_menu folder didn't find anything at all.

I just want to add a horizontal menu into footer-2 but I can't seem to be able to figure that out. I'd prefer to do it through the backend rather than through hardcoding in the template because I'm trying to create a template that's more flexible and which I can re-use for modernizing some of my other websites.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 5
Admin Accepted Answer Pending Moderation
0
Votes
Undo
Hi Stefan Gofferje,

You should check for those overwrites in plugins/system/t3 folder.
This will be apply in T3 v2.0.x and T3 Bs3 Blank.

Regards
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 6
Stefan Gofferje Accepted Answer Pending Moderation
0
Votes
Undo
Well, I found an easier way than hacking the module...

/plugins/system/t3/base-bs3/html/mod_menu reveals that piece of code:

Edit:
Seems like code can't be included in this comment. I just get mess... Check lines 13 and 15 of the file.

So - setiing <space>navbar-nav as Menu Class Suffix solves the problems without any code-hacking or hardcoding.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 7
Mehdi Accepted Answer Pending Moderation
0
Votes
Undo
We surely should not be trying to "get around" this. There must be a simple way to not have T3 re-write the class when you are stating the style="none". Or am I missing something?

<jdoc:include type="modules" name="mymenu" style="none" />
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 8
Mehdi Accepted Answer Pending Moderation
0
Votes
Undo
Simplest solution I can think of at present, with full control and no extra classes stuck in there. Add a folder "mod_menu" in "templates/t3_bs3_blank/html/". Copy the file "plugins/system/t3/base-bs3/html/mod_menu/default.php" into this folder and rename to something you prefer e.g. plain.php.

When setting up the menu in Module Manager, select the new option under the popup "Alternative Layout" under "Advanced" tab.

Now you can edit this to remove the class additions and set it up to your liking.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 9
Ryan Accepted Answer Pending Moderation
0
Votes
Undo
Mehdi, perhaps you misunderstand Stefan's answer; it is not a "work-around" it is more of a "work-WITH"...

You simply need to set the MENU class suffix within the menu module ("advanced" parameters).
The T3 code looks to see if you've defined "nav-navbar" as the Menu Class Suffix, and if so, does not add the "nav-stacked" class, like so:
<?php $is_navbar = strpos(' ' . $class_sfx . ' ', ' navbar-nav ') !== false; ?>
<ul class="nav <?php echo ($is_navbar ? '' : ' nav-pills nav-stacked '), $class_sfx;?>">


MUCH simpler than changing any code, and also allows you to set this at the module level, instead of at the position level.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 10
Murray Accepted Answer Pending Moderation
0
Votes
Undo
Ryan, thanks for clarifying.

However, there is a typo in your explanation. Thank you for also including the code, because that's how I picked up the typo.
You should have said " The T3 code looks to see if you've defined "navbar-nav" as the Menu Class Suffix. " A minor transposition, but important nevertheless. ;)

Now all I need to do is remove the references to "Bootstrap" & "Font Awesome" so that the menu stands alone.
  Fitzroy North VIC, Australia
Visit 
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 11
Yoann Accepted Answer Pending Moderation
0
Votes
Undo
Hi there !

I have the same issue and putting a class suffix in the module doesn't replace the nav-pills nav-stacked class...

It seems that this code part doesn't work properly :

$is_navbar = strpos(' ' . $class_sfx . ' ', ' navbar-nav ') !== false;
?>
<ul class="nav <?php echo ($is_navbar ? '' : ' nav-pills nav-stacked '), $class_sfx;?>">



Bugtracker ? ^^
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 12
Johannes Burkard Accepted Answer Pending Moderation
0
Votes
Undo
Hi guys, any update to this?
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 13
chen solo Accepted Answer Pending Moderation
0
Votes
Undo
Asked him the situation he just calmly said it was estimated that the stomach is not comfortable, simply finished the meal, rest for a moment, the father and son back to his own unit, and her husband came back at night my father and daughter like her husband described some, her husband immediately Called him to the father and son, told him to go to the hospital to check, he refused to go, has been dragged into the July, he realized his own seriousness, called her husband to accompany him to the hospital made a gastroscope, a long week Waiting, our heart is like a jack pressed, get the report when the time, we are like thunderstruck, the final concern into Cheap Coach Bags a reality, advanced gastric cancer. Can not believe it is true, but the fact that we have to accept. When we calm down the mood when the phone to conceal Nike Free Kids his condition, told him that he was abdominal water, to immediately surgery, and then called to tell her mother. At that time we buy a house to marry, the remaining money can be said that few, her mother to the relatives borrowed thirty thousand yuan, immediately lived in the hospital. And through a series of checks, and then Shoes Outlet the implementation of the surgical resection, the father and son of the stomach removed two-thirds, when the doctor took a bowl of bloody tumor out, my mother fainted. Public bus is a successful operation, in a series of chemotherapy after surgery have not been any harm, with the normal people, see the public father who said he was sick. At that time I was married for three years, the father and son have been 61 years old, no grandchildren, in Michael Kors Combo Set the father and son repeatedly asked me to have a child, the expected date of birth is Cheap Crossbody Bags July 23, 2003, during the period of my pregnancy in the fourth check Month to find out that I have twins, I told the public the first time the good news, his excitement even can not tell. We are a couple for the arrival of a little angel smile, but also that God is finally fair. Two little guys in my belly happy to grow, there are twenty days to childbirth, but in that time my body because of cholic acid is too high, every part of the itchy powerful night sleep well The July 3 morning I was lying in bed two little guys in my stomach moving non-stop, and the stomach began to slightly hurt. 1 pm live in the hospital, the doctor took me to do when the inspection found bloody amniotic fluid, and only one fetal heart in the move, a few doctors busy hand pushed me to the operating table, immediately break the abdominal surgery, The result of my other little angel or by the heart of the ruthless take away the life.
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 14
evahe Accepted Answer Pending Moderation
0
Votes
Undo
but also to wear the whole plant The first Cheap Nike Shoes hat, that is how pleased, Curcuma is responsible for their own Le ... also here to pay their own labor results, sweat remuneration, so that Curcuma experience to live a hard life, hone some of their own, but also to their own Become strong On the future how to do, in fact, I am at a loss. To 2013 Nike Free 6.0 At home for a year and a half, doing nothing, all day in their own small room, this time my heart is always in the non-stop struggle. I used to work, face the time of work I am always complaining about the long time, looking forward to some of the get off work . Today I lost my job, myself alone at home, at home wasted time, day after day, in others seems worry-free Worry about life, and I came to me is how kind of invisible pressure, I am not a thoughtless people! A lot of words do not know how to say, and who to say my thoughts, a kind of no one to support and no one to understand the sadness, only from a strong! I know that I am not a happy child, but I still complain about God's injustice, why do you want to have a happy child, but I will complain about God's injustice, why Can not like other children have no worries of Authentic Nike Shoes Sale life, enjoy a simple happiness. I experienced the struggles and helplessness they had never experienced ... Because of pain, so fight to seek relief. Because despair, so there is no scruples to fall, From docile to rebellious, from indignation to degeneration. The heart of the wound, Nike Air Max Shoes Sale so many years I only know how!
Comment
There are no comments made yet.
  1. more than a month ago
  2. General Discussion
  3. # 16
  • Page :
  • 1
  • 2


There are no replies made for this post yet.
However, you are not allowed to reply to this post.