Page 1 of 1

FEU/CC problems

Posted: Wed Dec 13, 2006 8:38 am
by axu-h
Im using CMSMS version 1.0.2, FEU 1.1.1 and CC 1.4.3. I have some problems with both FEU and CC. Firstly, I can't change the language of FEU with tag {cms_module module="FrontEndUsers" lang=xx_XX}. Secondly I can't get how the CC smarty syntax should be applied. I use this code on one of my pages:

{cms_module module="CustomContent"}
{if $customcontent_loggedin}
{if $customcontent_memberof_user}
Blah Blah Blah.
{else}
Please log in.
{/if}
{/if}

It shows no content. No matter if logged in or not. The problem is quite simple I think, even though I could solve by my self. And no wonder, could not find anyone else asking this in the forums :D.

Re: FEU/CC problems

Posted: Thu Dec 14, 2006 4:56 pm
by axu-h
Could someone please help me? No matter the question about language, I'll fix it later, but it were nice to get advised how the CustomContent syntax basically works.

Re: FEU/CC problems

Posted: Thu Dec 14, 2006 5:12 pm
by calguy1000
I added this text to my page and it worked fine for me (I had to change customcontent_memberof_user to customcontent_memberof_Users due to my group name).

You also don't need the {cms_module module=CustomContent} call.

As a hint, just to make sure you've got no typos, etc. put a {get_template_vars} above this code temporarily.  it will dump out all of the smarty variables, and their values for testing with.

Re: FEU/CC problems

Posted: Thu Dec 14, 2006 5:59 pm
by axu-h
Ok thanks for encouraging, it work also for me after all. I once more read the help-text of CC module, and found out that i should make the page uncachable (whatever it means, I thought). So the group "user" now sees the content corretly, but unregistered cannot see the text under {else}. Members in other groups see the message correctly.

Other problem occured when I tried to enter other groups allowed to see the content. Nothing worked. I did it by putting another {if $customcontent_memberof_xxxx} under the older similar tag, and then a new {/if} to the end. How should I do it to work properly?