2008 Feb 12

Login Widget for Movable Type 4

login-widget.jpgWhats good with Movable type 4 is its enhanced widget system. Without touching the core movable template, we are able to add a new features to it with just a little additional code. Adding a login field for my multi authored blog is necessary since some my co-authors are not familiar with the Movable Type and i don't think giving in a complete path like cgi-bin/mt/mt.cgi can easily be remembered..


Here's how made it.

1. Navigate to your Blog Templates
2. On the Quickfilters click Widgets
3. Click on Create New Tempate Widget link
4. Paste the following:
<div class="widget-login widget">
    <h3 class="widget-header">Log In</h3>
    <div class="widget-content">
       <form method="post" action="<mt:CGIPath />mt.cgi">
           <label for="username">Username:</label><br>
           <input id="username" name="username" size="20">
           <label for="password">Password:</label><br>
           <input id="password" type="password" name="password" size="20">
           <input type="submit" value="Login" size="20">
        </form>
    </div>
</div>
5. Place in Login as its widget name
6. Click on Save
7. On the main Menu, Select Design-> Widget Sets
8. Depends on how many sidebar you have, click the appropriate widget set. Im using the 3 column widget set, if your using the same, click on it.
9. On the Available widgets column look for the Login widget we have created and drag it into the Installed widget column
10. Click Save Changes
11. Rebuild and publish your blog.

0 TrackBacks

Listed below are links to blogs that reference this entry: Login Widget for Movable Type 4.

TrackBack URL for this entry: http://www.tildemark.com/cgi-bin/mt4/mt-tb.cgi/94

Leave a comment

Today is

About this Entry

This page contains a single entry by tildemark published on February 12, 2008 2:40 AM.

DevjaVu: new developer tool was the previous entry in this blog.

Blog Statistics with Movable Type 4 is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.

Recent Activity

Wednesday

  • tildemark tweeted, "@jjdoblados SmartBro wont work with linux because the installer is an exe file. plus SMARTBRO sucks my dialup connection is even faster."
  • tildemark tweeted, "i think i accidentally drank 2 dosage of my medication. now, im feeling dizzy. is there a way i cound unswallow it?"

Monday

  • tildemark tweeted, "I'm feeling tired. i hope the clock will run a bit faster this time."
  • tildemark tweeted, "got sick for about 3 days. ended up finishing nwn2."

Thursday

  • tildemark tweeted, "im planning to move again, but i dont know where."

Sunday

  • tildemark tweeted, "I drank 3 sachets of instant coffee, ang now i cant sleep even if my eyes are sleepy? I can hear voices.wtf"

Friday

  • tildemark tweeted, "im so sleepy. Zzzzzzzz"

Sunday

  • tildemark tweeted, "some of my scipts are not working with godaddy. but works fine on the others. not mention their poorly coded admin page"

Thursday

  • tildemark tweeted, "so many pending tasks i need to finish. need more coffee !!!"
  • tildemark tweeted, "@gmtristan i dont think that is true."