Jump to content

[Solved] Custom Profile Field in recordRow template


Kit the Human
 Share

Recommended Posts

Like it says on the tin.

 

How would I go about displaying a particular custom profile field of the record's author in the recordrow template?

Edited by Kit the Human

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

  • Admin
{expression="$row->author()->profileFields()['core_pfieldgroups_10']['core_pfield_23']"}

The group is the like category it sits in and the field is the field ID. @Kit the Human

  • Thank you 1

0_mainsignature.jpg

image.png

Profile set made by myself and original Artwork by Fae Merriman, my daughter.

 

 

Link to comment
Share on other sites

That works thanks! But it's also insisting on rendering things like line breaks as HTML. Adding |raw has no effect on it. Anything I'm missing?

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

  • Admin

Screenshot love @Kit the Human

0_mainsignature.jpg

image.png

Profile set made by myself and original Artwork by Fae Merriman, my daughter.

 

 

Link to comment
Share on other sites

bam! (the ipsGrid etc is just my dummy text)

Capture.PNG.d27741c623d78d6c79ddde3681550951.PNG

 

EDIT: field type is Select Box

Edited by Kit the Human

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

{expression="$row->author()->profileFields()['core_pfieldgroups_5']['core_pfield_9']" raw="true"}

 

is the solution!

  • You're Welcome 1

 

sig.png.30b42565d04d922988370bf14e1447bc.png

PSI: an Occult Investigations RP

Roleplay Architects: Grab a friend (or many friends!) and just write.

You can also find me at:

static-historicalrp.jpg  B8CB4x.png rpabutton.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use, Guidelines and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.