Hi,

I know there's been work done on integrating cck field integration with Panels 2. I'm trying to decide whether to run with Panels 2 or Panels 3, so I was just wondering if there was any movement towards making cck fields as panels work in Panels 3 yet or if anyone might have an idea of the timescales for that to happen.

Thank you all so much for working on this

Thomas

Comments

karens’s picture

Status: Active » Closed (duplicate)

Since the Panels project page plainly says that Panels 2 will not be supported or recommended, CCK will support Panels 3, but only when someone writes a patch :) There is already an issue somewhere about this.

yched’s picture

Status: Closed (duplicate) » Active

Both Karen and I have absolutely no time to maintain Panels integration. Michelle is providing patches when she needs then for Advanced Profile.

I reiterate my call for a 'Panels / CCK integration' maintainer :-) : #329464: Maintainer needed for CCK / Panels integration

yched’s picture

Status: Active » Closed (duplicate)

Crosspost :-)

thomasmuirhead’s picture

Thank you for your replies.

I was thinking of reposting your call onto the Panels issue queue too, as Panels without CCK compatibility would be a concern to many Panels fans who might have the nous to maintain the integration which I am still unfortunately lacking.

Is it ok under drupal etiquette to post a call for maintainers in a different modules issue queue?

yched’s picture

Well, the panels maintainers are aware of this, and adding this to their queue would be polluting. I did however add a post on the 'CCK' and 'Panels' groups on groups.drupal.org back then.

thomasmuirhead’s picture

ok thanks.

Hopefully someone will step in. I wish I could.

michelle’s picture

Title: Panels (3) integration - cck fields as panels » Panels 3 integration
Status: Closed (duplicate) » Needs review
StatusFileSize
new3.95 KB
new4.05 KB

Sorry, I couldn't find the Panels 3 issue this duplicates. The other issues were about Panels 2.

Here's the files to make it work in Panels 3. They're working for me but could use others to test.

Michelle

michelle’s picture

Title: Panels 3 integration » Panels 3 integration for CCK fields / fieldgroups

(Changed title so it makes more sense when seen outside this issue queue)

Another related issue. Currently we have this:

content.module:

  if (module_exists('panels')) {
    module_load_include('inc', 'content', 'includes/content.panels');
  }

fieldgroup.module:

  if (module_exists('panels')) {
    module_load_include('inc', 'fieldgroup', 'fieldgroup.panels');
  }

While that code works, it is the old way of doing it and needs to be removed and replaced with:

/**
 * Implementation of hook_ctools_plugin_directory().
 */
function content_ctools_plugin_directory($module, $plugin) {
  if ($module == 'panels') {
    return 'content-types';
  }
}

/**
 * Implementation of hook_ctools_plugin_directory().
 */
function fieldgroup_ctools_plugin_directory($module, $plugin) {
  if ($module == 'panels') {
    return 'content-types';
  }
}

Then you need to make a "content-types" directory both at the root and in the fieldgroup module directory and move the include files in there. "content-types" can be changed if you don't like that as a name. I just needed to pick one for testing.

Michelle

yched’s picture

For the record, we agreed with Michelle and Merlinofchaos to wait until Panels 3 reaches beta state and officially deprecates Panels 2 before we commit this. Meanwhile, early Panels 3 adopters can use (and test, I guess ?) the patch above.

robloach’s picture

This issue is my favorite issue of the week.

thomasmuirhead’s picture

Thank you so much for this Michelle...makes Panels 3 a reality. I second Rob's favouritism

If anyone is wondering what to do with the two .inc files that Michelle has created above (only because I stared at them wide-eyed for a while).

Overwrite the old fieldgroups.panels.inc file with the one attached above (remember to remove the .txt) at /sites/all/modules/cck/modules/fieldgroups/

then do the same with the content.panels.inc at sites/all/modules/cck/includes/

NB: I wasn't sure whether to try the related issue stuff in #8 so I haven't...and the above files still work great.

Thanks again

michelle’s picture

Version: 6.x-2.2 » 6.x-2.x-dev

Just an FYI: Earl checked in code last night that changes a lot of this. I should have new files posted later tonight or tomorrow.

Michelle

niklp’s picture

[Arbitrary subscription message here]

michelle’s picture

Sorry for the delay, folks. Had a rough weekend and plus I promised Earl I'd document what I learned about making content types. I have camera club tonight and promised a client I'd do some work for him tomorrow night. If I don't manage to squeeze it in during the day, it will be a few days, yet.

Michelle

michelle’s picture

Assigned: Unassigned » michelle
Status: Needs review » Needs work
StatusFileSize
new3.64 KB

Ok, here's fieldgroups. I still need to do fields but out of time for the moment. The attached file needs to go in cck/modules/fieldgroup/plugins/content_types and have the extension fixed ( I really wish .inc was an allowed one.) The old file needs to be removed. This also requires the following changes to fieldgroup.module:

/**
 * Implementation of hook_ctools_plugin_directory().
 */
function fieldgroup_ctools_plugin_directory($module, $plugin) {
  if ($module == 'ctools') {
    return 'plugins/' . $plugin;
  }
}
/**
 * Implementation of hook_theme().
 */
function fieldgroup_theme() {
  return array(
    'fieldgroup_simple' => array(
      'template' => 'fieldgroup-simple',
      'arguments' => array('element' => NULL),
    ),
    'fieldgroup_fieldset' => array(
      'arguments' => array('element' => NULL),
    ),
    'fieldgroup_display_overview_form' => array(
      'arguments' => array('form' => NULL),
    ),
    'fieldgroup_content_type' => array(
      'arguments' => array('vars' => NULL, 'nid' => NULL),
    ),
  );
}

I don't expect this to be committed in this state but want to keep getting the work out there as I do it. Once it's all ready, I'll try my hand at making a proper patch. Will do fields ASAP, probably this evening.

Michelle

michelle’s picture

Status: Needs work » Needs review
StatusFileSize
new3.67 KB
new3.89 KB

Ok, here are new files for fields and fieldgroups. I had to change the CT name of fieldgroups to content_fieldgroup because that's what it was named in P2 and Earl said that will make upgrading easier, even though it was badly named to begin with. content.module needs the same changes as fieldgroup.module did above. I'll do a better job of writing this all up later. I'm out of time and want to be sure what I've done is in the issue at least.

Michelle

michelle’s picture

Status: Needs review » Needs work

Don't get too excited... Just found out from Earl that I've had a design flaw in this since the start back in D5. So there's going to be more changes coming. Though this does work it just doesn't do things the "proper" way.

Michelle

michelle’s picture

Ok, here is a better description of what is changing, with the exception of the contents of the two .inc files since those can just be dropped into place.

This is what needs to be done to the files:

- cck/includes/content.panels.inc
+ cck/plugins/content_field.inc

- cck/modules/fieldgroup/fieldgroup.panels.inc
+ cck/modules/fieldgroup/plugins/content_fieldgroup.inc

And then the module code:

content.module

/**
 * Implementation of hook_init().
 */
function content_init() {
  drupal_add_css(drupal_get_path('module', 'content') .'/theme/content-module.css');
  if (module_exists('token') && !function_exists('content_token_values')) {
    module_load_include('inc', 'content', 'includes/content.token');
  }
  if (module_exists('diff') && !function_exists('content_diff')) {
    module_load_include('inc', 'content', 'includes/content.diff');
  }
-  if (module_exists('panels')) {
-    module_load_include('inc', 'content', 'includes/content.panels');
-  }
}

+/**
+ * Implementation of hook_ctools_plugin_directory().
+ */
+function content_ctools_plugin_directory($module, $plugin) {
+  if ($module == 'ctools') {
+    return 'plugins/' . $plugin;
+  }
+}

fieldgroup.module

/**
 * Implementation of hook_init().
 */
function fieldgroup_init() {
  drupal_add_css(drupal_get_path('module', 'fieldgroup') .'/fieldgroup.css');
-  if (module_exists('panels')) {
-    module_load_include('inc', 'fieldgroup', 'fieldgroup.panels');
-  }
}

+/**
+ * Implementation of hook_ctools_plugin_directory().
+ */
+function fieldgroup_ctools_plugin_directory($module, $plugin) {
+  if ($module == 'ctools') {
+    return 'plugins/' . $plugin;
+  }
+}


/**
 * Implementation of hook_theme().
 */
function fieldgroup_theme() {
  return array(
    'fieldgroup_simple' => array(
      'template' => 'fieldgroup-simple',
      'arguments' => array('element' => NULL),
    ),
    'fieldgroup_fieldset' => array(
      'arguments' => array('element' => NULL),
    ),
    'fieldgroup_display_overview_form' => array(
      'arguments' => array('form' => NULL),
    ),
-    'fieldgroup_panel' => array(
+    'fieldgroup_content_type' => array(
     'arguments' => array('vars' => NULL, 'nid' => NULL),
    ),
  );
}

We're still discussing what's going in the .inc files. :)

Michelle

michelle’s picture

StatusFileSize
new3.77 KB

Ok, here's the updated fieldgroups file. Fields coming. :)

Michelle

michelle’s picture

StatusFileSize
new3.76 KB
new4.37 KB

Ok, here's fields as well as a slightly changed fieldgroups. Don't forget all the changes from #18 as well.

Still to do:

* Create icons for fields / fieldgroups or decide to use the default
* Verify that "Content" is the category we want to use. I advise against placing them in node where they used to be because of the sheer number of them now.
* Test, test, test! The site I'm developing this on is actually one that's on its way to becoming something else because I haven't had time to set up a proper dev site, yet. So it only has one content type with fields on it and is not a good test. I'll try to get something better set up but it would be good if others could help out with testing this to find all the edge cases.

Michelle

robloach’s picture

StatusFileSize
new19.86 KB

Here's a patch off of what Michelle provided. I couldn't get the fields to list in the Panel content area.... Hmmmm.

michelle’s picture

You got the fieldgroups to show up and not the fields?

I can't see what you're missing just from skimming the patch. Will have to try it out and see if I get some time later tonight.

Michelle

michelle’s picture

StatusFileSize
new2.49 KB

Ok, I tried to do a comprehensive patch but doing a patch with directory changes is complex. So here's a patch for the changes to the .module files. In addition to this patch, you need to do this with the files in #20:

- cck/includes/content.panels.inc
+ cck/plugins/content_field.inc

- cck/modules/fieldgroup/fieldgroup.panels.inc
+ cck/modules/fieldgroup/plugins/content_fieldgroup.inc

Michelle

michelle’s picture

Oh, PS, I confirmed that this does work for both fields and fieldgroups on a fresh checkout of CCK 6.x-2.x. The "needs work" in the status is because of the first 2 items in #20. Mostly it needs review.

Michelle

niklp’s picture

I asked you before, and you said you'd patched against 2.2. Can you confirm which version you're patching against? IMO, it would be sensible to patch against a non-dev version, as that is at least static and not date-dependent. I am taking "6.x-2.x" to mean "6.x-2.x-dev" as that's the simplest inference. We need to be clear which is which.

What are the likely changes going to be, and are they short term, or long term things that we have to wait for?

Thanks.

michelle’s picture

NikLP - Well, I assumed you meant the latest code in the 2.x branch. No, you don't patch against old code. That makes no sense. You need to make the patch against the code it will be committed to.

What changes are you talking about?

Michelle

niklp’s picture

The changes you mentioned in #17.

On IRC you mentioned that CCK isn't getting much attention right now (i.e. it's not fast moving) which is fine. But what's wrong with patching against 2.2? If you patch against dev, no-one will get the patch to work because they won't know which one to patch. 2.x-dev could be from any day.

Just exercising the logic. I'm not going to argue it further because we won't get anywhere. I'll let it go because I'm sure it's a protocol thing.

michelle’s picture

I've already made the changes in #17. That's why I posted new files.

I don't know what you mean about "which one" to patch. You patch against the latest in cvs. If it no longer applies, that means I need to reroll it. Odds are that won't be a problem because CCK isn't changing that much anymore but it's still something that needs to be known. If I create a patch against old code and something changes in CCK, it will fail when yched goes to commit it. So your logic is flawed.

Michelle

karens’s picture

I need to do some testing of Panels with some of my modules, so I'll test this patch while I'm at it and commit it if I can. I hope to get to this in the next day or two.

michelle’s picture

Awesome, thanks Karen!

Michelle

robloach’s picture

Still can't get it. I applied the patch at #23, switched the files from #20, created this patch.

Tried with CCK's DRUPAL-6--2, and Panels 3's DRUPAL-6--3 with a text field applied to my "Story" content type with "Something" as the label. When Panels 3 DRUPAL-6--3 failed, I tried it with DRUPAL-6--3-ALPHA4, and still no go. I'm look at the add content screen of the Panels page, and the attached screenshot is what I see.....

michelle’s picture

Rob: I can see the problem right in your screenshot: you're not using the latest CTools / Panels 3 code. That isn't even close to what the add content dialog looks lke now.

Michelle

michelle’s picture

StatusFileSize
new59.95 KB

For reference, here is a screenshot of the add content dialog with the uprofile fields/fieldgroups from APK.

Michelle

mrjavum’s picture

Some fixes in paths:
the right are:
cck/plugins/content_types/content_field.inc
cck/modules/fieldgroup/plugins/content_types/content_fieldgroup.inc

karens’s picture

I'm still working through this, haven't got it working yet. For future reference, here's what you need to do to get started with this patch:

- Use Panels DRUPAL-6--3
- Use CaosTools HEAD (with today's changes, Earl just committed some things while I was working with him)
- Run update.php
- Rebuild the menu and clear caches.
- Create a panel and give it a 'Node' context.

Then try to add fields.

However I still can't get the patch working. Michelle provided an example of what should show up - http://drupal.org/files/issues/add-content.jpg.

Because of all the confusion of patches above, I'm going to commit what I have and give Michelle (the only person who has a functioning setup) a chance to post an incremental patch for whatever I'm missing.

mrjavum’s picture

with fixes in paths in #34 I have functioning setup too :)

michelle’s picture

@mrjavum: Thanks so much. Serious headdesk moment there. I could have sworn I copied the paths straigh out of WinSCP. I have no clue how I managed to lose the critical directory there.

Michelle

karens’s picture

Status: Needs work » Needs review

I missed #34 at first, but that led to a long conversation in IRC between me and Earl and Michelle about how to locate and name these files for consistency with the way we did Views and the needs of the Panels module, and we ended up moving them so that the panels include file is at includes/panels/content_types/... and the fieldgroup one at modules/fieldgroup/panels/content_types/...

I questioned the need for the extra directory level when there is only one file there, but it seems it is the best way to do it.

So that is committed and ready for testing.

There is no patch to apply now, I'm just marking this to get attention for testing and review.

niklp’s picture

Just to confirm, Karen - you've committed the basic patches to CCK dev now and we can wait for the package script to run to get a complete one?

michelle’s picture

NikLP - Yes, or get it right out of cvs.

Michelle

merlinofchaos’s picture

StatusFileSize
new7.17 KB

This patch fixes things, plus implements icons. Note that the icons are not yet included so right now everything gets a default icon (which happens when the proposed icon does not exist). I'm having yoroy whip up some icons for this purpose.

Sorry about the EOL trimming in the patch, my editor is set to do that automatically.

karens’s picture

Status: Needs review » Fixed

OK, finally!! I have committed that final patch and am able to get fields into panels. Yay! Thanks to Michelle and Earl.

To reiterate:

- Use DRUPAL-6--3 of Panels, HEAD of ChaosTools.

- Rebuild the menu and clear your caches to make sure nothing from previous versions is in the way.

- Remember that Panels support questions go on the Panels issue queue, we won't be able to help with those :)

robloach’s picture

Status: Fixed » Needs review
StatusFileSize
new778 bytes

Great work, all! This is quite amazing..... Was getting a warning. Should it be $conf['formatter'], instead of $conf['field_formatter']. Here's a patch!

michelle’s picture

Rob: good catch. I made sure I could choose the different formatters but never looked to see how they changed on output. This is why I wanted other people testing. ;)

Thanks,

Michelle

michelle’s picture

Sorry, folks, I ended up falling asleep while getting my son to sleep and lost the whole evening. I will test this tomorrow. Really could use other people testing it as well since it's hard to thoroughly test your own code. :)

Michelle

karens’s picture

Status: Needs review » Fixed

OK, I committed that fix and updated CHANGELOG.txt. Anyone interested could also create some documentation on how to use this in the d.o. handbook or as a patch for inclusion in the Advanced help docs.

karens’s picture

Status: Fixed » Needs review

Well maybe I should leave this at 'Needs review' to stimulate more testing, but it is at least functional.

Again, no patch to apply, all the code is committed, it just needs testing.

michelle’s picture

Status: Needs review » Needs work

Ok, giving this a test from the latest CCK cvs. I noticed that Earl's fix to make nice node type names on the fields didn't make it to the fieldgroups. Will add a patch if no one beats me to it but I'm just about done for the night.

Michelle

michelle’s picture

Also noticed the admin title on the fieldgroups are missing the fieldgroup name.

Michelle

WorldFallz’s picture

Spent some time testing this out with cck dev, panels & ctools beta1-- works great so far. I'm still trying to wrap my head around all the capabilities of this new trifecta of modules but it's truly amazing stuff.

mcloki’s picture

I seem to be getting this error popping up alot after activating panels beta and ctools beta.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ,..............public_html/modules/ctools/includes/context.inc on line 163

After I activate agrigrator for ctools, my theme goes completly bonkers. Images aren't where they should be ect...

michelle’s picture

@mcloki: #450420: Warning: Unexpected character in input: '\' (ASCII=92) state=1 in ctools/includes/context.inc

Please keep this issue on topic with the CCK/CTools integration. Other issues belong in the queue of the problem module.

Michelle

qbnflaco’s picture

qbnflaco’s picture

michelle’s picture

@qbnflaco: Please, I just asked the poster before you to keep this issue on topic. This is not a dumping ground for misc panels issues.

Michelle

michelle’s picture

From http://drupal.org/node/430220#comment-1567254 by WorldFallz:

There was one potentially confusing thing (at least it confused me)-- on the "Content" vertical tab in the add content popup on the panel content screen I had the ability to add any fields from any content type to the user view panel. I couldn't get it to break anything, but it threw me off because I only expected to see fields from the content_profile designated content types there. Not sure if that's related to this issue or panels in general though.

That means the restriction code isn't working. That was one of the things I haven't been able to test, yet. Will try to get that working soon.

Michelle

merlinofchaos’s picture

I think this actually means that the relationship, provided by content_profile, is not placing any restrictions.

merlinofchaos’s picture

BTW, the more I use this, the more I feel that the fields should be categorized under 'Node' rather than 'Content' so they can join all the other node related fields. The way they are organized we can put a lot more there than we can in, say, Views, and still get away with it.

WorldFallz’s picture

merlin in #58:

