-
AuthorPosts
-
August 16, 2011 at 8:57 pm #167493
Hi,
We are working with Joomla 1.5.23, Job Board 1.5.3, and a T3 v.2 Template.
We have 3 different main menus. One for guest users(default), one form Job Seekers, and one for Employers.
On our T3 template we have 3 different profiles for our 3 different users, again, guests(default), job seekers and employers.
We use Job Boards menu components to let users login, and we redirect them to their respective menus (Job seeker menu or employer menu). On our T3 template, we assign each menu to their respective profiles so that the main menu changes accordingly.
It all works fine, until the user begins to browse around the site. For example, if an employer clicks on an applicants name to view his/her profile, the template profile switches to the default main menu (which is for default for guest users), and the employer tools that are on the employer menu are gone.
My question is, HOW DO WE GET T3 TO RECOGNIZE A USER TYPE AND MAKE IT STICK TO THAT PROFILE, KEEPING ITS RESPECTIVE MAIN MENU?
Please advise!
August 18, 2011 at 2:35 pm #406881Hello? Any info about this?
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 18, 2011 at 6:57 pm #406928Wow … This is an interesting question. I do know that you can restrict certain menus to registered users, but I haven’t yet come across whether or not one can restrict and/or designate certain menus for specific users/user groups.
My gut tells me that virtually ANYTHING can be coded to accomplish most any envisioned element … but I am not completely certain about this one (yet). I am actually very interested in whether or not this can be accomplished as well. (Watch it be completely achievable and something simple that I just didn’t think of). :((
In any case, I have taken the liberty of submitting a Support Ticket Request for you so that our JA Development Team can take a look and better advise further as to the viability of this issue.
TOM
1 user says Thank You to TomC for this useful post
August 19, 2011 at 6:43 pm #407141Hello TOM,
Actually when we were using a non-t3 template in order to get this you only had to ask for the type of user that was currently viewing the site.
If a guest user was there we displayed a CSS modified jobboard menu and then when guest logged in, as jobseeker or employer, the jobboard menu did the rest by displaying the appropiate menu.The e.g. employer was able to navigate trough all main menus (top, left) that were being displayed without loosing the user type. Once employer logged out everything went to normal.
Now in T3, I see that it is possible to assign menus to different theme profiles. So we want the Employer navigate the other main menu modules that are common for both jobseeker and employer but when he/she does the user type gets lost and it the Main Menu module appears and the only one to recover logged in user type is by clicking browser’s back button.
Now, my theory is that maybe in T3 you need to create 2 main menu modules, one for each user type. And then assign them to the respective profile theme. But there has to be a simpler way because otherwise you would have 20 menus in your Menu’s section.
What do you think? And btw thank you for your reply.
TomC ModeratorTomC
- Join date:
- October 2014
- Posts:
- 14077
- Downloads:
- 58
- Uploads:
- 137
- Thanks:
- 948
- Thanked:
- 3155 times in 2495 posts
August 19, 2011 at 6:51 pm #407144<em>@josuehm 260904 wrote:</em><blockquote>
Now, my theory is that maybe in T3 you need to create 2 main menu modules, one for each user type. And then assign them to the respective profile theme. But there has to be a simpler way because otherwise you would have 20 menus in your Menu’s section.What do you think? And btw thank you for your reply.</blockquote>
That would certainly seem like a way to do it . . . but I agree with you that there should be a more efficient method.I’m following up on the Support Ticket submitted.
August 23, 2011 at 6:37 am #407819Hi Tom,
Let me know if you can guide us the right way with this new intel.
Previously, before upgrading to the T3 v.2 template we have today, we had a regular (no-framework) template. And in out index.php file, we had this piece of code to select the menu according to the user type:<code>
<?php
if(!$userIndex->guest){
$userTypeIndex = $userIndex->getParam(‘usertype’);
switch($userTypeIndex){
case ‘Employer User’:
if ($this->countModules(‘mainnavigationempresa’))
echo ‘<jdoc:include type=”modules” name=”mainnavigationempresa” style=”raw” />’;
break;
case ‘Job Seeker User’:
if ($this->countModules(‘mainnavigation’))
echo ‘<jdoc:include type=”modules” name=”mainnavigation” style=”raw” />’;
break;
}
}
else{
if ($this->countModules(‘mainnavigation’)) {
echo ‘<jdoc:include type=”modules” name=”mainnavigation” style=”raw” />’;
}
}
?>
</code>How can we use something like this in T3 to call on a profile?
-
AuthorPosts
This topic contains 6 replies, has 2 voices, and was last updated by josuehm 13 years, 3 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum