Add the login snippet
Now that we have created a user, let us add a login form that allows the user to log in to the site.
This process is very simple. All that you have to do is call the WebLogin
snippet in the template where you want the login page to be shown. We are going to change the template HTML with the following HTML for the Learning MODx
default template:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<base href="[(site_url)]"></base>
<title>Learning MODx</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso- 8859-1" />
<link rel="stylesheet" type="text/css" href="assets/templates/learningMODx/style.css" />
</head>
<body>
<div id="banner">
<h1>Learning MODx</h1>
</div>
<div id="wrapper">
<div id="container">
<div id="content">
<div id="col...