I started a site with flexinode, and then decided to move to CCK. When both Flexinode and CCK are enabled, the "content types" menu link and page do not work.

to fix this, I changed function flexinode_menu, adding "flexinode" to any "path" etc.

from this:

 // admin menu items
    $items[] = array(
      'path' => 'admin/node/types',
      'title' => t('content types'),
      'callback' => 'flexinode_page_admin',
      'access' => $admin_access,
      'type' => MENU_LOCAL_TASK,
      );
    $items[] = array(
      'path' => 'admin/node/type',
      'title' => t('add content type'),
      'callback' => 'flexinode_content_type_form',
      'access' => $admin_access,
      'type' => MENU_LOCAL_TASK,
      );
    $items[] = array(
      'path' => 'admin/node/type/delete',
      'title' => t('delete content type'),
      'callback' => 'flexinode_confirm_delete_content_type',
      'access' => $admin_access,
      'type' => MENU_CALLBACK,
      );
    $items[] = array(
      'path' => 'admin/node/field',
      'title' => t('edit fields'),
      'callback' => 'flexinode_admin_field',
      'access' => $admin_access,
      'type' => MENU_CALLBACK,
      );

to this:

  // admin menu items
    $items[] = array(
      'path' => 'admin/node/flexinode/types',
      'title' => t('flexinode types'),
      'callback' => 'flexinode_page_admin',
      'access' => $admin_access,
      'type' => MENU_LOCAL_TASK,
      );
    $items[] = array(
      'path' => 'admin/node/flexinode/type',
      'title' => t('add flexinode type'),
      'callback' => 'flexinode_content_type_form',
      'access' => $admin_access,
      'type' => MENU_LOCAL_TASK,
      );
    $items[] = array(
      'path' => 'admin/node/flexinode/type/delete',
      'title' => t('delete content type'),
      'callback' => 'flexinode_confirm_delete_content_type',
      'access' => $admin_access,
      'type' => MENU_CALLBACK,
      );
    $items[] = array(
      'path' => 'admin/node/flexinode/field',
      'title' => t('edit fields'),
      'callback' => 'flexinode_admin_field',
      'access' => $admin_access,
      'type' => MENU_CALLBACK,
      );

Sorry its not a patch. i don't have a patching system over here.

Comments

Bèr Kessels’s picture

Priority: Critical » Minor
Status: Needs review » Needs work

Sorry to say, but IMO running CCK and flexinode together is asking for trouble. So unless someone makes a real patch and that patch gets tested, I will mark this issue "won't fix".

Thank you for the report though, let us hope someone else can use it.

jon pugh’s picture

Thanks for the response, i can understand why it shouldn't be committed...

however, with this patch I have been able to run flexinode and CCK in parallel without any problems.

This is on a very content-heavy site with many content types (most of which I converted to CCK, and eventually I switch them all.), and really, it never showed any signs of incompatiblity.

CCK rocks, frankly, and I am looking forward to saying farewell to flexinode, but this got me working with both fairly easily, which is very helpful for my existing sites.

just thought someone would want to know.

jon pugh’s picture

Status: Needs work » Closed (won't fix)

sorry, i think it set status back to patch when i commented.

jon pugh’s picture

OK, i see now why there is more incompatibility between flexinode and CCK... once CCK is turned on, creating and editing flexinodes is ok, but you cannot edit the flexinode content types.

This could probably be fixed in the same way some pages were fixed above.

Oh well. I'll just have to wait for the flexinode->CCK converter (or just make it myself =D )

boz’s picture

May be fixed by CCK patch :
http://drupal.org/node/63419