User profiles
MODx allows us to implement user profiles by using the WebLoginPE
snippet. In this section, we will be using the WebLoginPE
snippet to list the users, view their profile, and edit one's own profile.
Installing WebLoginPE
WebLoginPE
has a nice support site. You may want to look at http://sottwell.com/assets/snippets/webloginpe/docs/index.html.
1. Download the snippet from the MODx repository at http://modxcms.com/extras/package/?package=495.
2. Extract the snippet.
3. Create a folder named
webloginpe
in theassets/snippets
folder, in the root directory of the MODx installation.4. Copy all of the files from the extracted folder to the folder
assets/snippets/webloginpe
.5. Create a new snippet by using the MODx Manager, with the name
WebLoginPE
, and using the code fromwebloginpe.snippet.php
file in the extracted folder as the snippet code.
Edit profile
Now that we have WebLoginPE
installed, let us use it.
[!WebLoginPE? &type=`profile`!]
A call to the snippet with the parameters and...