Page 1 of 1

[SOLVED] Custom Content

Posted: Tue Mar 31, 2009 3:26 am
by kateb
I have custom Content 1.5.2 and FEU 1.6.4 installed successfully on version 1.5.3
Everything works fine, but I can't seem to get past the basic

" {cms_module module=CustomContent}
  {if $ccuser->loggedin() && $ccuser->memberof('clients')}
  Here is some custom content just for clients!
  {/if}"

The above code is within my template and works fine. But, I want to have it so that when clients log in they are shown specific content just for them (rather than a whole group). Alternatively, each client could be redirected to their own specific page. This page would need to be secure, eg, if someone tries to access the page directly by typing the link directly into their browser (rather than using the login page), then they either need to be sent to the login page or asked for their username and password.

So far, the only answer I can come up with is to have a specific template for every client, or add if/else statements to the template for every client, both of which are not feasible  :(  My guess is that there is a really simple answer and it involves "$ccuser->username()" but silly me just can't figure this out!! Any help is really appreciated!! Thanks.

Re: Custom Content

Posted: Tue Mar 31, 2009 7:48 am
by alby
kateb wrote: The above code is within my template and works fine. But, I want to have it so that when clients log in they are shown specific content just for them (rather than a whole group). Alternatively, each client could be redirected to their own specific page.
Have you seen in FEU settings?
PageID/Alias to jump to after code verification

Alby

Re: Custom Content

Posted: Tue Mar 31, 2009 8:55 am
by kateb
Awesome!! I saw it but just assumed that it was a default jump to page for everyone - duh!! It works just as I want it to now. Thanks a million  ;)

Re: [SOLVED] Custom Content

Posted: Tue Apr 21, 2009 7:08 pm
by jtcreate
I'm having a similar issue, but am missing something on the "PageID/Alias to jump to after code verification" area. What did you put in there? And how did you set up the resulting page?

So, user comes to login page. On login, they are redirected to a page named as their username? I'm missing something in the redirect setup. Any insight or more detailed info would be super helpful.

Thank you,
Jeff T.

Re: [SOLVED] Custom Content

Posted: Tue Apr 21, 2009 7:20 pm
by jtcreate
Cancel that. Got it working! I had the {$username} in the wrong box in the FEU settings. It's working great now!