Siniša Krišan Discussion started by Siniša Krišan 6 years ago

Okay guys, heres one trick im sure none, or almost none of you havent been aware of it.

using following calls, i can basically echo them anywhere WITHIN jomsocial layout. Does not neccessarily mean i can only have them in areas they been put by default

echo $this->view('events')->modEventCalendar();
echo $this->view('events')->modEventPendingList();
echo $this->view('events')->modEventNearby();

echo $this->view('groups')->modPublicDiscussion($categoryId);
echo $this->view('groups')->modRelatedDiscussion($keywords);

echo $this->view('profile')->modGetFriendsHTML();
echo $this->view('profile')->modGetGroupsHTML();


So lets try it in the live example.
Open, for instance, frontpage.index.php template file (but you can do with any JomSocial template file really) and add the above code in between sidebar div

For the sake of testing, remove the custom module positions so you can get the cleaner output :)

Hope you like it :)

Replies
Digita
Digita Siniša Krišan has there being changes in these calls in JS 4.X? 4 years ago
loader
loader
Attachment
Siniša Krišan
Siniša Krišan generally not, but some of them have not been updated to 4.1 style and might not work, specifically those in events 4 years ago
loader
loader
Attachment
marco
marco Hello Sinisa,
I do not find the file in frontpage.index.php in JomSocial template, Can you tell me the patch ?
4 years ago
loader
loader
Attachment
Siniša Krišan
Siniša Krišan Hi Marco

This is two years old post
The template changed since then.

The path would be JOMSOCIALTEMPLATE/layouts/frontpage/base.php

but frankly, i'm not sure will these work in 4.x
I know they will, but probably won't be styled at all.
4 years ago
loader
loader
Attachment

Join 180,000 websites creating Amazing communities

JomSocial is the most complete, easy-to-use addon that turns Joomla CMS into a
full -fledged, social networking site

TRY NOW BUY NOW