By Chris Lewis on Thursday, 17 July 2014
Posted in Technical Issues
Replies 3
Likes 0
Views 0.9K
Votes 0
Hi, i'm trying to get a module to show up on a specific profile only.

I've tried creating a menu item to the profile page (tried using a permalinked profile and without one defined) and setting the module to only show on that page but it's not working for me.

Any ideas how i could get modules to show only on specific profile pages?

Many thanks!
Hello Chris,

Hm, when you assign a module to appear on a specific menu, it'll appear for all profiles. Because it's associated via the "view" and not a specific user's profile I think it's best that you add a custom module position within your Joomla template instead or within EasySocial's theme files.
·
Friday, 18 July 2014 00:35
·
0 Likes
·
0 Votes
·
0 Comments
·
Thanks for your support,

I would like all profiles to be able to view the modules but for them to appear only on specific profile pages, i tried using a module position from the template, and an easysocial module position but if i create a menu item and point it to a profile page and set the module to only appear on that page, it stop showing entirely.

Hope i have explained it clearly, thanks again.
·
Friday, 18 July 2014 00:48
·
0 Likes
·
0 Votes
·
0 Comments
·
Hello Chris,

I think what you need to do is not achieve-able out of the box. There is no way you can tell Joomla to only load the modules for specific profiles. You will need to custom code this. The code should look something like this in your template's index.php file (The one that defines the module positions)


<?php if (JFactory::getUser()->id == 555) { ?>
// Load the module here
<?php } ?>
·
Friday, 18 July 2014 10:34
·
0 Likes
·
0 Votes
·
0 Comments
·
View Full Post