Adding custom buttons to Webstore UI

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
3/12/2018 5:51:41 AM
Gravatar
Total Posts 13

Adding custom buttons to Webstore UI

Hi all,

I was digging around in the Webstore.UI code trying to find a way to add a custom button since i didnt find anything in the Webstore itself. I came across the file AdminDashboard.aspx.designer.cs however the documentation said all of these buttons were generated by a tool. Does anyone know which tool this is so i can add an extra custom button? The function for the button will be a sync with an external database.

Thanks in advance for the replies

micha

3/12/2018 12:44:41 PM
Gravatar
Total Posts 2253

Re: Adding custom buttons to Webstore UI

Hi Micha,

The designer files are generated by visual studio. You don't add things to the designer files, you add things to webform controls (ascx) or pages (aspx) and visual studio adds a reference to the class which defines the things (like buttons) you add to the controls or pages.

If you want to add a button which will initiate a sync with an external database, you could add it to the settings of the module. See this documentation for more information.

Thanks,
Joe

3/19/2018 7:45:47 AM
Gravatar
Total Posts 13

Re: Adding custom buttons to Webstore UI

Hi Joe,

Thanks for your answer but i have two problems:

1. Within the adding of new setting page you can't select the control type to be a button.

2.The newly added setting appears in the settings part of the WebStore, whereas i want it to appear in the Store manager page of the WebStore feature.

Do you know how to solve one or both of these things? It would really help me out.

Thanks in advance for your answer

Micha

4/4/2018 2:39:41 AM
Gravatar
Total Posts 13

Re: Adding custom buttons to Webstore UI

Does no one have a solution to this?

4/13/2018 3:33:05 PM
Gravatar
Total Posts 92

mojoPortal Hosting & Design @ i7MEDIA!

Re: Adding custom buttons to Webstore UI

Hi Micha,

You would need to edit the WebStore/AdminDashboard.aspx and WebStore/AdminDashboard.aspx.cs code files. Add the button in the .aspx file and the code for what the button needs to do in the .aspx.cs file.

Hope this helps,
Elijah

4/18/2018 3:19:56 AM
Gravatar
Total Posts 13

Re: Adding custom buttons to Webstore UI

Thanks Elijah, this worked!

5/2/2018 5:10:36 AM
Gravatar
Total Posts 13

Re: Adding custom buttons to Webstore UI

Another question:

I can see that the text of the buttons is also automatically generated in another file. But which tool generates this file? Since i don't really want to have a loose string with the text for the button. I want it to be done in the same way as all the other buttons.

 

Thanks for the help again

Micha

You must sign in to post in the forums. This thread is closed to new posts.