Installation and deployment Questions on installation, system configuration and deployment to the live server.
Version 6.x > Installation and deployment > Adding a login / mini login web part View modes: 
User avatar
Member
Member
eoin-fusio - 3/21/2012 6:37:52 AM
   
Adding a login / mini login web part
I'm trying to find out how to add a webpart to a given page in a site. When I click the properties of the page, select 'General' and at the bottom of that page choose 'Edit regions and web parts' a popup appears with nothing in it.

Yet when I use the site manager and go to the development tab I can see all the available web parts, including logon and mini logon.

How do I add one of those to a page within a site?


User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/21/2012 6:54:22 AM
   
RE:Adding a login / mini login web part
Hi,

On the General tab in that section you can see only editable web parts and regions like statix text, HTML area and so on. In site Manager, you see all web parts on the page template.

If you want to add new web part, the best way is to use the DESIGN tab in CMS Desk interface and use the green plus buttons and then select desired web part.

Best regards,
Juraj Ondrus

User avatar
Member
Member
eoin-fusio - 3/21/2012 6:59:40 AM
   
RE:Adding a login / mini login web part
Hi,

thanks for the quick reply. I don't see a design tab, only 'Content - Tools - My Desk - Administration'

Am I missing some element? I can log in to both the CMSDesk and the site manager so presumably I have high level admin rights.

If I'm missing the design tab, how would I add the Mim-Logon webpart to an existing page?

Thanks!

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/21/2012 7:19:25 AM
   
RE:Adding a login / mini login web part
Hi,

The Design tab is in the Content section of the CMS Desk - in the same row as the Properties tab (user interface). Unless you are using ASPX page templates, in this case the editing is little bit different, please see this overview.

Best regards,
Juraj Ondrus

User avatar
Member
Member
eoin-fusio - 3/21/2012 9:28:21 AM
   
RE:Adding a login / mini login web part
Hi,

I didn't set up the Kentico install that I'm using but I'm pretty sure I'm using the template engine (the new pages I create ask for templates so I guess there's the proof!).

I'm a C# developer and am used to working with code but I'm at a loss as to how to do the following.

I've created a bunch of new pages and have password protected them and made sure that only users of a given role can access that section. The problem is that when I password protect them the user is prompted with a login that looks like the Kentico login, I want to add a login control into the templated page itself. If I could download the page in question I could easily add the code directly but I've created these pages within Kentico and so have no idea if they're real pages or just DB constructs.

Any idea how I should add a nice styled in-page login control?

Thanks,

Eoin.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 3/22/2012 2:14:59 AM
   
RE:Adding a login / mini login web part
Hi,

And have you tried just to create a logon page inside the CMS desk like any other document, add the logon web parts and then also configure the CMS to use this custom logon page in Site Manager -> Settings -> Security and Membership -> Content section -> Website logon page URL field? Also, please use the upper left hand side drop down list to switch between global and site specific settings.

Best regards,
Juraj Ondrus

User avatar
Member
Member
eoin-fusio - 3/23/2012 7:19:16 AM
   
RE:Adding a login / mini login web part
Hi,

thanks for the tip, I will set up a universal login page and redirect the user depending on the role. One last question though, I've created a page called Login but have no idea how I add a web part to it.

I'm using the templates setup.

Thanks.


User avatar
Member
Member
eoin-fusio - 3/23/2012 12:38:41 PM
   
RE:Adding a login / mini login web part
Doh! Just realised I'm on 5.5, can this topic be moved to that forum? Thanks.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/24/2012 9:41:58 AM
   
RE:Adding a login / mini login web part
Hi,

to add a logon mini form web part to aspx page you can use below code:

<%@ Register Src="~/CMSWebParts/Membership/Logon/LogonMiniForm.ascx" TagName="LogonMiniForm" TagPrefix="uc9" %>

<uc9:LogonMiniForm ID="LogonMiniForm1" runat="server" EnableViewState="false" />


This code works in 6.0 version so I leave it there.

Best regards,
Ivana Tomanickova