Field in block not showing up
Permalink
I've compared other blocks to this one, tried to test the fields independently, and I have no idea why this isn't working.
The content/text editor works just fine. The smaller text field ("Dropcap") content doesn't display (even though the style for it does).
Here's what I have:
add.php:
edit.php:
view.php:
db.xml:
controller.php (Will copy all if needed):
The folder itself is called about_content.
Any suggestions?
The content/text editor works just fine. The smaller text field ("Dropcap") content doesn't display (even though the style for it does).
Here's what I have:
add.php:
<?php echo $form->label('dropcap', 'Dropcap');?> <?php echo $form->text('dropcap', array('style' => 'width: 320px'));?> <?php defined('C5_EXECUTE') or die(_("Access Denied.")); //$replaceOnUnload = 1; $bt->inc('editor_init.php'); ?> <div style="text-align: center"><textarea id="ccm-content-<?php echo $a->getAreaID()?>" class="advancedEditor ccm-advanced-editor" name="content"></textarea></div>
edit.php:
<?php echo $form->label('dropcap', 'Dropcap');?> <?php echo $form->text('dropcap', $dropcap, array('style' => 'width: 320px'));?> <?php defined('C5_EXECUTE') or die(_("Access Denied.")); //$replaceOnUnload = 1; $bt->inc('editor_init.php'); ?> <div style="text-align: center" id="ccm-editor-pane"> <textarea id="ccm-content-<?php echo $b->getBlockID()?>-<?php echo $a->getAreaID()?>" class="advancedEditor ccm-advanced-editor" name="content"><?php echo $controller->getAboutContentEditMode()?></textarea> </div>
view.php:
db.xml:
<?xml version="1.0"?> <schema version="0.3"> <table name="btAboutContent"> <field name="bID" type="I"> <key /> <unsigned /> </field> <field name="dropcap" type="X2"> </field> <field name="content" type="X2"> </field> </table> </schema>
controller.php (Will copy all if needed):
<?php defined('C5_EXECUTE') or die(_("Access Denied.")); class AboutContentBlockController extends BlockController { var $pobj; protected $btTable = 'btAboutContent'; protected $btInterfaceWidth = "600"; protected $btInterfaceHeight = "665"; public function getBlockTypeDescription() { return t("Dropcap, and HTML/WYSIWYG Editor Content."); } public function getBlockTypeName() { return t("AboutContent"); } [etc.]
The folder itself is called about_content.
Any suggestions?
should always sit at the top of the PHP file.
Is it showing in your mark up when you view source code in a browser?
O