Support

  1. rashmisoni14
  2. General
  3. Friday, July 04 2014, 12:18 PM
I want to show Title in my list view. How it is possible please help me out..
Accepted Answer
admin Accepted Answer
Admin
Hi,
sorry for late reply. Good, you have PHP and Joomla Knowledge.

in file default_user.php
Add this after defined('_JEXEC') or die;
$db=JFactory::getDbo();
$query=$db->getQuery(true);
$query->select('title,alias')->from('#__jsn_fields');
$db->setQuery($query);
$fields_title=$db->loadAssocList('alias');


replace this:
<?php  echo $this->user->getField($field,true); ?>

with this;
<?php echo JText::_($fields_title[$field]['title']); ?>: <?php  echo $this->user->getField($field,true); ?>
  1. more than a month ago
  2. General
  3. # Permalink
admin Accepted Answer
Admin
Can you please post me your site details? you can use the form below the reply in "site details" tab
  1. more than a month ago
  2. General
  3. # 1
rashmisoni14 Accepted Answer
and in profile view only Username, Name and Last name is showing other fields are not showing pls help me out
  1. more than a month ago
  2. General
  3. # 2
rashmisoni14 Accepted Answer
now title is displaying very well but it is not fetching the value. pls tell me any solution for that. thanks in advance
  1. more than a month ago
  2. General
  3. # 3
rashmisoni14 Accepted Answer
what if i want dynamically. I try to get it dynamically.. i want to override default_user.php file to get dynamically field title of all fields. From an another file i get to know how to get fileld title. i used $field->title but it is not working over there. sorry for my bad english. i m getting alias name by changing php code but not getting the title. pls help me out with php code to get field title.
  1. more than a month ago
  2. General
  3. # 4
admin Accepted Answer
Admin
Ok, sorry I had not realized.
the best and simple way is this (no write php code):

you can create a delimeter(hide on profile,edit, and registered pages) field with this code in description:
<p>Field Title 1: {user alias_of_field1 displayed}</p>
<p>Field Title 2: {user alias_of_field2 displayed}</p>


and set to view in list only delimeter field (remove field1 and field2)

You can include the fields on modules and articles, read here: https://www.easy-profile.com/docs/26-plugin-content.html

Alternative is Joomla template override: but require basic PHP knowledge. if you prefer this other solution, do not worry, we can help you ;)
  1. more than a month ago
  2. General
  3. # 5
rashmisoni14 Accepted Answer
Thanks for the reply. But i want the title of fields not the page.. Please help me out to show field title in list view.
  1. more than a month ago
  2. General
  3. # 6
admin Accepted Answer
Admin
Hi,
on menu item. try to set "Show Page Heading" parameter on yes. You can also customize the title, if you want something of different from menu title. see screenshot ;)
Attachments (1)
  1. more than a month ago
  2. General
  3. # 7
  • 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 Online

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.