Page 1 of 1

Adding new fields to content edit screen

Posted: Sat Nov 29, 2008 3:23 am
by Krapulator
I am building a module and I want the module to add an image upload field to the main Edit Page admin screen (beneath the WSYWIG editor. Are there hooks in the core that let me add a field to this screen from a module?

Re: Adding new fields to content edit screen

Posted: Sun Nov 30, 2008 6:04 am
by Krapulator
So I take it there is no way to add extra fields to the content edit page short of hacking the core?

Re: Adding new fields to content edit screen

Posted: Sun Nov 30, 2008 11:43 am
by Zoorlat
You want to look at content blocks. In your template put {content block="somename"}. Regarding special content blocks for images, it will be one of the features in CMSMS 1.5, which is about to be released any day.

From the Release Notes:
- The {content_image} tag has been added allowing numerous images to be attached to each page
  Allows selecting an image from a list of previously uploaded files to display in that location of the template.
You can install the beta version and see if it functions the way you want.

Otherwise, to add an extra field for images to the edit page in the current version of CMSMS, use content blocks and oneline. Eg: {content block='Image' oneline='true'}

For more on use with image see http://forum.cmsmadesimple.org/index.php/topic,6437.msg40020.html

Best
Zo