inherit
255695
0
Aug 26, 2018 8:00:06 GMT -8
Glimmericious
2
July 2018
glimmericious
|
Post by Glimmericious on Jul 13, 2018 15:19:37 GMT -8
I'm trying to set a way for users to put a name of their character in one field and then a link to their character's profile in the next. There doesn't seem to be a way to look directly for a custom field, though. Is there a way to do that, or, failing that, to look directly for the next custom field instead? Or is there an easier way to do the entire thing that I'm missing?
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jul 13, 2018 15:33:49 GMT -8
Can you clarify what you mean by looking directly for a custom field? I'm assuming you're attempting to render a combination of two custom fields in a layout template.
|
|
inherit
255695
0
Aug 26, 2018 8:00:06 GMT -8
Glimmericious
2
July 2018
glimmericious
|
Post by Glimmericious on Jul 13, 2018 15:40:39 GMT -8
Oh, my bad! I'm trying to look for the field right after the one with a Character's name. Field one is the name, and then field two is the link. The first field would then be used as the display text and then the other would be used in an onclick event. I was going to shoot for three sets.
|
|
#eb7100
33409
0
1
Nov 24, 2024 4:27:37 GMT -8
Brian
48,130
November 2004
smashmaster3
|
Post by Brian on Jul 16, 2018 8:37:13 GMT -8
I still don't know exactly what you're doing, but you didn't say anything in my post was incorrect so I'm just gonna roll with it. The layout templates can kinda do what you're looking to accomplish, but there's a catch: the link must always render regardless of whether or not the fields are filled out. Something like this would work (where Test is the link and Test2 is the display text) but I wouldn't really recommend it on account of how messy it is to maintain. If the fields aren't filled out the above link will render on the page as this: If you just need this information in the mini-profile and nowhere else the Custom Mini-Profile Creator plugin actually has a way to circumvent both of these problems and only requires you to add a few lines to the very end of Themes > Layout Templates > Mini-Profile. Outside of the mini-profiles you'd need Javascript to do it, though.
|
|