O'Reilly logo

MODx Web Development by Antano Solar John

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required