I have another CCK question: how do I make fields show line breaks (hard returns)? I am geting everythign running on one line and I don't see anywhere to set the input format. Also I don't want the end users to have to put in html themselves.
<br><br>Jean Gazis<br><br><div><span class="gmail_quote">On 7/5/07, <b class="gmail_sendername">Eric Mckenna</b> <<a href="mailto:eric.mckenna@gmail.com">eric.mckenna@gmail.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Can you explain a little more. I'm having trouble making out what you<br>are trying to do.<br>Why does adding these fields to your "book" node not work?<br>And what do you mean by a "complex CCK data type"?
<br><br>J-P Stacey wrote:<br>> Hi,<br>><br>> How would I go about building a complex CCK data type? The one I have in<br>> mind might be e.g. the different formats available for a "book" node:<br>>
<br>> Format Width Height Depth Weight<br>> ----------------------------------------------<br>> Hardback 15cm 24cm 2cm 14oz<br>> Trade pback 14cm 22cm
1.5cm 10oz<br>> Paperback 10cm 15cm 1cm 6oz<br>><br>> Should I store each row as a flattened text field with delimiters e.g<br>> "Hardback&15&24&2&14", and let hook_widget() unflatten it prior to
<br>> editing? Or can CCK store complex data types unflattened?<br>><br>> Given the form chunk to edit each row would be five input fields, can<br>> hook_widget() cope with making this whole block "multiple" easily enough?
<br>> Would it need to be defined in form API as a multiple'd fieldset?<br>><br>> Cheers,<br>> J-P<br>><br><br>--<br>[ Drupal support list | <a href="http://lists.drupal.org/">http://lists.drupal.org/</a>
]<br></blockquote></div><br><br clear="all"><br>-- <br>Jean Gazis<br><a href="http://www.jeangazis.com">www.jeangazis.com</a><br><a href="http://www.boxofrain.us">www.boxofrain.us</a><br><br>"Believe those who are seeking the truth; doubt those who find it." - André Gide