hey

we need need further support for Panels/ctools to be able to add the domain access options to the node edit form for example.

at the moment there is no support for that, AFAIK:
Field form: Body
Field form: Groups audience
General form
Node form author information
Node form book options
Node form comment settings
Node form menu settings
Node form publishing options
Node form revision log message
Node form submit buttons
Node form url path settings

there is however support for other modules, like Fields/CCK, Flag, Fivestar and OG.

please add this feature to the 6.x and 7.x versions.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

agentrickard’s picture

Status: Active » Postponed (maintainer needs more info)

Do you have any idea why these form elements do not appear? Is there some hook we need to implement?

lpalgarvio’s picture

probably a hook, yes

check how they did it for Flag module.
a unofficial module, yet to be implemented, has the code here - http://drupal.org/node/332956
once its completed, they will merge with flag module.

agentrickard’s picture

Status: Postponed (maintainer needs more info) » Active

In D7, for instance, see ctools/plugins/node_form/node_form_author.inc

Looks like this would be a node_form addition.

Nick Lewis’s picture

Status: Active » Needs review
FileSize
1.61 KB

Here you go. You'll need to add a icon_node_form.png file to the content_types directory to prevent 404s.

agentrickard’s picture

I have no idea how to test this.

lunatic’s picture

Status: Needs review » Reviewed & tested by the community

Just tested it and patch works fine.

Thanks @Nick Lewis

I was almost at the point to give up using panels for node edit

wOOge’s picture

Status: Reviewed & tested by the community » Needs review

Just tested patch from #4 on ( 7.x-1.3 dated: 2011-Nov-06) ( using Domain Access version: 7.x-3.x-dev tar.gz 2013-Aug-17 ) and the following line in the patch:

if (isset($block->content['author']['#group'])) {

has to be changed TO:

if (isset($block->content['domain']['#group'])) {

switch’s picture

Issue summary: View changes

Thank you very much, patch helped a lot.

vonFrakas’s picture

For anyone banging their head against this, here's how I got it to work with 7.x-1.3:

  • Create a content_types directory in the domain_ctools/plugins folder, like so: domain_ctools/plugins/content_types
  • Place the patch in that directory and run it (patch < ctools-node-form-content-type-1139220.patch)
  • It will create a file there named node_form_domain.inc
  • Create or borrow a 16x16 png, name it icon_node_form.png, and place it in that same content_types directory
  • Add the following line to the domain_ctools.info file: files[] = plugins/content_types/node_form_domain.inc
  • Clear caches and you should be good to go