Port to Drupal 6?

zhte - July 3, 2008 - 01:54
Project:Create Content Block
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review
Description

I am curious if this could be ported to Drupal 6? Also, take advantage of AJAX/AHAH so no page refresh is needed when submitting?

#1

zhte - August 25, 2008 - 05:15

Subscribe.

#2

Bèr Kessels - January 15, 2009 - 11:35

@zhte please do not subscribe for the sake of getting mails. http://www.webschuur.com/publications/blogs/2008-09-14-help_your_drupal_...

Since I am in need of this module in 6, I will post some patches tonight.

However, I do not need this in the context of OG. So please chip in and test the patches on d6 with og, since I will not be testing any of that.

That being said: how about making a new version that is OG-unaware?
Meaning: rip out all og stuff and make it a module dedicated at providing an alternative for node/add. Possible with a hook to allow other modules such as og_node_add_alternate.module to hook in and modify the node/add to their wishes?

Should I include that in a d6 version? Or should I best just get a rough port out and open new issues with changes?

#3

Bèr Kessels - January 15, 2009 - 12:58

ignore the above. This module is far too incompatible with my needs and I will therefore for this into an og-unaware module. porting to D6 has no benefit for me without a complete refactoring. I will threfore not present a patch for a D6 version here.

#4

stella - May 1, 2009 - 17:48
Status:active» needs review

Here's a Drupal 6 version of the module.

To be honest, I haven't tested it with organic groups module enabled, but it should work. However, I did add another block which, instead of displaying the content types in a drop-down, provides a link to the node add page for each. There's also an optional link for the 'content management' page, should the user have the appropriate permissions.

Cheers,
Stella

AttachmentSize
createcontentblock_d6.tgz 2.75 KB

#5

bomarmonk - July 13, 2009 - 18:49

This works for me so far. Any chance of an official commit?

#6

netdream - September 17, 2009 - 16:10

Stella, I really appreciate your work but I found something wrong and provided a patch.

I fixed only your block (the "list", not the dropdown box):

  • the organic group part of your block now works
  • the link to content management (in D6 is admin/content/node)
  • I added also the "Subscribe to Add Content to this group" like in the dropdown box

I think that also the dropdown box need some work, but I don't use it.
I tested it only with url rewriting... but it seems completely wrong.
It tries to send the form to "/node/" when trying to create a new node instead of calling "/node/story/add?gid[]="

I think it's senseless... (or I don't know that it's just another way of creating a node in a group... but it's not working for me at all... )

AttachmentSize
createcontentblock_p1.patch 1.49 KB

#7

drupalina - October 17, 2009 - 01:34

subscribing

 
 

Drupal is a registered trademark of Dries Buytaert.