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?

Comments

zhte’s picture

Subscribe.

Bèr Kessels’s picture

@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?

Bèr Kessels’s picture

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.

stella’s picture

Status: Active » Needs review
StatusFileSize
new2.75 KB

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

bomarmonk’s picture

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

netdreamer’s picture

StatusFileSize
new1.49 KB

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... )

drupalina’s picture

subscribing

waltf’s picture

hi, i was searching for a way to get the exact node/add page in a block.
The list is great (thank u for that!) but i can't filter it with the menu like the node/add page,
and i can't get the discription to show with the solution posted above.
Any ideas?

magpie5212’s picture

subscribe

dnotes’s picture

So, I really hope this post doesn't offend anyone. I started testing out this module with the d6 patches, but I needed a few changes, then a few more, and I ended up re-writing it using a bunch of stuff from Open Atrium. I did this for my own personal use, and I'm only posting it here in case someone might find it useful. It's up at https://github.com/dnotes/createcontentblock.

Hope this module gets more love someday, because it's a great idea and I'd love to support it.

leahmd’s picture

I just tested dnotes module, very nice! I had to disable the js for the block config as it wasn't working in my setup, but it's just what I needed, thank you!