I have several protected folders, each is protected so that only a single member group can access them. However, when a member logs in there's no way of them knowing where they can go (as the navigation for their permitted content obviously isn't public).
So how can I present a list of nodes which are editable by the member currently signed in? Ideally I'd like to embed this as a macro on the log-in page, so that when the member is logged in they're given direct links to their private content.
Would you please post the definition of $source? In other words, there must have been a statement something like: <xsl:variable name="member" select="umbraco.library:GetCurrentMember()" />
$source in this context is just a node somewhere in the tree (e.g. the Home node).
The code just makes sure that IF a document is protected, to check that the currently logged in member has access to the document.
Not: The XSLT above was written for the "legacy XML Schema" and won't work in a newer Umbraco install - here is a version of the XSLT for the new (default since 4.5.2) Schema:
List all pages a member can edit
Hi,
I have several protected folders, each is protected so that only a single member group can access them. However, when a member logs in there's no way of them knowing where they can go (as the navigation for their permitted content obviously isn't public).
So how can I present a list of nodes which are editable by the member currently signed in? Ideally I'd like to embed this as a macro on the log-in page, so that when the member is logged in they're given direct links to their private content.
Thanks all...
Sorry, the title of this post should read: list all pages a member can view (not edit)!
Hi Dan, you may be able to use the umbraco.library methods HasAccess and IsProtected.
This snippet by Drobar is from an old thread:
HasAccess is the one, thanks very much Tommy!
Would you please post the definition of $source? In other words, there must have been a statement something like: <xsl:variable name="member" select="umbraco.library:GetCurrentMember()" />
cheers
mark.
Hi Mark,
$source in this context is just a node somewhere in the tree (e.g. the Home node).
The code just makes sure that IF a document is protected, to check that the currently logged in member has access to the document.
Not: The XSLT above was written for the "legacy XML Schema" and won't work in a newer Umbraco install - here is a version of the XSLT for the new (default since 4.5.2) Schema:
/Chriztian
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.