Skip to content

Commit 1ea89bb

Browse files
committed
Updated steps for clarity
1 parent dc76f32 commit 1ea89bb

File tree

4 files changed

+47
-31
lines changed

4 files changed

+47
-31
lines changed
43.7 KB
Loading

14/umbraco-cms/tutorials/members-registration-and-login.md

Lines changed: 23 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,44 @@ description: >-
66

77
# Member Registration and Login
88

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.
1010

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:
1212

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.
1416

15-
Make sure you have the latest [dotnet templates](../fundamentals/setup/install/install-umbraco-with-templates.md) installed.
17+
## Prerequisites
1618

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`.
1820

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`
2424

25-
Complete the installer and login to the backoffice.
25+
4. Complete the installer and login to the backoffice.
2626

2727
## Create partial views for Registration and Login
2828

2929
1. Navigate to the Settings section in the backoffice.
3030
2. Locate the Partial Views entry under Templating in the left-hand section.
3131
3. Click the "+" to create a new partial view.
3232

33-
4. Choose _New partial view from snippet..._: in the dialog that follows
33+
4. Choose **New partial view from snippet...**.
3434

3535
![Create a new partial view](images/v14-create-partial-view-from-snippet.png)
3636

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

3939
![Create a new partial view from the Login snippet](images/v14-create-partial-view-from-login-snippet.png)
4040

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

4343
![Edit and save the "Login" partial view](images/v14-create-login-partial-view.png)
4444

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.
4647

4748
The Partial Views list should now look like this:
4849

@@ -54,6 +55,13 @@ To render these partial views, we need a new Document Type with a dedicated temp
5455

5556
1. Create a new Document Type with a template and name it "Login".
5657
2. Setup the "Login" Document Type to be composed by the "Content Base" and "Navigation Base" Document Types.
58+
59+
![Composition View](images/composition-view.png)
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+
5765
3. Allow the "Login" Document Type as a child under the "Home" Document Type.
5866

5967
## Render the partial views in the template
43.7 KB
Loading

15/umbraco-cms/tutorials/members-registration-and-login.md

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,43 +6,44 @@ description: >-
66

77
# Member Registration and Login
88

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.
1010

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:
1212

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.
1416

15-
Make sure you have the latest [dotnet templates](../fundamentals/setup/install/install-umbraco-with-templates.md) installed.
17+
## Prerequisites
1618

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`.
1820

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`
2424

25-
Complete the installer and login to the backoffice.
25+
4. Complete the installer and login to the backoffice.
2626

2727
## Create partial views for Registration and Login
2828

2929
1. Navigate to the Settings section in the backoffice.
3030
2. Locate the Partial Views entry under Templating in the left-hand section.
3131
3. Click the "+" to create a new partial view.
3232

33-
4. Choose _New partial view from snippet..._: in the dialog that follows
33+
4. Choose **New partial view from snippet...**.
3434

3535
![Create a new partial view](images/v14-create-partial-view-from-snippet.png)
3636

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

3939
![Create a new partial view from the Login snippet](images/v14-create-partial-view-from-login-snippet.png)
4040

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

4343
![Edit and save the "Login" partial view](images/v14-create-login-partial-view.png)
4444

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.
4647

4748
The Partial Views list should now look like this:
4849

@@ -52,8 +53,15 @@ The Partial Views list should now look like this:
5253

5354
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)):
5455

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".
5657
2. Setup the "Login" Document Type to be composed by the "Content Base" and "Navigation Base" Document Types.
58+
59+
![Composition View](images/composition-view.png)
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+
5765
3. Allow the "Login" Document Type as a child under the "Home" Document Type.
5866

5967
## Render the partial views in the template

0 commit comments

Comments
 (0)