-
AuthorPosts
-
matteo sitta Friend
matteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 12, 2013 at 8:22 am #186695Hello
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 Friendmatteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 15, 2013 at 3:33 pm #489951Hi,
nobody can help me?Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 19, 2013 at 3:31 am #490373Hi,
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 Friendsplico123
- Join date:
- January 2007
- Posts:
- 339
- Downloads:
- 80
- Uploads:
- 7
- Thanks:
- 24
- Thanked:
- 93 times in 16 posts
April 19, 2013 at 7:02 am #490396Best 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 Friendmatteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 19, 2013 at 9:04 am #490418thank!
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 Friendsplico123
- Join date:
- January 2007
- Posts:
- 339
- Downloads:
- 80
- Uploads:
- 7
- Thanks:
- 24
- Thanked:
- 93 times in 16 posts
April 19, 2013 at 10:49 am #490439make 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 Friendmatteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 19, 2013 at 11:42 am #490447Thank
Yes i have copied whole folder.
This is not the my first override experience but the first in joomla 3.0.xmatteo sitta Friendmatteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 19, 2013 at 1:23 pm #490451JaMero have some override active but this mod_menu modify don’t works
matteo sitta Friendmatteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 19, 2013 at 4:59 pm #490480To 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 ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
April 25, 2013 at 7:59 am #491005Hi,
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 Friendmatteo sitta
- Join date:
- September 2014
- Posts:
- 92
- Downloads:
- 20
- Uploads:
- 2
- Thanks:
- 15
- Thanked:
- 5 times in 1 posts
April 26, 2013 at 12:19 am #491072Hello Saguaros,
i called V3 but is the new T3 Framework 1.2.3 with joomla 3.1.0Ok!
How can i override the megamenu output?(The override of the T3V2 worked as I described…)
Thanks!
Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
May 3, 2013 at 9:42 am #491784Hi 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
-
AuthorPosts
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