Page 1 of 1

Different page depending on login using FEU and CC

Posted: Tue Nov 25, 2008 4:14 am
by Doug
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

Re: Different page depending on login using FEU and CC

Posted: Tue Nov 25, 2008 4:43 am
by Nullig
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

Re: Different page depending on login using FEU and CC

Posted: Tue Nov 25, 2008 4:54 am
by Doug
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". 

Re: Different page depending on login using FEU and CC

Posted: Tue Nov 25, 2008 5:03 am
by Doug
Sorry mate, I had the wrong group name for 'hospital'.

Thank you, all fixed and working :)