1. davidunwin
  2. Support
  3. Sunday, February 24 2019, 02:25 PM
2 questions:
1. Is it possible to put html code around fields displayed in the list ? We have a some of our own fields , one of these is called 'Position' By default it looks like a normal text field when displayed. We would like to make is Bold and increase the text size. Is this possible?
2. On of the fields we want to display is a users email address. We put this as the last field in the list in the module. but when we save the module, the field email address moves to the top?? How can we stop this .
The screen shots attached show the before save and after save of the module
Attachments (2)
Accepted Answer
admin Accepted Answer
Admin
Hi,
1) this is already possible, you can do this by adding a simple CSS code to your template like this:
.jsn-l-fields .field_alias{font-size:25px;font-weight:bold}
Replace "field_alias" with the alias of "Position" field

2) the order is the same order of registration/edit profile field. Anyway there are different ways to manage this, for example:
Way 1
Use HTML delimiter field type: instead to show email field you can show some HTML delimiter field type that load email address with the Content Plugin
- Create an HTML delimiter field type at the bottom of the other fields with this code in description
{user email displayed}
This code will be replaced by email address of the user
- Set this field to be not available in edit profile, registration and profile pages
- Set the module to show the new HTML delimiter field type instead email address
Docs about HTML delimiter field type at http://docs.easy-profile.com/index.php/article/html-delimiter-field-type
Docs about content plugin at http://docs.easy-profile.com/index.php/article/content-plugin

Way 2
You can use template override to customize the HTML code of the list, and of course you can load email field after other field.
- Copy file from /modules/mod_jsnusers/tmpl/default.php at /templates/your-template-folder/html/mod_jsnusers/default.php
- Edit the new file
  1. more than a month ago
  2. Support
  3. # Permalink
davidunwin Accepted Answer
Hi
Answer to my Question 1 - That works Fine.....Thank you

Answer to My Question 2 - That works fine also with WAY 1 .

Thanks so much for your help
Kind regards

David
  1. more than a month ago
  2. Support
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.