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 лайк
Thanks, but he said it still had deprecation warning. I assumed that was related to Ember 5… Is it not?
1 лайк
I don’t see any errors from it in my logs.
Firepup650
(Firepup Sixfifty)
09.Февраль.2024 21:44:17
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 лайка
Thanks. I tested it, forked it, and made some modifications for my use-case. Very helpful!
1 лайк
Firepup650
(Firepup Sixfifty)
10.Февраль.2024 16:44:52
7
Out of curiosity, what did you change about it?
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.Февраль.2024 17:08:19
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 лайк
jtbayly
10.Февраль.2024 17:13:11
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.Февраль.2024 02:44:29
11
Just finished up an “organization” style link setup, could you see how that works for you?
1 лайк
system
(system)
Закрыл(а) тему
14.Март.2024 02:45:27
12
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.