On 6/13/05, Sean Fulton <[EMAIL PROTECTED]> wrote: > >> Does anyone have an example of how to add a login form to pages on a > >> site? I've looked through login.xsl and I'm not getting it. How can one > >> reuse this to functionality on other pages? > Thanks. Actually, I'm looking to put a login form on on (almost) every > page the same way you'd have a search form on every page.
Sorry. I was confused by the mention of login.xsl. You just want to add an HTML Form for the login: [Copied from the source Lenya generates for "?lenya.usecase=login&lenya.step=showscreen" with all formatting removed.] <form method="get"> <input value="login" name="lenya.usecase" type="hidden"> <input value="login" name="lenya.step" type="hidden"> Username:<input type="text" name="username"> Password:<input type="password" name="password" ><input value="Login" type="submit"> </form> You could create a login.xsl by copying search.xsl, modifying it, and using it as a navigation element. It would be easier and faster just to add the HTML to your XSL. If you need to make it maintainable from one place, put it into common.xsl: <xsl:template name="myLogin">HTML from above</xsl:template> and use call-template in your page2xhtml-*.xsl's: <xsl:call-template name="myLogin"/> BTW: The code in the previous post should have been "lenya.step=showscreen", not "lenya.step=login". solprovider --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]