- Posts: 20
COMMUNITY FORUM
Add dropdown field to k2 user profile
- Tibbe van Asten
- Topic Author
- Offline
- Junior Member
Less
More
9 years 6 months ago #132713
by Tibbe van Asten
Replied by Tibbe van Asten on topic Re: Add dropdown field to k2 user profile
No ideas on how to display the value of just one field from the User Extended Fields extention?
Please Log in or Create an account to join the conversation.
- Lefteris
- Offline
- Moderator
Less
More
- Posts: 8743
9 years 6 months ago #132714
by Lefteris
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Lefteris on topic Re: Add dropdown field to k2 user profile
@Tibbe van Asten
Try this:
Try this:
<?php
$fields = new JRegistry($user->plugins);
echo $fields->get('userExtendedFieldsbirthday');
?>
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Tibbe van Asten
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
9 years 5 months ago #134173
by Tibbe van Asten
Replied by Tibbe van Asten on topic Add dropdown field to k2 user profile
Finally, I got it working in a K2 Users module! Thank you so much!!
In the K2 content module this is not working. Do you have an idea on that?
In the K2 content module this is not working. Do you have an idea on that?
Please Log in or Create an account to join the conversation.
- Tibbe van Asten
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
9 years 5 months ago #134305
by Tibbe van Asten
Replied by Tibbe van Asten on topic Add dropdown field to k2 user profile
Okay, I could not figure that out.
Can you give me an example?
Can you give me an example?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
9 years 5 months ago #134345
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Add dropdown field to k2 user profile
Sorry I accidentally mislead you.
This plugin is not rendered in that module.
You can use an extrafield if you want to show additional information in that module.
This plugin is not rendered in that module.
You can use an extrafield if you want to show additional information in that module.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Tibbe van Asten
- Topic Author
- Offline
- Junior Member
Less
More
- Posts: 20
9 years 5 months ago #134352
by Tibbe van Asten
Replied by Tibbe van Asten on topic Add dropdown field to k2 user profile
So there is no way to show a user extended field in the k2 content module?
An extrafield is not a solution for me, because it's item-related and not user-related.
An extrafield is not a solution for me, because it's item-related and not user-related.
Please Log in or Create an account to join the conversation.
- Kelsey Brookes
- Offline
- Elite Member
7 years 11 months ago #154588
by Kelsey Brookes
Replied by Kelsey Brookes on topic Add dropdown field to k2 user profile
Hi Krikor, Lefteris,
Lefteris wrote this earlier:
Which works perfectly in mod_k2_users - what do I need to replicate this functionality within com_k2 user.php?
Lefteris wrote this earlier:
<?php
$fields = new JRegistry($user->plugins);
echo $fields->get('userExtendedFieldsbirthday');
?>
Which works perfectly in mod_k2_users - what do I need to replicate this functionality within com_k2 user.php?
Please Log in or Create an account to join the conversation.
- Krikor Boghossian
- Offline
- Platinum Member
Less
More
- Posts: 15920
7 years 11 months ago #154633
by Krikor Boghossian
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Krikor Boghossian on topic Add dropdown field to k2 user profile
You meant the profile.php file?
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.