Page 1 of 1
[SOLVED] Custom Content will not work for me.
Posted: Tue Aug 03, 2010 3:16 pm
by michaelwalker
I'm running a clean install of CMSMS 8.1, with Front End Users 1.12 and Custom Content 1.5.3. Using the suggestion in the Content help file, I made a page featuring this code:
Code: Select all
{if $customcontent_loggedin > 0}
Welcome <b>{$customcontent_loginname}</b><br/>
{else}
<h1>You are not authorized to view this data</h1>
{/if}
as a test.
However, this just generates a page showing my home page, stripped of CSS or any other formatting - what you'd see if you used the 'Minimal' template. But no message about being logged-in or otherwise. If anyone knows why this is happening, I'd be grateful.
TIA
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 3:19 pm
by Rolf
Try:
Code: Select all
{if $ccuser->loggedin()}
{content}
<br />{* to insure space below content *}
{else}
<p>Login first...</p>
{cms_module module="Frontendusers"}
{/if}
Rolf
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 3:28 pm
by michaelwalker
Thanks for the quick reply, but I'm afraid that didn't make any difference - still the same result.
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 3:43 pm
by Jos
Did you put the code in a WYSIWYG editor? That messes things up... Better put it in your template.
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 3:49 pm
by michaelwalker
Jos wrote:
Did you put the code in a WYSIWYG editor? That messes things up... Better put it in your template.
Thank you - that worked! I'm not very impressed with TinyMCE in general terms and usually edit by cutting and pasting to and from Dreamweaver code view. this has reinforced my suspicions! Thanks again.
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 4:49 pm
by michaelwalker
Hmmm. Small further problem. I cannot now format any of the text between the 'if' and 'else' tags. Even if I apply the coding manually with WYSIWIG turned off, this just re-invokes my original problem. This can't be right, surely?
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 5:28 pm
by Rolf
michaelwalker wrote:
Hmmm. Small further problem. I cannot now format any of the text between the 'if' and 'else' tags. Even if I apply the coding manually with WYSIWIG turned off, this just re-invokes my original problem. This can't be right, surely?
You need to set the WYSIWYG Off under the Options tab of the page editor.
Rolf
Re: Custom Content will not work for me.
Posted: Tue Aug 03, 2010 10:38 pm
by michaelwalker
thanks, I will try that.
Re: Custom Content will not work for me.
Posted: Wed Aug 04, 2010 1:05 am
by Dr.CSS
Tiny also has an option to set it not to show at first when opening a page edit/add new content, this way it won't eat any code but can be turned on by ticking the on/off check box when needed...
Re: Custom Content will not work for me.
Posted: Wed Aug 04, 2010 8:07 am
by michaelwalker
Thanks, that seems to have solved it!
Re: Custom Content will not work for me.
Posted: Wed Aug 04, 2010 6:22 pm
by Rolf
michaelwalker wrote:
Thanks, that seems to have solved it!
What "that" helped?
Please be so kind and put
[Solved] in the title of the first post.
You will help other users this way.
Grtz. Rolf

Re: Custom Content will not work for me.
Posted: Thu Aug 05, 2010 8:14 am
by michaelwalker
What "that" helped?
Your suggestion, thank you. But i have also turned off WYSIWIG altogether as suggested by Dr CSS, as i have found Tiny a very indifferent editor.