Hi,
Forgive my Newbie explanation from here.
I'm trying to work the code as per
http://rtfm.modx.com/display/ADDON/Login.Basic+Setup
Downloaded and installed the Login add-on successfully
Placed this exact code on "Home" Resource Page
[[!Login?
&loginTpl=`lgnLoginTpl`
&logoutTpl=`lgnLogoutTpl`
&errTpl=`lgnErrTpl`
&logoutResourceId=`5`
&redirectToPrior=`1`]]
I have a chunk that i've added Personalize function as below
[[!Personalize?
&yesChunk=`header_for_members`
&noChunk=`header_for_guest`
&ph=`name`
]]
and on the "header_for_guest" chunk i had the following code
<div ID="topmenuforwrap02">
<!--START WRAPPER02-->
<div class="wrapheader02">
<!--START TOPMENUHEADERCONTENT-->
<div class="topmenuheadercontent">
<span class="tmhc"><img src="[[++base_url]]assets/templates/LiveGigs/images/lgclogo_new_alt02.png"><br>Blah ness..The Fox <span class="y">LEARN</span> <span class="o">MORE!"</span></span>
</div>
<!--END TOPMENUHEADERCONTENT-->
<!--START TOPMENUHEADERCONTENTRIGHT-->
<div class="topmenuheadercontentright">
<div id="container">guest
[[!Login?
&loginTpl=`lgnLoginTpl`
&logoutTpl=`lgnLogoutTpl`
&errTpl=`lgnErrTpl`
&logoutResourceId=`5`
&redirectToPrior=`11`]]
<span id="logged_in_status">
</div>
</div>
<!--END TOPMENUHEADERCONTENTRIGHT-->
</div>
<!--END WRAPPER02-->
</div>
</span>
Within the lgnLoginTpl the code is
<div class="loginForm">
<div class="loginMessage">[[+errors]]</div>
<div class="loginLogin">
<form class="loginLoginForm" action="[[~[[*id]]]]" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">[[+actionMsg]]</legend>
<label class="loginUsernameLabel">[[%login.username]]
<input class="loginUsername" type="text" name="username" />
</label>
<label class="loginPasswordLabel">[[%login.password]]
<input class="loginPassword" type="password" name="password" />
</label>
<input class="returnUrl" type="hidden" name="returnUrl" value="[[+request_uri]]" />
[[+login.recaptcha_html]]
<input class="loginLoginValue" type="hidden" name="service" value="login" />
<span class="loginLoginButton"><input type="submit" name="Login" value="[[+actionMsg]]" /></span>
</fieldset>
</form>
</div>
</div>
Saved it and when i went back to the Home Screen, I'm not seeing any Form anywhere.
I view sourced on the page and i noticed the code is evident.
..
<!--START TOPMENUHEADERCONTENTRIGHT-->
<div class="topmenuheadercontentright">
<div id="container">guest
<div class="loginForm">
<div class="loginMessage"></div>
<div class="loginLogin">
<form class="loginLoginForm" action="index.php?id=1" method="post">
<fieldset class="loginLoginFieldset">
<legend class="loginLegend">Login</legend>
<label class="loginUsernameLabel">Username
<input class="loginUsername" type="text" name="username" />
</label>
<label class="loginPasswordLabel">Password
<input class="loginPassword" type="password" name="password" />
</label>
<input class="returnUrl" type="hidden" name="returnUrl" value="" />
<input class="loginLoginValue" type="hidden" name="service" value="login" />
<span class="loginLoginButton"><input type="submit" name="Login" value="Login" /></span>
</fieldset>
</form>
</div>
</div>
<span id="logged_in_status">
</div>
</div>
<!--END TOPMENUHEADERCONTENTRIGHT-->
</div>
<!--END WRAPPER02-->
..
However, when i inspect element on the same location it's not there. Attached.
Any advise much welcome!
Ken