Multiple Variables in a block
Permalink
I am still very new to Concrete5 and I've learned how to create my own themes pretty easily, but I'm having some issues building custom blocks.
I downloaded the sample block called "basic_test" that is in the documentation and it worked fine when I installed it, but when I try to add another user input in the add.php file it doesn't show up once the block is added, only the $content variable works.
Here is the code for each file:
Am I missing a step here?
Thanks!
I downloaded the sample block called "basic_test" that is in the documentation and it worked fine when I installed it, but when I try to add another user input in the add.php file it doesn't show up once the block is added, only the $content variable works.
Here is the code for each file:
<!-- add.php --> <p>This is the add template for the basic test block. Anything you add in this view will automatically be wrapped in a form and, when submitted, sent to the block's controller.</p> <?php echo $form->label('content', 'Name');?> <?php echo $form->text('content', array('style' => 'width: 320px'));?> <?php echo $form->label('title', 'Title');?> <?php echo $form->text('title', array('style' => 'width: 320px'));?> <!-- db.xml --> <?xml version="1.0"?> <schema version="0.3"> <table name="btBasic"> <field name="bID" type="I"> <key /> <unsigned /> </field> <field name="content" type="X2">
Viewing 15 lines of 36 lines. View entire code block.
Am I missing a step here?
Thanks!