Adding new fields to content edit screen
-
- New Member
- Posts: 4
- Joined: Sat Aug 11, 2007 4:44 am
Adding new fields to content edit screen
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?
-
- New Member
- Posts: 4
- Joined: Sat Aug 11, 2007 4:44 am
Re: Adding new fields to content edit screen
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
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:
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
From the Release Notes:
You can install the beta version and see if it functions the way you want.- 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.
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