I tend to agree-- when I first tried this out (i jumped into p3 at beta1 w/o any prior exposure to it) I didn't even notice the content tab at first-- I clicked immediately on the node tab and expected to see all node items there. Took me a bit of fumfering around to notice the content tab (of course that could just mean i'm dull-witted, lol, since that's the way views fields are organized).

michelle’s picture

@#57: Hmm... I thought the restriction by type was in the content type, not the relationship? Haven't had a chance to dig into it yet.

@#58: I'm fine with putting it in node. I just didn't know if putting potentially hundreds of new items in there would drown out what's already there. Whatever you folks think is best is fine by me, though. As long as it works, I'm not fussed on where it goes. :)

Michelle

merlinofchaos’s picture

It has to go on both sides:

The content type says "I am only applicable to these types of nodes".

The context says "I can be one of these types of nodes."

Almost certainly the relationship is just saying "I am a node", which means type is unknown, so the restrictions do not apply.

michelle’s picture

@merlinofchaos: Oooooh, yeah, then that's definitely it. I'll make a note on the relationship issue, then. Thanks!

Michelle

qbnflaco’s picture

I updated the the latest cck dev and haven't ran into any issues with it so far. Great work guys and gals!

z33k3r’s picture

Am I lost, or is there no way to use a CCK field as a context for passing to a view?

michelle’s picture

@z33k3r: Well lost in the fact that you're in the wrong issue for that... Please start a new issue for your question. :)

Michelle

cardell’s picture

I tried to get the fields/fieldgroups working, but couldn't seem to make it work.

I tried using CCK 6.x-2.3 and 2.x-dev. I have Panels 6.x-3.0-beta2 and CTools 6.x-1.0-beta3. The release notes for CCK 2.3 say that this was included, so I didn't apply any of the patches or file changes in the posting.

It lets me add a CCK field, but nothing appears. I also tried adding a fieldgroup...after I select the fieldgroup and click finish, I get sent to a page with just this:

[ { "command": "append", "selector": "#panel-pane-right", "data": "\x3cdiv class=\"panel-pane\" id=\"panel-pane-new-2\"\x3e\x3cdiv class=\"grabber\"\x3e\x3cspan class=\"buttons\"\x3e\x3cdiv class=\"ctools-dropdown-no-js ctools-dropdown\" id=\"ctools-dropdown-1\"\x3e\x3cdiv class=\"ctools-dropdown-link-wrapper\"\x3e\x3ca href=\"#\" class=\"ctools-dropdown-link ctools-dropdown-image-link\"\x3e\x3cimg src=\"/eatgunfree/sites/all/modules/panels/images/icon-configure.png\" alt=\"\" title=\"\" width=\"16\" height=\"16\" /\x3e\x3c/a\x3e\x3c/div\x3e\x3cdiv class=\"ctools-dropdown-container-wrapper\"\x3e\x3cdiv class=\"ctools-dropdown-container\"\x3e\x3cul class=\"links\"\x3e\x3cli class=\"0 first\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/hide/2/new-2\" class=\"ctools-use-ajax\"\x3eDisable this pane\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"1\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/configure/2/new-2\" class=\"ctools-use-modal\"\x3eSettings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"2\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/style-type/pane/2/new-2\" class=\"ctools-use-modal\"\x3eStyle: No style\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"3\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/pane-css/2/new-2\" class=\"ctools-use-modal\"\x3eCSS properties\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"4\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/access-settings/2/new-2\" class=\"ctools-use-modal\"\x3eVisibility settings\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"5\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/access-add/2/new-2\" class=\"ctools-use-modal\"\x3e -- Add new visibility rule\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"6\"\x3e\x3ca href=\"/eatgunfree/panels/ajax/cache-method/2/new-2\" class=\"ctools-use-modal\"\x3eCache method: No caching\x3c/a\x3e\x3c/li\x3e\n\x3cli class=\"7 last\"\x3e\x3ca href=\"/eatgunfree/%2523\" class=\"pane-delete\" id=\"pane-delete-panel-pane-new-2\"\x3eRemove\x3c/a\x3e\x3c/li\x3e\n\x3c/ul\x3e\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e\x3c/span\x3e\x3cspan class=\"text\"\x3e\"Node\" fieldgroup (strategy:group_recommendations)\x3c/span\x3e\x3c/div\x3e\x3cdiv class=\"panel-pane-collapsible\"\x3e\x3ch2 class=\"title\"\x3eNo info\x3c/h2\x3e\x3cdiv class=\"content\"\x3eNo info available.\x3c/div\x3e\x3c/div\x3e\x3c/div\x3e" }, { "command": "changed", "selector": "#panel-pane-new-2", "star": "div.grabber span.text" }, { "command": "modal_dismiss" } ]

