How can I add a custom button in our user profile summary and card view?
We wanted to add a CTA that will do something (e.g., redirect) but no data saving…
Essentially, a plugin outlet is a way to inject code at a specific place.
It would be recommended to create a theme component using the theme CLI and use a separate files as I did on my theme component here (don’t hesitate to clone my repository so you can test/modify it):
However, you can still test it from your <script> tag:
In your case, you would write:
<script type='text/x-handlebars' data-template-name='/connectors/user-profile-controls/my_connector_name'>
Template content here
</script>
Notice the first line. We use user-profile-controls as the connector name, and my_connector_name can be whatever you want.
Awesome! I am now getting the picture and since it can be tested out in the script tag then atleast we can test it first before creating the component. Thanks again