Keyword

Replacing URL field with phone in Admin Panel

  • koosha
  • koosha's Avatar Topic Author
  • Offline
  • New Member
More
8 years 7 months ago - 8 years 7 months ago #150996 by koosha
hi everyone
i am using k2, and i just changed url field to phone in my registration form
so, i want to see the users phone number when i go to k2 - > users section
and i want to replace it with users Last visits column for example
but when i try something like this
<td class="k2Date hidden-phone"><?php echo $row->url; ?></td>
in the " /administrator/components/com_k2/views/users/tmpl/default.php " file, it doesn`t show anything !!
i tried it using " $row->K2users->url ", but still it didn`t work.
can anyone help me plz ?
tnx
Last edit: 8 years 7 months ago by koosha.

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

  • Krikor Boghossian
  • Krikor Boghossian's Avatar
  • Offline
  • Platinum Member
More
8 years 7 months ago #151019 by Krikor Boghossian
Replied by Krikor Boghossian on topic Replacing URL field with phone in Admin Panel
The correct way would be via a K2 plugin.
This way you will not lose your edits when you update K2.

This would be a nice starting point. getk2.org/extend/extensions/73-user-extended-fields-for-k2

You can remove from the .xml file from the manifest file in order to reduce the fields. Finally never edit core files, use overrides instead
getk2.org/documentation/tutorials/174-templating-with-k2-and-the-concepts-of-sub-templates

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum