17488 Posts in 4473 Topics by 1978 members
|Go to End|
5 March 2008 at 9:51am
Is it possible to have an HtmlEditorField in a complex table field (that uses a pop-up to edit its data)?
I am also wondering if you can have an image field within a complex table field?
Basically, I want website users to upload images and the site admin to review the uploaded images in a complex table field.
Are there any examples?
11 March 2008 at 9:44pm
image upload through an ImageField should work in a CTF popup - there's a tutorial in the newest issue of the german PHP Magazine that does just that.
HTMLEditorField in CTF popup - don't go there, its a world of pain ;) seriously, there's too many optimizations specific to the main CMS UI to make this generically work on the popup.
11 March 2008 at 10:00pm
Thanks Ingo - would love to see the german tutorial....
18 April 2008 at 7:51am
If you just want to split line breaks, you can use a TextareaField, and put $FieldName.XML in your pop-up.
18 April 2008 at 8:52am
Hey Nicolaas, we're allowed to make the PDF-tutorial available once the next publication of PHP Magazin hits the store (roughly mid may).
22 July 2008 at 7:29am
When you said, "If you just want to split line breaks, you can use a TextareaField, and put $FieldName.XML in your pop-up." What do you mean, "put" it?? What is the syntax?
22 July 2008 at 10:15am
I think what Sam means is that you put:
new Textareafield("fieldname", "enter stuff here", $rows = 10, $cols = 40, fieldname.XML);
where fieldname.XML is the default value
In doing so, if there is data in the field already, before you start editing, it will show with line breaks.
see: http://api.silverstripe.com/__filesource/fsource_forms_fields-basic_sapphireformsTextareaField.php.html for information on the the textarea field.
I may be wrong though.
Hope it helps
|Go to Top|