Active
Project:
Profile 2
Version:
7.x-1.3
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2013 at 05:25 UTC
Updated:
5 Mar 2014 at 07:14 UTC
Jump to comment: Most recent
Sorry, I am not sure how to get this into the documentation, but it has been asked more than once here.
Here is the code free way to get your default "submitted by USERNAME" on nodes to link to your custom profile 2 page instead of the default user account. Because really, why set up custom profiles if other users cannot find them easily?
Submitted by: <a href="[current-user:profile-public-profile:url]">[current-user:field_real_name]</a>Note: Two things in my example. First is I called my profile 2 type "Public Profile". Second, is I am used the field "real name" for the name, instead of the username. You can also integrate this with: https://drupal.org/project/realname
Thank you to the creator of this module.
Comments
Comment #0.0
mach5_kel commentedcleaned up formatting
Comment #1
mach5_kel commented*
Comment #2
joco_sp commentedThis is working with content typs, but how to make it work with Entyties?
Comment #2.0
joco_sp commentedmore formatting, jesh
Comment #3
mineobile commentedI have added the module and tokens and have gone in and replaced the byline text to what you supplied above. I also changed the tokens to the ones for my website but nothing is changing. I've also tried clearing my cache. Any info on why this is not working?
Comment #4
mach5_kel commentedAre you sure the submitted by module is working? Try entering some plain text into it to see. If it is working, then make sure that you are using the correct tokens. If you think it is the correct tokens, then make sure that that user actually has a profile created. I found that my links didnt work until there was actually some content in the profile. I hope that helps. If you find a solution, please post it here to help others.