FEU, Custom Content & Gallery
Posted: Sat Aug 25, 2012 8:58 pm
Hello everybody.
What I need to do is as following: On a photography website, I need to upload the proofs for each client, for each photo session that that client has. Also, all these galleries should be only accessible with username/password.
I don't know how to approach this so it would work something in this way:
The page /clients should have the login form. After a user logs in, he/she should only see the albums that are corresponding to his/hers username. When an album is clicked to be redirected to a page that will show only that album. I was thinking to have a page for each album that client has.
Each client would be in a different group, so it would be easier to implement.
So if I would go with something like this:
{if
($ccuser->memberof('group1') && $page_alias=='group1-page') ||
($ccuser->memberof('group2') && $page_alias=='group2-page') ||
($ccuser->memberof('group3') && $page_alias=='group3-page') ||
($ccuser->memberof('group4') && $page_alias=='group4-page') ||
($ccuser->memberof('group5') && $page_alias=='group5-page')
}
what code should be here to show only let's say group3 if it's logged in?
{else} {FrontEndUsers nocaptcha="1"}
{else} {redirect_page page='error-page'}
{/if}
Thank you.
What I need to do is as following: On a photography website, I need to upload the proofs for each client, for each photo session that that client has. Also, all these galleries should be only accessible with username/password.
I don't know how to approach this so it would work something in this way:
The page /clients should have the login form. After a user logs in, he/she should only see the albums that are corresponding to his/hers username. When an album is clicked to be redirected to a page that will show only that album. I was thinking to have a page for each album that client has.
Each client would be in a different group, so it would be easier to implement.
So if I would go with something like this:
{if
($ccuser->memberof('group1') && $page_alias=='group1-page') ||
($ccuser->memberof('group2') && $page_alias=='group2-page') ||
($ccuser->memberof('group3') && $page_alias=='group3-page') ||
($ccuser->memberof('group4') && $page_alias=='group4-page') ||
($ccuser->memberof('group5') && $page_alias=='group5-page')
}
what code should be here to show only let's say group3 if it's logged in?
{else} {FrontEndUsers nocaptcha="1"}
{else} {redirect_page page='error-page'}
{/if}
Thank you.