<?php print $teaser ?>

Contemplate does not work for me. I have fckeditor installed.

<h1><?php print $title ?></h1> 

<?php print $type ?><br> 

<?php print $readmore ?><br> 

<?php print $links ?> 
<? php print $links ?>

Does not print any of the fields, just prints them as <?php print $teaser ?> lines of php.

Help!

Comments

jjeff’s picture

Status: Active » Postponed

Your problem is FCKEditor. It should NOT be enabled for the ConTemplate textareas. I'm not familiar enough with this module to tell you how to disable it (other than disabling the module altogether).

FCKeditor is converting the "<" and ">" to "<" and ">", so nothing is getting parsed as PHP.

bdornbush’s picture

In Site Configuration > FCKEditor > Exclusion Settings, I put

edit-teaser edit-body edit-rss

and this kept FCKEditor from being used for the contemplate text areas.

bdornbush’s picture

I discovered that the exclusion setting of edit-body also turned off FCKEditor for all edit body text areas, so this is not ideal as others who want to edit the body for other content types will not be able to use FCKEditor. We need a better fix, so that you don't have to turn off FCKEditor for contemplate and then turn it back on for most uses.

jrglasgow’s picture

FCKeditor needs proper configuration
goto admin/settings/fckeditor/editg
under 'Visibility Settings' you need to exclude the following paths:

admin/content/templates/*
admin/content/types/*/template
jrglasgow’s picture

Status: Postponed » Closed (fixed)