[Solved]TinyMCE changing code in the Custom Content

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
soren
Forum Members
Forum Members
Posts: 60
Joined: Fri Apr 18, 2008 6:44 am

[Solved]TinyMCE changing code in the Custom Content

Post by soren »

TinyMCE modify this code:
{if $ccuser->loggedin() && ($ccuser->memberof('medlem, bestyrelse'))}

Du har nu adgang til indholdet på denne side.
{else}

Du skal være logget ind.{/if}

For this:
{if $ccuser->loggedin() && ($ccuser->memberof('medlem, bestyrelse'))}
Du har nu adgang til indholdet på denne side.
{else}
Du skal være logget ind.{/if}

I know how to fix this.

In the help for CustomContent I am told that it could be placed in my template.
How do I do this.

Regards
Soren
Last edited by soren on Thu Dec 03, 2009 7:34 am, edited 1 time in total.
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: TinyMCE changing code in the Custom Content

Post by Rolf »

Hi soren,

You will find the template at the admin:
Layout >> Templates

Put the CC code around the {content} tag in your used template:

Code: Select all

{if $ccuser->loggedin() && ($ccuser->memberof('medlem, bestyrelse'))}
       {content}<br />
{else}
       <p>Du skal være logget ind.</p>
{/if}
Don't forget to change the Print-template at
Extentions >> Printing

Good read:
http://calguy1000.com/uploads/1/Hiding_ ... e-pdf.html

Regards, Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
soren
Forum Members
Forum Members
Posts: 60
Joined: Fri Apr 18, 2008 6:44 am

Re: TinyMCE changing code in the Custom Content

Post by soren »

Rolf

Thank you.

Regards
Søren
Post Reply

Return to “Modules/Add-Ons”