Page 1 of 1

CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 1:28 am
by richbothe
Hi,

I have read just about every post related to CC and can't find anything to fix my problem... I apologize for my arogance!

I have CC 1.4.4 w/ FEU 1.1.3 beta1.

I have several groups setup where some users will be assigned to multiple groups. I don't need to restrict individual pages, but I do need to restict certain content on some pages.  I'm trying to restrict them by group.

Here's my template code:

{if isset($customcontent_loggedin) && $customcontent_loggedin > 0 }
        {content}
        {else}
        You must be an authorized ELS staff member to use this site.
        All ELS policies concerning "Electronic Media" and "Proprietary Materials" apply within this website. By signing in you are accepting acknowledgement and compliance with these policies.
        {/if}

Here's my page content:

{if $customcontent_memberof_Administrator}
Content
{else}
message
{/if}

I'm not entirely sure if my syntax is correct or if it's even placed correctly.

Please help!

Thanks,
Rich

Re: CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 3:23 pm
by calguy1000
I just tested this syntax, it worked fine for me.

Re: CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 5:26 pm
by richbothe
That's odd... the user is assigned to the "Administrator" group, but when I log in and access the page I only get the {else} content.  Any ideas why the {if $customcontent_memberof_Administrator} isn't displaying?

Here's the {get_template_vars} info:

SCRIPT_NAME = /index.php
app_name = CMS
sitename = ELS University
lang =
encoding = UTF-8
gCms = Object
content_id = 169
page = road-map
page_id = road-map
page_name = road-map
page_alias = road-map
position = 00013.00001
friendly_position = 13.1
customcontent = 1
customcontent_loggedin = 13
customcontent_ip = 216.77.154.39
customcontent_loginname = richbothe
customcontent_memberof_Adminstrator = 1
customcontent_groups = Adminstrator,
customcontent_groupcount = 1
customcontent_dayzeros = 09
customcontent_day3text = Mon
customcontent_day = 9
customcontent_weekday = Monday
customcontent_dayordsuffix = th
customcontent_dayofweek = 1
customcontent_dayofyear = 98
customcontent_weeknum = 15
customcontent_monthfulltext = April
customcontent_monthnumzeros = 04
customcontent_monthshorttext = Apr
customcontent_monthnum = 4
customcontent_monthnumdays = 30
customcontent_leapyear = 0
customcontent_4digityear = 2007
customcontent_2digityear = 07
customcontent_lowerampm = pm
customcontent_upperampm = PM
custoncontent_inettime = 769
customcontent_12hour = 12
customcontent_24hour = 12
customcontent_12hourzeros = 12
customcontent_24hourzeros = 12
customcontent_minutes = 27
customcontent_seconds = 32
customcontent_timezone = CDT
customcontent_date = Mon, 09 Apr 2007 12:27:32 -0500
customcontent_epochseconds = 1176139652
count = 21
nodelist = Array
node = Object
startform =

label = Search
inputbox =
submitbutton =
submittext = Submit
hidden =
endform =

prompt_loggedin = Welcome
userid = 13
username = richbothe
link_logout = Sign out
link_changesettings =
station = minneapolis
email = richbothe@qsitedesigns.com
last_name = Bothe
first_name = Rich

Re: CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 5:34 pm
by calguy1000
try using {if $customcontent_memberof_Administrator > 0}

Re: CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 6:00 pm
by richbothe
When I use {if $customcontent_memberof_Administrator > 0}, the ">" sign changes back to ">".  Even if I change it in the source code view of the content page,  it reverts back to ">"...

Re: CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 6:01 pm
by calguy1000
ah.... wysiwygs.... I hate em.  see what happens if you turn the wysiwyg off.... then edit the page.

Re: CustomContent - Unable to see custom content

Posted: Mon Apr 09, 2007 6:41 pm
by richbothe
Ok.... I feel like an idiot!  I didn't have the .htaccess file. Now let's see how things go...  ::)