I spent the whole day just trying to find a way to show a list of users' path aliases beside their uid and usernames.

my problem is that I can't find any clue on how to show the "user path alias" .

I appreciate any help.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

babusaheb.vikas’s picture

Hi theroyal,

Its easy to show a list of users path aliases beside their uid and usernames using view and https://www.drupal.org/project/views_php module.

  • create a user view.
  • Add three field under Fields

    User: Uid, User: Name and Global: PHP
  • User: Uid and User: Name having no any special setting
  • In Global: PHP, under Output code put this code
     <?php 
    print url('user/'. $row->uid, array('absolute' => TRUE));
    ?> 

Take a look at attach 2 screenshot for reference.

renatog’s picture

Status: Active » Reviewed & tested by the community

Hi guys.

I tested and #1 works good.

renatog’s picture

Status: Reviewed & tested by the community » Fixed

Thank you very much for help @babusaheb.vikas

Best,

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.