Notice

The forum is in read only mode.

Support Forum

Welcome! Support Forums have been reactivated
Welcome the Technical Support section. Help us in assisting you by providing us with a concise and descriptive elaboration of your issues. Be specific and if possible, provide us with a step-by-step instruction in replicating your problem.

Modul Positon

10 years 11 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 41
  • Thank you received: 0
Licenses:
JomSocial Active

I am currently have the photo module on sidebar 1. Since I am working with overrides, - aliases are linked to the jomsocial homepage for each language. Now it appears, that I can only set the photo module to "all", but not to a particular item linked to the jomsocial toolbar. For example - lets say I only want the Photo module appearing on the " activity site ". Not of course on every side. I know it is actually very simple, but it my helps if you just log in to my site and check what it is.

10 years 11 months ago
Licenses:

Hi, Peter.

I know what you mean :) As I know your site quite well ;)

JomSocial toolbar is a menu in Joomla! but it's a bit different than other oridinary menu. it's used for INTERNAL communication within JomSocial component. It means that menu items in it will behave in different way. They don't have OWN menu item ID but inherit it from parent manu item - JomSocial home/frontpage menu item that is (should be) located outside JomSocial toolbar. So ALL menu items have ONE item ID... and if you assign module or template to that menu item ID ALL menu items will come with that module displayed.

Here you can read more: documentation.jomsocial.com/wiki/Toolbar_Explained

I've made some research and came to conclusion that main menu items in JomSocial toolbar could have duplicated outside that menu this have own, unique menu item ID shared with the rest of child menu items. For example: if you create outside JomSocial toolbar menu item "Profile" it will have own menu item ID but child menu items like "Edit Profile" or "Change Profile Photo" will inherit that menu item ID. So now module could be assigned to parent element. certain module could be displayed in all profile related pages but not on e.g Photo pages.

In you race we have additional complication as you use TWO different languages. But duplicating main menu items like "Profile" (because you have two languages you'll need to have assign languages to menu items... thus you'll need to have separated menu items for each language). But then again toolbar will become crazy as it will use menu items with higher ID.

1. So one solution is to use built-in module positions: documentation.jomsocial.com/wiki/Built-in_Module_Positions but then modules will be displayed INSIDE JomSocial not aside line sidebar...

2. I think the best solution then will be to use php conditions for certain view or task (depends where you want to display module). Something like this:

<?php if ((JRequest::getCmd( 'view' )) == 'profile') { ?>
<jdoc:include type="modules" name="my-position-1" style="none" />
<?php } ?>

Above code will display module position on profile related sites. Code should be added in main template. If you're not familiar with php you'll need to ask developer for help: www.jomsocial.com/jomsocial-developers

I think in your site, with that level of structure complication (two languages) second solution is the best even if you'll need to hire a developer or learn a bit php.


- Instead of saying: 'it's not working', explain the problem in detail.
- Screenshots with the URL visible in them and the problem marked are more than welcome.
- Tell us how to replicate the problem, we can't fix it if we can't find it.
- Make sure that your site/server meets JomSocial System Requirements
- Make sure to setup JomSocial Cron Job
- Always provide us with access details to the backend and ftp. We need it to debug problems.
- If you have a similar problem, but a solution you found isn't working, open a new thread instead of 'merging' with an existing one.

- Use the "Thank You" feature on any post that helped you
10 years 11 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 41
  • Thank you received: 0
Licenses:
JomSocial Active

Thank you Michal. Actually I am very happy the way JomSocial Toolbar works in more then one language now. There is also the language for the Netherlands coming up. For now I think I leave it this way, because it works. It should not be to difficult to ad more languages since I have a pretty good structure which you gave me. The Photo Module my have to remove anyways. Depending on the commercial aspect of my site, I plan to run memberships ads for equestrian on sidebar 2,. Something like Facebook but of course only for equestrian. This would change the situation again, because commercial ads could run on more sites. But there still is the Preferences Site which needs full space without running anything on sidebar two. I will see how far I be able to come with my knowledge.

Do You have any Idea for a membership advertising module. Running ads for paying members.

10 years 11 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 41
  • Thank you received: 0
Licenses:
JomSocial Active

Ok Michal - You did it again. Your Instruction gave me the solution. "js_side_top - " Module Edit - is the key to it. Ads could possible run on Sidebar 2 now. If you like check it. I understand the structure now. It don´t have to be all at sidebar 2 or 1. It works with in the jomsocial template structure itself - no php coding necessary. Thank you again very much. I guess you always have the ride solution.

10 years 11 months ago
  • Peter's Avatar
    Topic Author
  • Peter
  • Offline
  • Fresh Boarder
  • Posts: 41
  • Thank you received: 0
Licenses:
JomSocial Active

I only wonder Michal if the Overrides work for the Headline of the module. Ride now it Looks not - do you have a solution. I have something like "mod_community_photos"

Moderators: Piotr Garasiński
Powered by Kunena Forum

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