How do I add an action to a Member page
# package-development
h
[Solved] How do I add an action to a Member page in Umbraco 14 like below (SendValidation link), it needs to open a dialog with a send button 😄 https://cdn.discordapp.com/attachments/882984798719729704/1247936425035563022/image.png?ex=6667c59d&is=6666741d&hm=8c9dbb59ac84fe31095909eb9c9529ceb083a295a1611002030b933f55a732eb&
w
See Examine Peek source code for this
As I do something like this
Its an Entity Action
But yeh go src code diving
The critical line will be
forEntityTypes: [ UMB_DOCUMENT_ENTITY_TYPE ]
To change it to some constant that is for Members
h
thanks, guess I better start learning how to use all this new fangled stuff 😭
w
Yep all learning together 😄
Got a handy powershell script to get you scafoldded with some of the dull chore stuff of getting setup
h
That might help I suppose but this is part of my forum package so may be overkill as it is the only thing that integrates with the backoffice tbh
w
Ah OK
Well JS and umbraco-package.json need to end up in App_Plugins/ForumPackage/ or similar folder in your website
h
Yes, might just have a play as a separate add on package for now so I can work out what I'm doing first 😄
h
Sounds like a good plan for now, have managed to get everything else working apart from this bit
Thanks for the hint anyway, it doesn't look super complicated, onwards and upwards 🤣
w
Good luck have fun
h
So far I have managed to add a link to the content action menu and open a dialogue when clicked, so far so good 😊 however I want it to appear on a member record action menu, any ideas as to how to get that working?
Managed to figure that bit out 🙂 Almost there, just need to work out how to actually perform my required action when the modal is submitted 😄
33 Views