test
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • matteo sitta Friend
    #186695

    Hello

    i have a local t3v3 installation with JaMero template, and i need to override a mod_menu for insert a tag span
    inside to the menu link and move the class parsing from <a> tag to the <span>.

    <a <?php echo $class; ?>href=”<?php echo $flink; ?>” <?php echo $title . $dropdown; ?>><?php echo $linktype . $caret; ?></a>

    to

    <a href=”<?php echo $flink; ?>” <?php echo $title . $dropdown; ?>><span <?php echo $class; ?>><?php echo $linktype . $caret; ?></span></a>

    My steps are
    copy plugin/system/t3/base/html/mod_menu folder to the ~template/html/mod_menu
    modify ~template/html/mod_menu/default_url.php
    But nothing happens.

    How to do override this files?

    Thank

    matteo sitta Friend
    #489951

    Hi,
    nobody can help me?

    Saguaros Moderator
    #490373

    Hi,

    If you want to override that mod_menu, you need to copy that file to /templates/ja_mero/html/ folder and make your own change there. May I know how you want to achieve here?

    splico123 Friend
    #490396

    Best way to do it is to copy ,,/modules/mod_menu/ to ../templates/ja_mero/html/ and make changes in the new files there, it should work then.

    matteo sitta Friend
    #490418

    thank!
    but i copy that file to the /templates/ja_mero/html/ folder and i make the change
    and nothing happens.

    As though the override does not work.
    Infact my output is
    <li class=”current active” data-id=”435″ data-level=”1″>
    <a class=”firstmenu” href=”/~matteo/parcodelta/”>Home </a>
    </li>
    and not
    <li class=”current active” data-id=”435″ data-level=”1″>
    <a href=”/~matteo/parcodelta/”><span class=”firstmenu”>Home </span></a>
    </li>

    splico123 Friend
    #490439

    make sure you have coppied whole folder from mod_menu to the ja_mero/html/ folder. it should work then.

    and clear cache if you have it.

    matteo sitta Friend
    #490447

    Thank
    Yes i have copied whole folder.
    This is not the my first override experience but the first in joomla 3.0.x

    matteo sitta Friend
    #490451

    JaMero have some override active but this mod_menu modify don’t works

    matteo sitta Friend
    #490480

    To explain better
    I want override megamenu plugin/system/t3/base/html/mod_menu
    I copied this folder to the ~template/html/mod_menu
    and i modify

    <a <?php echo $class; ?>href=”<?php echo $flink; ?>” <?php echo $title . $dropdown; ?>><?php echo $linktype . $caret; ?></a>

    to this

    <a href=”<?php echo $flink; ?>” <?php echo $title . $dropdown; ?>><span <?php echo $class; ?>><?php echo $linktype . $caret; ?></span></a>

    For verify
    I tried to directly edit the file of plugin/system/t3/base/html/mod_menu
    without avail:((:((:((:((:((:((:((:((

    Saguaros Moderator
    #491005

    Hi,

    Which version of T3 plugin are you using? T3v3 or new T3 framework?

    The main point here is that you override the mod_menu but in backend settings of template, you are using the megamenu, NOT joomla module so that you cannot see the change, of course.

    Regards

    matteo sitta Friend
    #491072

    Hello Saguaros,
    i called V3 but is the new T3 Framework 1.2.3 with joomla 3.1.0

    Ok!
    How can i override the megamenu output?

    (The override of the T3V2 worked as I described…)

    Thanks!

    Saguaros Moderator
    #491784

    Hi matteo,

    Currently, you cannot override the megamenu in new T3 framework. If you want to customize, you need to change in core file of this plugin.

    Regards

Viewing 12 posts - 1 through 12 (of 12 total)

This topic contains 12 replies, has 3 voices, and was last updated by  Saguaros 11 years, 8 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum