<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Creating a custom compound field for CCK</title>
	<atom:link href="http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/</link>
	<description>ce n'est pas la connaissance.</description>
	<pubDate>Sat, 22 Nov 2008 19:13:12 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
		<item>
		<title>By: Adam</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-193846</link>
		<dc:creator>Adam</dc:creator>
		<pubDate>Mon, 03 Nov 2008 23:18:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-193846</guid>
		<description>Is there a way to expand this with multiple values for the field type?</description>
		<content:encoded><![CDATA[<p>Is there a way to expand this with multiple values for the field type?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Christian Roy</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-193641</link>
		<dc:creator>Christian Roy</dc:creator>
		<pubDate>Tue, 21 Oct 2008 18:48:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-193641</guid>
		<description>@Andrey Tretyakov: It is true that with your own CCK field type in a custom module, it is up to you to convert to D6 when the time comes.  However, to me that is a pro.  Otherwise, I am dependent on other module authors to convert their module to D6. Some modules becomes abandoned and therefor will never be converted to D6.


@aws: The CCK developers are currently working on that for D6:
http://drupal.org/node/119102</description>
		<content:encoded><![CDATA[<p>@Andrey Tretyakov: It is true that with your own CCK field type in a custom module, it is up to you to convert to D6 when the time comes.  However, to me that is a pro.  Otherwise, I am dependent on other module authors to convert their module to D6. Some modules becomes abandoned and therefor will never be converted to D6.</p>
<p>@aws: The CCK developers are currently working on that for D6:<br />
<a href="http://drupal.org/node/119102" rel="nofollow">http://drupal.org/node/119102</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnorman</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-193030</link>
		<dc:creator>dnorman</dc:creator>
		<pubDate>Fri, 12 Sep 2008 00:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-193030</guid>
		<description>Yeah. With CCK now, you can sort of approximate this, but not with the granularity of control for tying values together...</description>
		<content:encoded><![CDATA[<p>Yeah. With CCK now, you can sort of approximate this, but not with the granularity of control for tying values together&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aws</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-193025</link>
		<dc:creator>aws</dc:creator>
		<pubDate>Thu, 11 Sep 2008 22:54:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-193025</guid>
		<description>The fieldgroup table does not work for this purpose.  A compound field must be able to handle multiple instances of multiple-value fields, not just making a table over a group of multiple-value fields.

IMHO this is a deep problem with CCK and needs to be addressed by the CCK developers.  For example, its interaction with view filters will be significantly more complex than for non-compound fields.

With the currently available methods, one must use a node-reference and a separate CCK node type for each compound-type.  This however creates some ugly problems with usability for creating and editing nodes.  Subform, autonode, and some other stuff might help, I don't know.</description>
		<content:encoded><![CDATA[<p>The fieldgroup table does not work for this purpose.  A compound field must be able to handle multiple instances of multiple-value fields, not just making a table over a group of multiple-value fields.</p>
<p>IMHO this is a deep problem with CCK and needs to be addressed by the CCK developers.  For example, its interaction with view filters will be significantly more complex than for non-compound fields.</p>
<p>With the currently available methods, one must use a node-reference and a separate CCK node type for each compound-type.  This however creates some ugly problems with usability for creating and editing nodes.  Subform, autonode, and some other stuff might help, I don&#8217;t know.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dnorman</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-192677</link>
		<dc:creator>dnorman</dc:creator>
		<pubDate>Sat, 30 Aug 2008 23:23:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-192677</guid>
		<description>I don't have any plans for that right now - none of my sites run on D6 yet because I use modules that still don't run on it...</description>
		<content:encoded><![CDATA[<p>I don&#8217;t have any plans for that right now - none of my sites run on D6 yet because I use modules that still don&#8217;t run on it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tim</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-192671</link>
		<dc:creator>Tim</dc:creator>
		<pubDate>Sat, 30 Aug 2008 09:28:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-192671</guid>
		<description>This is a great tutorial! Looks very useful.  Do you have any plans to port this tutorial for Drupal 6?</description>
		<content:encoded><![CDATA[<p>This is a great tutorial! Looks very useful.  Do you have any plans to port this tutorial for Drupal 6?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Tretyakov</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-188114</link>
		<dc:creator>Andrey Tretyakov</dc:creator>
		<pubDate>Wed, 23 Jul 2008 17:01:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-188114</guid>
		<description>Heh, for anyone reading this in future, it is possible to make views containing fields from 2 node types with "Views fusion" module. So I'm gonna try that road, wish me luck :-P</description>
		<content:encoded><![CDATA[<p>Heh, for anyone reading this in future, it is possible to make views containing fields from 2 node types with &#8220;Views fusion&#8221; module. So I&#8217;m gonna try that road, wish me luck <img src='http://www.darcynorman.net/wp-includes/images/smilies/icon_razz.gif' alt=':-P' class='wp-smiley' /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Tretyakov</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-188109</link>
		<dc:creator>Andrey Tretyakov</dc:creator>
		<pubDate>Wed, 23 Jul 2008 16:41:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-188109</guid>
		<description>Thinking about pro's and con's again.
Say, we have integer 'age' field in profile (for clarity, not core profile but node-based, such as Bio ) , and separate node type for education degree. 
What if we want to make view of people of certain age and having certain degrees ?
With compound degree field, as far as I understand, this is easy</description>
		<content:encoded><![CDATA[<p>Thinking about pro&#8217;s and con&#8217;s again.<br />
Say, we have integer &#8216;age&#8217; field in profile (for clarity, not core profile but node-based, such as Bio ) , and separate node type for education degree.<br />
What if we want to make view of people of certain age and having certain degrees ?<br />
With compound degree field, as far as I understand, this is easy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andrey Tretyakov</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-188103</link>
		<dc:creator>Andrey Tretyakov</dc:creator>
		<pubDate>Wed, 23 Jul 2008 16:30:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-188103</guid>
		<description>Hey D'Arcy
There is error in your guide

function universitydegrees_field_settings($op, $field) {
  switch ($op) {

    case 'save':
      return array('year', 'degreetype', 'programme', 'institution');

You don't need to save these here - I think 'save' in this function is for saving field settings but you are saving field values 

More on topic: 
First, I tried module 'fieldgroup table' and it worked for me only with "text field" widget types. Select, checkboxes, radio etc  won't work. So it kind of kills all the pro's of this module. Also there is big limitation in that you can only have 1 value per row.

Then I tried your path for making my money commission field, and now, using your guide and modules 'link', 'money', 'education_field'  as examples, I made my custom "commission" field type. So kudos for posting this.

But now I face problems of removing bugs, testing and all this is hell for me 'cause I'm not experienced developer. Looking at this comment:
---
With that said, either way will work — but maintaining a compound field, creating views integration, and generalizing/exposing the admin features via a clean UI is a lot of work — to say nothing of the work involved in maintaining this code over time.
---
I now have feeling that compount field is probably wrong way. Making lots of nodes is not big problem (adding more hardware is easy and cheap these days ). But if I have my custom compound field, what if I want to upgrade to D6 in,say, 6-8 months ? Then I will need to upgrade my module, and if its already hell for me, it will not be easier in future...

So for any non-experienced programmer, I would recommend to go with separate node solution, and helper modules such as addnode, nodereference or node relativity and such. This way you only develop small portion of code and most of the code is maintained and supported by community</description>
		<content:encoded><![CDATA[<p>Hey D&#8217;Arcy<br />
There is error in your guide</p>
<p>function universitydegrees_field_settings($op, $field) {<br />
  switch ($op) {</p>
<p>    case &#8217;save&#8217;:<br />
      return array(&#8217;year&#8217;, &#8216;degreetype&#8217;, &#8216;programme&#8217;, &#8216;institution&#8217;);</p>
<p>You don&#8217;t need to save these here - I think &#8217;save&#8217; in this function is for saving field settings but you are saving field values </p>
<p>More on topic:<br />
First, I tried module &#8216;fieldgroup table&#8217; and it worked for me only with &#8220;text field&#8221; widget types. Select, checkboxes, radio etc  won&#8217;t work. So it kind of kills all the pro&#8217;s of this module. Also there is big limitation in that you can only have 1 value per row.</p>
<p>Then I tried your path for making my money commission field, and now, using your guide and modules &#8216;link&#8217;, &#8216;money&#8217;, &#8216;education_field&#8217;  as examples, I made my custom &#8220;commission&#8221; field type. So kudos for posting this.</p>
<p>But now I face problems of removing bugs, testing and all this is hell for me &#8217;cause I&#8217;m not experienced developer. Looking at this comment:<br />
&#8212;<br />
With that said, either way will work — but maintaining a compound field, creating views integration, and generalizing/exposing the admin features via a clean UI is a lot of work — to say nothing of the work involved in maintaining this code over time.<br />
&#8212;<br />
I now have feeling that compount field is probably wrong way. Making lots of nodes is not big problem (adding more hardware is easy and cheap these days ). But if I have my custom compound field, what if I want to upgrade to D6 in,say, 6-8 months ? Then I will need to upgrade my module, and if its already hell for me, it will not be easier in future&#8230;</p>
<p>So for any non-experienced programmer, I would recommend to go with separate node solution, and helper modules such as addnode, nodereference or node relativity and such. This way you only develop small portion of code and most of the code is maintained and supported by community</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dillon</title>
		<link>http://www.darcynorman.net/2008/05/02/creating-a-custom-compound-field-for-cck/#comment-184765</link>
		<dc:creator>dillon</dc:creator>
		<pubDate>Tue, 15 Jul 2008 02:29:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.darcynorman.net/?p=1924#comment-184765</guid>
		<description>Ah the elusive combo/compound field.  I looked at the Fieldgroup Table module, but the module is for D5 (and even then there isn't a version that works with 5.8).  That's fine, I'd rather solve this problem in D6.  

I tried myself to update this for D6 - but without any luck.  

Any chance you might be doing that in the near future?</description>
		<content:encoded><![CDATA[<p>Ah the elusive combo/compound field.  I looked at the Fieldgroup Table module, but the module is for D5 (and even then there isn&#8217;t a version that works with 5.8).  That&#8217;s fine, I&#8217;d rather solve this problem in D6.  </p>
<p>I tried myself to update this for D6 - but without any luck.  </p>
<p>Any chance you might be doing that in the near future?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
