Different page depending on login using FEU and CC

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
Doug
New Member
New Member
Posts: 8
Joined: Tue Nov 25, 2008 3:44 am

Different page depending on login using FEU and CC

Post 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
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Different page depending on login using FEU and CC

Post 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
Doug
New Member
New Member
Posts: 8
Joined: Tue Nov 25, 2008 3:44 am

Re: Different page depending on login using FEU and CC

Post 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". 
Doug
New Member
New Member
Posts: 8
Joined: Tue Nov 25, 2008 3:44 am

Re: Different page depending on login using FEU and CC

Post by Doug »

Sorry mate, I had the wrong group name for 'hospital'.

Thank you, all fixed and working :)
Post Reply

Return to “Modules/Add-Ons”