[SOLVED] Custom Content will not work for me.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

[SOLVED] Custom Content will not work for me.

Post 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
Last edited by michaelwalker on Thu Aug 05, 2010 8:15 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Custom Content will not work for me.

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

Re: Custom Content will not work for me.

Post by michaelwalker »

Thanks for the quick reply, but I'm afraid that didn't make any difference - still the same result.
Jos
Support Guru
Support Guru
Posts: 4019
Joined: Wed Sep 05, 2007 8:03 pm
Location: The Netherlands

Re: Custom Content will not work for me.

Post by Jos »

Did you put the code in a WYSIWYG editor? That messes things up... Better put it in your template.
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

Re: Custom Content will not work for me.

Post 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.
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

Re: Custom Content will not work for me.

Post 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?
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Custom Content will not work for me.

Post 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
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

Re: Custom Content will not work for me.

Post by michaelwalker »

thanks, I will try that.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am
Location: Arizona

Re: Custom Content will not work for me.

Post 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...
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

Re: Custom Content will not work for me.

Post by michaelwalker »

Thanks, that seems to have solved it!
Last edited by michaelwalker on Wed Aug 04, 2010 8:14 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Location: The Netherlands
Contact:

Re: Custom Content will not work for me.

Post 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  :)
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
michaelwalker
Forum Members
Forum Members
Posts: 41
Joined: Thu Jul 02, 2009 3:51 pm
Location: Cambridge UK

Re: Custom Content will not work for me.

Post 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.
Post Reply

Return to “Modules/Add-Ons”