FEU/CC problems

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
axu-h

FEU/CC problems

Post 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.
axu-h

Re: FEU/CC problems

Post 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.
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: FEU/CC problems

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
axu-h

Re: FEU/CC problems

Post 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?
Locked

Return to “CMSMS Core”