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
Subscribe.
#2
@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
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
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
#5
This works for me so far. Any chance of an official commit?
#6
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):
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... )
#7
subscribing