By Kurtis Houser on Sunday, 19 July 2015
Posted in Technical Issues
Replies 1
Likes 0
Views 480
Votes 0
Although certainly not common for most sites, I am using using a separate template (Jtouch) for the mobile version of mine.

ES assumes the theme override files that should be loaded are in the /templates/[DEFAULT_TEMPLATE]/html/com_easysocial/ folder -> getJoomlaTemplate(). However, it does load the correct custom.css file -> getTemplate().

To fix this for me I changed line 164 in /administrator/components/com_easysocial/includes/themes/themes.php:
$currentTemplate = FD::assets()->getJoomlaTemplate(); to $currentTemplate = JFactory::getApplication()->getTemplate();

So far everything seems to be working ok. Is this the best way to resolve this or should it be handled another way? I will probably be overriding many the ES modules (/modules/mod_easysocial_*) for the mobile site as well so I want to make sure everything continues to work properly.

Thanks,

Kurtis
Hey Kurtis,

Hm, that should do the trick I need to recall why getJoomlaTemplate is used instead of just using the API provided by Joomla's getTemplate. If i recall correctly, there are some issues when getTemplate is called when our build system tries to package EasySocial.
·
Sunday, 19 July 2015 13:11
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post