17452 Posts in 4473 Topics by 1971 members
|Go to End|
28 September 2007 at 9:24pm
I noticed that when I generate a checkboxsetfield it creates invalid html.
The problem seems to be that an UL is put IN a SPAN, which is not allowed.
Any ways to get rid of this span element in there, or change it to a div maybe?
(without having to change a lot of core code?)
28 September 2007 at 10:43pm
Besides that I'm looking for a way to group certain fields in the form
I would have blocks with 'user details', 'topic categories', 'topic details', and 'topic map' all in one form. I know I can put a headerField to it, but I need a way to group these in a div or even a different fieldset, which would allow me to do more with css.
If anyone's still alive here, let me know.
28 September 2007 at 11:59pm Last edited: 29 September 2007 12:01am
Or, what will I break in the cms when I strip <span class="middleColumn"> from DefaultFieldHolder.ss?
Forget about that.. that doesn't seem to be the place to change it...
29 September 2007 at 9:53pm
So, grouping certain input fields in a extra div or having separate fieldsets is impossible I presume?
30 September 2007 at 12:41am
Looks like I found something that might work: CompositeField.
However this seems to be a bit over the top... it creates more divs than necessary.
$fieldgroup = new CompositeField( new HeaderField("Details Auteur", 3),
new TextField("FirstName", "Voornaam", $member->FirstName),
new TextField("Surname", "Achternaam", $member->Surname),
new EmailField("Email", "Email", $member->Email)
This gives me a wrapper div <div class="field CompositeField nolabel multicolumn">
AND a new div per field:either <div class="column1"> or <div class="column1 lastcolumn"> .
I certainly don't need those extra divs. I only want the wrapper...
1 October 2007 at 9:15am
A LiteralField lets you place HTML in your forms, you could use that.
1 October 2007 at 8:28pm
Great idea! One for the opening div and one for the closing..
|Go to Top|