Hi
Does anyone ever wanted to allow users (with no access to CMS) to add images to a blog post?
I sure did tons of times, and always wondered why I couldn't.
Do you have a fancy solution for that?
Thank you!
This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.
Please use forum.silverstripe.org for any new questions
(announcement).
The forum archive will stick around, but will be read only.
You can also use our Slack channel
or StackOverflow to ask for help.
Check out our community overview for more options to contribute.
Hi
Does anyone ever wanted to allow users (with no access to CMS) to add images to a blog post?
I sure did tons of times, and always wondered why I couldn't.
Do you have a fancy solution for that?
Thank you!
For SS3
class BlogEntryDecorator extends DataExtension {
public static $has_one = array(
"Image" => "Image"
);
public function updateCMSFields(\FieldList $fields) {
$fields->addFieldToTab( 'Root.Main', new UploadField('Image', 'Image'), 'Content' );
return $fields;
}
}