Template options have vanished

February 2014 Joomla Template
Rate this topic: Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.Evaluations: 0, 0.00 on the average.
GK User
Fri Apr 28, 2017 7:46 pm
Reply with quote
Report this post
Suddenly I can't see any template options. When I edit the template, all the tabs are gone.

gk_news2-template.jpg
User avatar
Fresh Boarder

Joshua M
Mon May 01, 2017 7:57 am
Reply with quote
Report this post
Hi,
Try to change the following line from gk_news2/admin/scripts/js file:

Code: Select all
var type = items[i].split('=')[0].test(/^\d+$/) ? 'ItemID' : 'Option';



into:
Code: Select all
var type = !isNaN(items[i].split('=')[0]) ? 'ItemID' : 'Option’;
User avatar
Moderator

GK User
Fri May 19, 2017 7:02 pm
Reply with quote
Report this post
User avatar
Fresh Boarder

Joshua M
Sun May 21, 2017 9:24 pm
Reply with quote
Report this post
There's a mistake in last quote, it should be:
Code: Select all
var type = !isNaN(items[i].split('=')[0]) ? 'ItemID' : 'Option';

sorry.
BTW - please update your template to latest version to fix this issue
User avatar
Moderator

GK User
Fri Jul 28, 2017 7:23 am
Reply with quote
Report this post
I'm having the same problem

I can't even find "var type" in the scripts.js file

thanks
User avatar
Fresh Boarder

Joshua M
Fri Jul 28, 2017 11:04 am
Reply with quote
Report this post
Hi,
@cystophora please update your template to latest version.
User avatar
Moderator

GK User
Mon Jul 31, 2017 6:53 am
Reply with quote
Report this post
thanks that's worked
User avatar
Fresh Boarder

GK User
Mon Sep 11, 2017 9:21 am
Reply with quote
Report this post
I've same issue. How I update News2 without losing my customization? Thanks
User avatar
Fresh Boarder

Joshua M
Wed Sep 13, 2017 8:19 am
Reply with quote
Report this post
If you've modified template core files, you have to compare files manually now.
The issue with not visible template options was fixed in gk_news2/admin/scripts/js (please update this file, clear cache and check again)
User avatar
Moderator


cron