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
Different page depending on login using FEU and CC
Re: Different page depending on login using FEU and CC
Have you tried:
{if $ccuser->memberof('hospital')}
{global_content name='Hospital Content'}
{elseif $ccuser->memberof('Association')}
{global_content name='association content'}
{else}
Please log in to see pricelist
{/if}
Nullig
{if $ccuser->memberof('hospital')}
{global_content name='Hospital Content'}
{elseif $ccuser->memberof('Association')}
{global_content name='association content'}
{else}
Please log in to see pricelist
{/if}
Nullig
Re: Different page depending on login using FEU and CC
Thanks, that works for 'association' (it show the right Global Content Block)
and 'not logged in' displays "Please log in to see pricelist" as it should.
But 'hospital' isn't working, still shows "Please log in to see pricelist".
and 'not logged in' displays "Please log in to see pricelist" as it should.
But 'hospital' isn't working, still shows "Please log in to see pricelist".
Re: Different page depending on login using FEU and CC
Sorry mate, I had the wrong group name for 'hospital'.
Thank you, all fixed and working
Thank you, all fixed and working
