I was creating a View for a listing of gamertags but when I used User:Xbox Gamertag in Views,
the output was the actual gamercard rather than the gamertag.
Is there any way to make this display gamertag only?
Thanks

Comments

pobster’s picture

Hmmm... This is why I hate implementing stuff which I'm never myself going to use, I end up just doing exactly per the request without actually putting any thought into what else may be desirable...

For this release (2.6) you'll need to alter this line in: plugins/views_handler_field_user_gamertags.inc;

return theme('gamertags_render', $account);

Obviously just return the text and don't pass it through the theme function.

I guess I can add a checkbox in the Views field settings but I'm not going to have any time until probably... Tuesday? Just literally walking out the door right now.

Pobster

pobster’s picture

Version: 6.x-2.6 » 6.x-2.x-dev
Status: Active » Fixed

In dev for testing. Will possibly commit a 2.53 release on the back of this - it's a good suggestion! I'm not keen on the tokens now though, they need a text solution as well... May do this first before I tag, still dev looks good at the moment!

Pobster

pobster’s picture

Version: 6.x-2.x-dev » 6.x-2.53
Status: Fixed » Closed (fixed)