Step 6: Customize Login DialogThis is a featured page


If a user tries to edit content without having a valid ticket, they are notified that they need to log in. This notice is presented via a dialog, which is customizable with APIs in the Client Application in two ways: the labels within the dialog and the action it performs when submitted.

Login Dialog Labels

You can change the title text, message text, submit button text, and cancel button text within the dialog. By default, the dialog title says "Please Login," the message says "You must be logged in to use this feature," the submit button says "Login," and the cancel button says "Cancel."

Login Dialog

To customize your login dialog labels, use the Client Application's WPCAPI.setLoginDialogProperties function.

As an example of where a user will see this login dialog, they may click on the "EasyEdit" button without having previously logged in to your site. The following diagram illustrates this:

Login Authentication Path


Take Them To Your Login

Notice in the example above, the dialog attempts to take the user to your site's login page when they click the Login button. By default, that action does nothing; you must tell it what action to perform by overriding the WPCAPI.processLogin function.

Next Step 7: Build Your Own Navigation


superwomyn
superwomyn
Latest page update: made by superwomyn , Oct 29 2008, 2:09 PM EDT (about this update About This Update superwomyn Changing overload to override. - superwomyn

1 word added
1 word deleted

view changes

- complete history)
More Info: links to this page
There are no threads for this page.  Be the first to start a new thread.

Related Content

  (what's this?Related ContentThanks to keyword tags, links to related pages and threads are added to the bottom of your pages. Up to 15 links are shown, determined by matching tags and by how recently the content was updated; keeping the most current at the top. Share your feedback on Wetpaint Central.)