centurion-project / Centurion

Centurion is an open-source CMS delivered as a flexible PHP5 Content Management Framework
http://www.centurion-project.org
197 stars 51 forks source link

No description for Media_Form_Model_Admin_File #22

Closed aurmil closed 12 years ago

aurmil commented 12 years ago

When adding description to Media_Form_Model_Admin_File form element, it is not displayed

in \library\Centurion\Contrib\media\views\scripts\form\admin_file.phtml, this block is not correct:

element->description, null, 'UTF-8');?>.jpg, .gif, .png, 600px-width max.

I see 2 solutions:

  1. in this block, change "$this->element->description" to "$description" and then description will be displayed on the right of the field
  2. remove this block and add "

    <?php echo htmlentities($description, null, 'UTF-8');?>" under "

    ...
    " and then description will be displayed under the field, as for other elements