Project:Create Content Block
Version:5.x-1.x-dev
Component:Miscellaneous
Category:feature request
Priority:normal
Assigned:Unassigned
Status:needs review

Issue Summary

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

#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

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

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

  • 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

subscribing

#8

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?

#9

subscribe

#10

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.

#11

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!

nobody click here