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> &lt;<a href="mailto:eric.mckenna@gmail.com">eric.mckenna@gmail.com</a>&gt; 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.&nbsp;&nbsp;I&#39;m having trouble making out what you<br>are trying to do.<br>Why does adding these fields to your &quot;book&quot; node not work?<br>And what do you mean by a &quot;complex CCK data type&quot;?
<br><br>J-P Stacey wrote:<br>&gt; Hi,<br>&gt;<br>&gt; How would I go about building a complex CCK data type? The one I have in<br>&gt; mind might be e.g. the different formats available for a &quot;book&quot; node:<br>&gt;
<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Format&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Width&nbsp;&nbsp; Height&nbsp;&nbsp;Depth&nbsp;&nbsp; Weight<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----------------------------------------------<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Hardback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;15cm&nbsp;&nbsp;&nbsp;&nbsp;24cm&nbsp;&nbsp;&nbsp;&nbsp;2cm&nbsp;&nbsp;&nbsp;&nbsp; 14oz<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Trade pback&nbsp;&nbsp;&nbsp;&nbsp; 14cm&nbsp;&nbsp;&nbsp;&nbsp;22cm&nbsp;&nbsp;&nbsp;&nbsp;
1.5cm&nbsp;&nbsp; 10oz<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Paperback&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 10cm&nbsp;&nbsp;&nbsp;&nbsp;15cm&nbsp;&nbsp;&nbsp;&nbsp;1cm&nbsp;&nbsp;&nbsp;&nbsp; 6oz<br>&gt;<br>&gt; Should I store each row as a flattened text field with delimiters e.g<br>&gt; &quot;Hardback&amp;15&amp;24&amp;2&amp;14&quot;, and let hook_widget() unflatten it prior to
<br>&gt; editing? Or can CCK store complex data types unflattened?<br>&gt;<br>&gt; Given the form chunk to edit each row would be five input fields, can<br>&gt; hook_widget() cope with making this whole block &quot;multiple&quot; easily enough?
<br>&gt; Would it need to be defined in form API as a multiple&#39;d fieldset?<br>&gt;<br>&gt; Cheers,<br>&gt; J-P<br>&gt;<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>&quot;Believe those who are seeking the truth; doubt those who find it.&quot; - André Gide