Where is template override for JomSocial Group view?

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jan 13, 2016 4:29 am
Reply with quote
Report this post
Hi. I have this file in my install of Music State: public_html/templates/gk_musicstate/html/com_community/groups.viewgroup.php

This is the only file with this "groups.viewgroup.php" name on my site. When I look at the code on this file, the classes have the prefix of "js-" For example, line 21 is: <div class="js-focus">

When I open the page and display a Group on the front-end, if I Inspect the element in the browser, the code written comes out like this: <div class="joms-focus">

It's like this throughout the html. The "js-" class prefixes are written to the browser as "joms-"..... ???????

Can anyone explain this? If I want to edit this Group view, where do I make the edits?

Thanks in advance for the help- Tim
User avatar
Fresh Boarder

GK User
Wed Jan 13, 2016 4:30 am
Reply with quote
Report this post
Oh, and yes I do have Music State selected as the default template in the JomSocial back-end.
User avatar
Fresh Boarder

teitbite
Thu Jan 14, 2016 6:05 pm
Reply with quote
Report this post
Hi

I've just performed search on this template and I can see both "js-" and "joms-" in this groups.viewgroup.php override. Can You please be more specific ?
User avatar
Moderator

GK User
Sat Jan 16, 2016 4:55 am
Reply with quote
Report this post
Just use the example I provided, in your version of the file, do you find: <div class="joms-focus"> ?

In the file I have, this code is not included. The code in my file is: <div class="js-focus">
User avatar
Fresh Boarder

teitbite
Wed Jan 20, 2016 4:09 pm
Reply with quote
Report this post
Hi

I do not see "joms-focus" class there, but suffixes "joms-" are widely used. Try simply rename /html/com_community to /html/_com_community so You will be sure only files will be used from within /components/com_community.

The most interesting part is than when I'm searching whole site at a time than there is no "joms-focus" reference there other than in style. So it's not even used in JomSicial directly. Probably comming from database or constructed from parts in PHP.

It would be best if You ask JomSocial support where to find that exactly. I'm not JomSocial expert I'm afraid.
User avatar
Moderator

GK User
Sun Jan 24, 2016 4:20 pm
Reply with quote
Report this post
Thanks. I searched some more and finally found the code in this jomsocial file: templates/jomsocial/layouts/groups/single.php
User avatar
Fresh Boarder


cron