registration link could be shown as a BUTTON.

This is a forum to suggest new features for mojoPortal. 

This thread is closed to new posts. You must sign in to post in the forums.
2/25/2020 11:29:58 AM
Gravatar
Total Posts 159

registration link could be shown as a BUTTON.

I think it would be a good idea to be able to choose whether in the loginsi module he could choose that the registration link could be shown as a BUTTON. what do you think ?

3/3/2020 9:58:37 AM
Gravatar
Total Posts 2239

Re: registration link could be shown as a BUTTON.

Hi Massi,

You can make this link a button with CSS. The CSS class is 'lnkregister'.

We'll create a theme.skin setting to allow you to change that CSS class to make it a bit easier.

Thanks,
Joe

3/3/2020 11:08:11 AM
Gravatar
Total Posts 159

Re: registration link could be shown as a BUTTON.

Hi Joe, I'm using the bootswatch-sandstone skin but I can't find anything called "lnkregister" in the classes.

 

can you explain how can i do?

3/3/2020 12:33:39 PM
Gravatar
Total Posts 2239

Re: registration link could be shown as a BUTTON.

Hi Massi,

You would have to add it. What we're going to do for the next release is add SkinIDs to the links on the login page. You can go ahead and do this yourself and then use the theme.skin to add the bootstrap button classes.

In /Controls/LoginControl.ascx, go to the two <asp:HyperLink controls towards the bottom of the file and replace them with this:

<asp:HyperLink ID="lnkPasswordRecovery" runat="server" CssClass="lnkpasswordrecovery" SkinID="LoginControlPasswordRecoveryLink"/>
<asp:HyperLink ID="lnkRegisterExtraLink" runat="server" CssClass="lnkregister" SkinID="LoginControlRegisterLink"/>

Next, in your skin's theme.skin file, add the following.

<asp:HyperLink runat="server" SkinID="LoginControlPasswordRecoveryLink" CssClass="lnkpasswordrecovery"/>
<asp:HyperLink runat="server" SkinID="LoginControlRegisterLink" CssClass="lnkregister btn btn-warning"/>

You can change the btn-warning to btn-defaultbtn-primary, btn-danger, btn-info, or btn-success.

Hope this helps,
Joe

3/3/2020 2:27:24 PM
Gravatar
Total Posts 159

Re: registration link could be shown as a BUTTON.

i try but have error page

log report this error :

 

System.Web.HttpParseException (0x80004005): Unknown server tag 'asp:'. ---> System.Web.HttpException (0x80004005): Unknown server tag 'asp:'.

3/3/2020 2:57:19 PM
Gravatar
Total Posts 2239

Re: registration link could be shown as a BUTTON.

Hi Massi,

Email me your theme.skin and your LoginControl.ascx files

Thank you,
Joe

3/3/2020 3:48:35 PM
Gravatar
Total Posts 159

Re: registration link could be shown as a BUTTON.

Pardon Joe,

 

SOLVED

 

there are a SPACE char in ASP tag..

Thank you Joe

3/3/2020 3:56:47 PM
Gravatar
Total Posts 159

Re: registration link could be shown as a BUTTON.

and now if I want to change the size and type of the '' login "button?

3/3/2020 5:37:23 PM
Gravatar
Total Posts 2239

Re: registration link could be shown as a BUTTON.

You can't change the type but you can change the size by modifying the <portal:mojoButton line in the LoginControl.ascx like this:

<portal:mojoButton ID="Login" CommandName="Login" runat="server" Text="Login" SkinID="LoginControlLoginButton"/>

Then, in the theme.skin, add this:

<portal:mojoButton runat="server" SkinID="LoginControlLoginButton" CssClass="btn btn-lg btn-default"/>

Also, I am changing the SkinIDs on the links to be LoginControl... instead of LoginPage... Please make sure you fix yours as well. I have updated my previous post.

Thanks,
Joe

 

3/4/2020 2:31:36 PM
Gravatar
Total Posts 159

Re: registration link could be shown as a BUTTON.

it works perfectly Joe, you're an angel ...

is it possible to have the logout link as a button? what becomes visible under the avatar when you are logged in?

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