You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 14/umbraco-cms/tutorials/members-registration-and-login.md
+23-15Lines changed: 23 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,43 +6,44 @@ description: >-
6
6
7
7
# Member Registration and Login
8
8
9
-
Using tools available on a fresh install of Umbraco CMS, you can create a frontend-based registration and login functions and restrict access to specific areas of your site based on this system.
9
+
With a fresh Umbraco CMS install, you can create frontend registration, login functions, and restrict site access based on the system.
10
10
11
-
By the end of this tutorial, you will know how to implement a basic register/login functionality on your website, hide pages from non-logged-in members, and assign newly registered members to specific member groups.
11
+
By the end of this tutorial, you will learn how to:
12
12
13
-
## Install Umbraco and The Starter Kit
13
+
- Implement a basic register/login functionality on your website,
14
+
- Hide pages from non-logged-in members, and
15
+
- Assign newly registered members to specific member groups.
14
16
15
-
Make sure you have the latest [dotnet templates](../fundamentals/setup/install/install-umbraco-with-templates.md) installed.
17
+
## Prerequisites
16
18
17
-
Create an empty directory, open a terminal and run:
19
+
1. Install the latest [dotnet templates](../fundamentals/setup/install/install-umbraco-with-templates.md): `dotnet new umbraco`.
18
20
19
-
```bash
20
-
dotnet new umbraco
21
-
dotnet add package Umbraco.TheStarterKit
22
-
dotnet run
23
-
```
21
+
2. Install the Umbraco Starter Kit: `dotnet add package Umbraco.TheStarterKit`
22
+
23
+
3. Run the project: `dotnet run`
24
24
25
-
Complete the installer and login to the backoffice.
25
+
4.Complete the installer and login to the backoffice.
26
26
27
27
## Create partial views for Registration and Login
28
28
29
29
1. Navigate to the Settings section in the backoffice.
30
30
2. Locate the Partial Views entry under Templating in the left-hand section.
31
31
3. Click the "+" to create a new partial view.
32
32
33
-
4. Choose _New partial view from snippet..._: in the dialog that follows
33
+
4. Choose **New partial view from snippet...**.
34
34
35
35

36
36
37
-
5. Pick the _Login_ snippet in the next dialog.
37
+
5. Pick the **Login** snippet from the list.
38
38
39
39

40
40
41
-
6. Name the partial view "Login" and save it:
41
+
6. Name the partial view **Login** and save it:
42
42
43
43

44
44
45
-
Repeat the above steps using the _Register Member_ and _Login Status_ snippets. Save the partial views as "Register" and "LoginStatus", respectively.
45
+
7. Repeat the above steps using the _Register Member_ and _Login Status_ snippets.
46
+
8. Save the partial views as "Register" and "LoginStatus" respectively.
46
47
47
48
The Partial Views list should now look like this:
48
49
@@ -54,6 +55,13 @@ To render these partial views, we need a new Document Type with a dedicated temp
54
55
55
56
1. Create a new Document Type with a template and name it "Login".
56
57
2. Setup the "Login" Document Type to be composed by the "Content Base" and "Navigation Base" Document Types.
58
+
59
+

60
+
61
+
{% hint style="info" %}
62
+
The "Content Base" and "Navigation Base" Document Types are available once the Umbraco Starter Kit is installed. For more information, see the [Prerequisites](#prerequisites) section.
63
+
{% endhint %}
64
+
57
65
3. Allow the "Login" Document Type as a child under the "Home" Document Type.
Copy file name to clipboardExpand all lines: 15/umbraco-cms/tutorials/members-registration-and-login.md
+24-16Lines changed: 24 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,43 +6,44 @@ description: >-
6
6
7
7
# Member Registration and Login
8
8
9
-
Using tools available on a fresh install of Umbraco CMS, you can create a frontend-based registration and login functions and restrict access to specific areas of your site based on this system.
9
+
With a fresh Umbraco CMS install, you can create frontend registration, login functions, and restrict site access based on the system.
10
10
11
-
By the end of this tutorial, you will know how to implement a basic register/login functionality on your website, hide pages from non-logged-in members, and assign newly registered members to specific member groups.
11
+
By the end of this tutorial, you will learn how to:
12
12
13
-
## Install Umbraco and The Starter Kit
13
+
- Implement a basic register/login functionality on your website,
14
+
- Hide pages from non-logged-in members, and
15
+
- Assign newly registered members to specific member groups.
14
16
15
-
Make sure you have the latest [dotnet templates](../fundamentals/setup/install/install-umbraco-with-templates.md) installed.
17
+
## Prerequisites
16
18
17
-
Create an empty directory, open a terminal and run:
19
+
1. Install the latest [dotnet templates](../fundamentals/setup/install/install-umbraco-with-templates.md): `dotnet new umbraco`.
18
20
19
-
```bash
20
-
dotnet new umbraco
21
-
dotnet add package Umbraco.TheStarterKit
22
-
dotnet run
23
-
```
21
+
2. Install the Umbraco Starter Kit: `dotnet add package Umbraco.TheStarterKit`
22
+
23
+
3. Run the project: `dotnet run`
24
24
25
-
Complete the installer and login to the backoffice.
25
+
4.Complete the installer and login to the backoffice.
26
26
27
27
## Create partial views for Registration and Login
28
28
29
29
1. Navigate to the Settings section in the backoffice.
30
30
2. Locate the Partial Views entry under Templating in the left-hand section.
31
31
3. Click the "+" to create a new partial view.
32
32
33
-
4. Choose _New partial view from snippet..._: in the dialog that follows
33
+
4. Choose **New partial view from snippet...**.
34
34
35
35

36
36
37
-
5. Pick the _Login_ snippet in the next dialog.
37
+
5. Pick the **Login** snippet from the list.
38
38
39
39

40
40
41
-
6. Name the partial view "Login" and save it:
41
+
6. Name the partial view **Login** and save it:
42
42
43
43

44
44
45
-
Repeat the above steps using the _Register Member_ and _Login Status_ snippets. Save the partial views as "Register" and "LoginStatus", respectively.
45
+
7. Repeat the above steps using the _Register Member_ and _Login Status_ snippets.
46
+
8. Save the partial views as "Register" and "LoginStatus" respectively.
46
47
47
48
The Partial Views list should now look like this:
48
49
@@ -52,8 +53,15 @@ The Partial Views list should now look like this:
52
53
53
54
To render these partial views, we need a new Document Type with a dedicated template (see also [Defining Content](../fundamentals/data/defining-content/README.md)):
54
55
55
-
1. Create a new Document Type with a template and name it "Login".
56
+
1. Create a new **Document Type with a template** and name it "Login".
56
57
2. Setup the "Login" Document Type to be composed by the "Content Base" and "Navigation Base" Document Types.
58
+
59
+

60
+
61
+
{% hint style="info" %}
62
+
The "Content Base" and "Navigation Base" Document Types are available once the Umbraco Starter Kit is installed. For more information, see the [Prerequisites](#prerequisites) section.
63
+
{% endhint %}
64
+
57
65
3. Allow the "Login" Document Type as a child under the "Home" Document Type.
0 commit comments