Different page depending on login using FEU and CC
Posted: Tue Nov 25, 2008 4:14 am
Hi,
I am setting up a website that requires that there are two versions of a pricelist.
I have set up two groups in FEU 'group1' and 'group2' and set up two users, 'group1' and 'group2'.
There will only ever be two user accounts.
Want I would like to achieve is that when a 'group1' logs in they see the 'group1' price list and when 'group2' logs in they see the 'group2' pricelist and when NOT logged in it says "please log in to see pricelist". I figured that putting the two price lists into Global Content Blocks may help. I have got the logging in part done but my CC coding is not right (sorry for being dumb).
This is what I have in the "Price List" page...
{if $ccuser->memberof('hospital')} {global_content name='Hospital Content'}
{if $ccuser->memberof('Association')} {global_content name='association content'}
{else} Please log in to see pricelist{/if} {/if}
Can someone advise what I need to do to achieve this?
CMS Version
1.4.1
CustomContent
1.5
FrontEndUsers
1.5.3
I am setting up a website that requires that there are two versions of a pricelist.
I have set up two groups in FEU 'group1' and 'group2' and set up two users, 'group1' and 'group2'.
There will only ever be two user accounts.
Want I would like to achieve is that when a 'group1' logs in they see the 'group1' price list and when 'group2' logs in they see the 'group2' pricelist and when NOT logged in it says "please log in to see pricelist". I figured that putting the two price lists into Global Content Blocks may help. I have got the logging in part done but my CC coding is not right (sorry for being dumb).
This is what I have in the "Price List" page...
{if $ccuser->memberof('hospital')} {global_content name='Hospital Content'}
{if $ccuser->memberof('Association')} {global_content name='association content'}
{else} Please log in to see pricelist{/if} {/if}
Can someone advise what I need to do to achieve this?
CMS Version
1.4.1
CustomContent
1.5
FrontEndUsers
1.5.3