Search

Hi,

anyone can tell me how I can make a login with MEMBER EXTENSION?

I've created a section with Nome, Password and Role. I've created an entry in this section (with default role Public). I've activated in preferences the new section.

In my template I've inserted:

<xsl:template match="data">

<form method="post" autocomplete='off'>
    <label>Username
        <input name="fields[{Member: Username nome}]" type="text" />
    </label>
    <label>Password
        <input name="fields[{Member: Password password}]" type="password" />
    </label>

    <input name="redirect" type="hidden" value="{$current-path}" />
    <input name="member-action[login]" type="submit" value="Login" />
</form>

But it return an Invalid Expression Error.

Can you help me to use this ext or link me to any tutorial (the doc is good and I followed it step to step without results)

Thanks Davide.

<label>Username
    <input name="fields[nome]" type="text" />
</label>
<label>Password
    <input name="fields[password]" type="password" />
</label>

That should do it.

Yeah!

And It's possible display the username ?!

Or i must do some queries?

Once you're logged in check your param pool in ?debug mode. There should be a $member-id parameter that references the entry of the logged in user which you can use in a datasource to get all the data you need.

sorry I do it :)

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details