Support

  1. marver
  2. Support
  3. Friday, June 13 2014, 04:24 PM
Hello,

I got a community of companies. And main goal is that companies can be found in the website. So I made 'username' the company-name. All went fine, until I figured out (also posted on this before) that this causes problems, as some company names have characters that are forbidden to be used in a company name.

So I've created a new field with company-name and started using good working usernames.

But now when I create a new menu-item to easy-profile >> userlist, it shows the usernames. But I want to have companies as 'leading' filter and hide the username.

Hope you understand my issue and can think with me for a solution.

Thanks!
Martijn.
admin Accepted Answer
Admin
Hi,

the best way to do this was to use the firstname as Company name and set in Easy Profile options "Name style" to "Only Name". This will disable second name and last name fields. So in Title of profile page and in user title on list you will see Company Name. If you need name and last name for person of company you can add 2 text field (required).

In your case this way is very complex at this point. You can use template override to change the "leading" name of user in list. Follow these steps:
- Copy the file /components/com_jsn/view/list/tmpl/default_user.php into /templates/your_template_directory/html/com_jsn/list/default_user.php
- edit the new file /templates/your_template_directory/html/com_jsn/list/default_user.php at line 23 replace this
<?php echo $this->user->getField('name'); ?>
with this
<?php echo $this->user->getField('company_name_alias'); ?>

Template override is a Joomla feature, with this when you update Easy Profile the default_user.php not will be rewritten.

Hope that useful
  1. more than a month ago
  2. Support
  3. # 1
marver Accepted Answer
Pro
Very useful!

Thank's again for the great support.
  1. more than a month ago
  2. Support
  3. # 2
marver Accepted Answer
Pro
Content Protected
  1. more than a month ago
  2. Support
  3. # 3
admin Accepted Answer
Admin
For header of profile replace this:
echo JsnHelper::getFormatName($this->data);

with this:
echo $this->data->company_name_alias;


For Url no simple way, sorry.
  1. more than a month ago
  2. Support
  3. # 4
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.