Skip to Content Skip to Menu

🎃 Happy Halloween! Treat yourself with an awesome discount on memberships! Get 20% off now with code SPOOKY-2024!

[SOLVED] How can I change field value in list view

  • Seagul
  • Seagul
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
11 years 4 months ago - 11 years 4 months ago #229332 by Seagul
Hello,

I am using Joomla 2.5.11 and cb 1.9
in list view I want to change to not view the avatar thumbnail but the avatar image itself.
The cell of the user list ist saved in this variable $fieldView->value
components/com_comprofiler/plugins/templates/default/default.php
around line 490.
Code:
$html[] = '<div class="cbUserListFieldLine">' . $title . '<span class="cbListFieldCont cbUserListFC_' . $fieldView->name . '">' . $fieldView->value . '</span>' . '</div>';

How can I change the value of
$fieldView->value for the avatar?

Thanks
Seagul
Last edit: 11 years 4 months ago by Seagul.

Please Log in or Create an account to join the conversation.

  • krileon
  • krileon
  • ONLINE
  • Posts: 48464
  • Thanks: 8280
  • Karma: 1443
11 years 4 months ago #229340 by krileon
Replied by krileon on topic How can I change field value in list view
No need for that. Simply create a delimiter field and supply it the below substitution. Then add the delimiter field to your userlist in one of its columns.

[cb:userfield field="avatar" reason="profile" /]

Note the code block you provided is generic and renders ALL fields. It will not help you in this regard. The list display of a field is always thumbnail.


Kyle (Krileon)
Community Builder Team Member
Before posting on forums: Read FAQ thoroughly + Read our Documentation + Search the forums
CB links: Documentation - Localization - CB Quickstart - CB Paid Subscriptions - Add-Ons - Forge
--
If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
--
If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please send me a private message with your thread and will reply when possible!
--
Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
--
My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.
The following user(s) said Thank You: Seagul

Please Log in or Create an account to join the conversation.

  • Seagul
  • Seagul
  • OFFLINE
  • Posts: 20
  • Thanks: 1
  • Karma: 0
11 years 4 months ago #229363 by Seagul
Replied by Seagul on topic How can I change field value in list view
Thanks worked great!

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum