I currently have a theme component that displays a custom user profile field as a link on the user profile, card, etc.
I did something like this .
That guide is now outdated because of Ember 5.
Does anybody have any guidance on how to update this so it will continue working?
Look at the last post. I installed that and it works like a charm.
I did end up re-working @wilson29thid ’ TC here though it does still have a deprecation warning that I need to fix at some point.
1 Like
Thanks, but he said it still had deprecation warning. I assumed that was related to Ember 5… Is it not?
1 Like
I don’t see any errors from it in my logs.
Firepup650
(Firepup Sixfifty)
February 9, 2024, 9:44pm
5
It’s not an ember 5 depreciation, but it is still a deprecation that I need to fix at some point in time. It’s not a deprecation that breaks the theme component or your site at this time.
I’ll try to remember to get a topic up about it at some point. (The TC, not the deprecation)
2 Likes
jtbayly
February 10, 2024, 4:29pm
6
Thanks. I tested it, forked it, and made some modifications for my use-case. Very helpful!
1 Like
Firepup650
(Firepup Sixfifty)
February 10, 2024, 4:44pm
7
Out of curiosity, what did you change about it?
jtbayly
February 10, 2024, 5:04pm
8
Well, we have two profile fields. One is an organization name and the other is a URL to that org’s website. We display the org name on the profile and link it to the org website.
I also hide the normal unlinked display of both of those fields using CSS so the data isn’t showing up twice.
Firepup650
(Firepup Sixfifty)
February 10, 2024, 5:08pm
9
So your fields are like this?
Field Name
Value
Organization name
Example
Organization URL
example.com
I could probably build that in as it’s own setting at some point.
1 Like
jtbayly
February 10, 2024, 5:13pm
10
Yes. So after my modification, I just put “2” in the first setting of your component and “1” in the second one.
That tells you the modification I had to make. Now that I think of it, here’s a link to the repo . Very quick and dirty.
Firepup650
(Firepup Sixfifty)
February 13, 2024, 2:44am
11
Just finished up an “organization” style link setup, could you see how that works for you?
1 Like
system
(system)
Closed
March 14, 2024, 2:45am
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.