If it helps, in the add content modal, the icon for the fieldgroup doesn't show up.

Maybe there's something on the panel creation that I'm missing. I added a panel, gave it a Node Required Context. On the content side, I added view of my content type in one pane and in a side pane added a nodereference field from the content type of the node pulled by the view in the main content. Am I doing something wrong in this setup?

Thanks...

Daniel A. Beilinson’s picture

Hello!
I can't get fields/fieldgroups' edit&add forms in panels. Only base form.
Any plans to integrate cck's add and edit forms for fields and fieldgroups?

michelle’s picture

@La_ntegral: I have no plans to do that at this time. I won't rule it out for the future, but certainly not the near future.

Michelle

Daniel A. Beilinson’s picture

Okay, I can use editable fields at near future! :-)
Thank you, Michelle.

markus_petrux’s picture

@Michelle: may I suggest turning this issue to fixed state and start new issues for specific problems, features?

It's hard to follow what's missing, and since CCK has a "Panels Integration" component for the issues queue, it seems it make things easier.

michelle’s picture

@markus_petrux: Fine by me. I think the only thing that's missing is restricting what field/fieldgroups are shown in add content by what node type we have context for. But it's been a while since I've looked at it so there may be something else I'm forgetting.

Michelle

markus_petrux’s picture

Status: Needs work » Fixed

Sweet, so I'm marking this issue as fixed. Since Panels 3 integration is already present since cck 6.x-2.3 release, then I think many peope will be testing it already, which is the concern KarenS used to keep this issue for review.

Here's a separate issue about field privacy checking. I attached a patch for review:

- #361473: CCK fieldgroup panels doesn't respect CCK field privacy settings

markus_petrux’s picture

Status: Fixed » Needs work

Please, let me re-open this issue again.

It seems to me we have a file in fieldgroup module that is not needed anymore:

- modules/fieldgroup/fieldgroup.panels.inc

The fieldgroup content types are now implemented in:

- modules/fieldgroup/panels/content_types/content_fieldgroup.inc

@Michelle: Could you please confirm in the file fieldgroup.panels.inc can be removed from the repo?

michelle’s picture

markus_petrux’s picture

Status: Needs work » Closed (fixed)

Wow, thanks for the quick response!

And also thanks for your articles about Panels 3. That helped me a lot to figure out quickly how it all works. :)

File fieldgroup.panels.inc removed from CCK2 and CCK3 repositories.

michelle’s picture

No problem. Thanks for finishing this integration up. I sort of left everything hanging when I switched focus to Advanced Forum.

Michelle

jmather’s picture

I was curious if someone could summarize what versions of CCK/Panels/Ctools (Whether it is dev or not) are necessary to get the fields to show up as shown in the screenshot http://drupal.org/files/issues/add-content.jpg

I understand it is pretty bleeding edge, but I'm curious to try it out.

michelle’s picture

jmather: I'd recommend using latest dev of all of them. There's so many changes going on, best to stay on the bleeding edge to test things out.

Michelle

jmather’s picture

Got it, merlin clued me in...didn't realize I had to set a node context. Thx.

lord_of_freaks’s picture

suscribing