in the package repo, you can download and install the member controls -- these have editable ascx files where you could add some additional logic... but they will perform your loginStatus elements that you speak of.
It's really easy to do with Umbraco version 4. You can use built in ASP.Net member controls. Place this in an ASCX file and create a macro. Insert the macro in your template.
<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="MemberLoginInHeader.ascx.cs" Inherits="osMemberControls.MemberLoginInHeader" %>
Thanks for your answer, Mike! I create this control as u say and all work. But I'm interesting, is there way to log out over XSLT? may be to use XSLT extension?
If you really want to sign out using an xslt macro instead of the asp.net log out control extending your xslt with custom functions might be an option:
xslt to SignOut member
Hi!
In my project I want to create macros, that return "SignOut" link .Using this link member can sign out from site.
I jast wank to create control like in top left corner of codeplex.com:
Registration | Sign In | Home - if member dont logged in
Profile | Sign Out | Home - if user logged in
and my macros like this:
what can type in instead "?????" to make sign out link ?
in the package repo, you can download and install the member controls -- these have editable ascx files where you could add some additional logic... but they will perform your loginStatus elements that you speak of.
could u give me link to this package?
I want to know exactly how to sign out form xslt macro. May be I can use XSLT extension where a write comething like this:
Member.ClearMemberFromClient(Member.GetCurrentMember());
base.Response.Redirect(requestHandler.cleanUrl(), true);
If somebody know, how to do it, please write here.
It's really easy to do with Umbraco version 4. You can use built in ASP.Net member controls. Place this in an ASCX file and create a macro. Insert the macro in your template.
Thanks for your answer, Mike! I create this control as u say and all work. But I'm interesting, is there way to log out over XSLT? may be to use XSLT extension?
I wouldn't recommend using XSLT as it'd connect in with the old membership model, not the new one of v4+.
If you really want to sign out using an xslt macro instead of the asp.net log out control extending your xslt with custom functions might be an option:
http://our.umbraco.org/wiki/reference/xslt/extend-your-xslt-with-custom-functions
In the c# function then put:
and maybe also:
Slace, I am curious, what does it mean when you say 'the old membership model'?
is working on a reply...