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 „Gefällt mir“
Thanks, but he said it still had deprecation warning. I assumed that was related to Ember 5… Is it not?
1 „Gefällt mir“
I don’t see any errors from it in my logs.
Firepup650
(Firepup Sixfifty)
9. Februar 2024 um 21:44
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 „Gefällt mir“
jtbayly
10. Februar 2024 um 16:29
6
Thanks. I tested it, forked it, and made some modifications for my use-case. Very helpful!
1 „Gefällt mir“
Firepup650
(Firepup Sixfifty)
10. Februar 2024 um 16:44
7
Out of curiosity, what did you change about it?
jtbayly
10. Februar 2024 um 17:04
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)
10. Februar 2024 um 17:08
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 „Gefällt mir“
jtbayly
10. Februar 2024 um 17:13
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)
13. Februar 2024 um 02:44
11
Just finished up an “organization” style link setup, could you see how that works for you?
1 „Gefällt mir“
system
(system)
Geschlossen,
14. März 2024 um 02:45
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.