Tuesday, December 18, 2018

Correcting T3 framework MegaMenu issues

by / Wednesday, 25 March 2015 / Published in Joomla! articles & tutorials

T3 Framework is one of Joomla! template frameworks. It features responsive design, powerful customization options and MegaMenu system.

It's a good framework, however, no system is free from bugs. In case with T3 you may occasionally encounter a situation where changes you are doing in MegaMenu Editor do not appear on the site. This is caused by corrupted template's JSON settings string.

To fix it, you need to access #__template_styles table of your Joomla! database, either with phpMyAdmin or by manually editing SQL dump.

The approach described here requires some basic knowledge of JSON & SQL. It may not be useful for beginners.

  1. Backup your database and check whether you can restore it - just in case
  2. Open current template style line in #__template_styles table
  3. Params field is what you need. Copy its JSON to a separate code editor window:
    t3 mm 1
  4. You will need to extract mainmenu sub-JSON (see image above) to a separate code window.
    Prettify it and replace \" with " for convinience:
    t3 mm 2
  5. Make sure it contains only one sub-element. If you see any additional elements (like marked with background color on a picture above), remove them! They are the reasons why MegaMenu editor system is broken.
  6. Now either do the same with in-SQL JSON line, or perform the reverse operation on the JSON you just edited (remove \n, replace " with \" etc) and then put it inside mainmenu JSON parameter
  7. Push your changes to the database

I spent a couple of hours trying to hunt this bug and find what causes it. Hope that all described above may save some time to you.

Read 1136 times Last modified on Wednesday, 25 March 2015 11:41

Do you like this? Please share!

Simon Tushev

Simon is IT professional with interests in web design, electronics, photography and astronomy. He writes about PHP, Yii, Joomla!, Arduino and several other topics.

Welcome!

Here I publish articles related to my areas of interest, my brief notes that may save some time to others, as well as some of my works.

This site is a work in progress. I will add more sections in the future, such as

  • More photos to photogallery
  • More Joomla!-related articles
  • ...

 

themeforest

New Posts

Using dynamic GeoIP module with nginx (CentOS)

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure...

13-04-2016 in Linux, BSD, Unix

READ MORE

Visual difference between pseudo and true random data

This is is "random" image generated using PHP rand() function: And this is an image...

20-11-2015 in Blog

READ MORE

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...   Having...

12-10-2015 in Arduino

READ MORE
Scroll to top

We use cookies, just to track visits to our website, we store no personal details Privacy policy