Add a subtitle field
Permalink Browser Info Environment
Hi,
I want to add a subtitle field to the expand/collapse block.
I did this so far:
* db.xml add this code underneath title:
* form_init.php
added:
* controller.php
changed the function save to:
* and I called it in the view.php of my template
But I doesn't work. Can anybody tell me what I'm doing wrong?
Thanks,
sarah
I want to add a subtitle field to the expand/collapse block.
I did this so far:
* db.xml add this code underneath title:
<field name="subtitle" type="C" size="255"> </field>
* form_init.php
added:
* controller.php
changed the function save to:
function save($data) { $content = $this->translateTo($data['content']); $args['content'] = $content; $args['state'] = $data['state']; $args['title'] = $data['title']; $args['subtitle'] = $data['subtitle']; $args['speed'] = $data['speed']; parent::save($args); $blockObject = $this->getBlockObject(); if (is_object($blockObject)) { $blockObject->setCustomTemplate($data['layout']); }
* and I called it in the view.php of my template
But I doesn't work. Can anybody tell me what I'm doing wrong?
Thanks,
sarah
Type: | Discussion |
---|---|
Status: | New |