CVS edit link for kmadel

The current website that I have been working on has included quite a bit of code around enhancing the authoring user experience. Also, a major component of this revolves around the complex use of the CCK nodereference field, sometimes several levels deep and mostly multi-valued. We have also made heavy use of the excellent Node Relationship module to enable content authors to create and reference as they create the 'parent' content. Many of the referenced node types include CCK ImageFields and in order to ease the ordering and management of these nodereference fields for the content author, it was desirable to provide a thumbnail of an image that was part of the referenced node as a thumbnail for the nodereference node form widget. That way content authors are able to get a quick visual idea of what nodes are referenced and it also enhances the experience around reordering the node reference fields when supporting multiple values.

As far as I can tell, there is no existing module that has implemented this functionality.

The Nodereferenc Widget Thumbnail module (Drupal 6 only at this point) provides a configurable way to associate an image from a cck imagefield to be used as a thumbnail for nodereference autocomplete widget on the referencing node. Currently, only the autocomplete widget is supported.

REQUIREMENTS
============

- CCK and Node Reference.
http://drupal.org/project/cck

- FileField.
http://drupal.org/project/filefield

- ImageField.
http://drupal.org/project/imagefield

- Imagecache.
http://drupal.org/project/imagecache

Highly Recommended
- Node Relationships.
http://drupal.org/project/noderelationships

INSTALLATION
============

- Be sure to install all dependent modules.

- Copy all contents of this package to your modules directory preserving
subdirectory structure.

- Go to Administer -> Site building -> Modules to install module.

- Review the settings of your nodereference fields to make sure related
content types are explicitly specified in the option "Content types that
can be referenced". And enable the 'Enable Thumbnail' checkbox.

- Enter the image cck field name for each node type that you would like to display a nodereference widget thumbnail
for when be referenced via the nodereference field on another node.

- This module has also been thoroughly tested with the excellent noderelationships module which is highly recommended.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

kmadel’s picture

Title: Node Reference Widget Thumbnail » kmadel [kmadel]
Project: Drupal.org security advisory coverage applications » Drupal.org CVS applications
Component: module » new project application
FileSize
137.91 KB
9.72 KB

Attached archive of module and screenshot of the module in use.

It is now a sandbox project at: http://drupal.org/sandbox/kmadel/1075472

kmadel’s picture

Component: Miscellaneous » new project application
Status: Postponed (maintainer needs more info) » Needs review
FileSize
7.14 KB

Please review this slightly updated version. The screen shot from comment #1 still applies. This version added a select form control instead of a text field for specifying what ImageField of a given node type should be utilized for generating the nodereference widget thumbnail.

kmadel’s picture

For anyone making heavy use of node reference fields where the referenced node has an image field, I highly recommend that you at least check out the screenshot.

Thanks

kmadel’s picture

FileSize
7.41 KB

Here is another version with a minor change for dealing with a race condition when installed with the modalframe module (required by the noderelationships module).

kmadel’s picture

Anyone out there willing to take a look at this? I am definitely willing to port to Drupal 7 once the whole Reference/Relations direction works itself out. Am I missing something as part of this application?

dealancer’s picture

I have tried this module and it works perfect for me. Module has good style of code and I would appreciate if kmadel get a GIT/CVS account.

kmadel’s picture

Title: kmadel [kmadel] » Node Reference Widget Thumbnail
Project: Drupal.org CVS applications » Drupal.org security advisory coverage applications
lorinpda’s picture

Hi,
I tried to obtain a snapshot of you latest module, however your sandbox is missing most of the file listings posted in comment #4 (noderef_widget_thumb.zip archive)l
,,,,
It looks like the sandbox only contains "noderef_widget_thumb.info", Even that file listing appears empty.
....
Please review the git instructions and commit the rest of your project.
....
Hope that helps.
Lorin

kmadel’s picture

Sorry about that, I have committed the rest of the project and actually tested the git cloning procedure successfully. Thanks for taking a look!

eL’s picture

hm, nice... better this, than nothing... and nodereference explorer is too heavy for my purposes.

But it is pitty, that Nodereference field doesnt have function like Node Relationship module, where referenced node is previewed in modal window...

psiska’s picture

Component: new project application » module

Any plans to port this to D7?

kmadel’s picture

Title: kmadel [kmadel] » Node Reference Widget Thumbnail
Project: Drupal.org CVS applications » Drupal.org security advisory coverage applications
Component: new project application » module

Definitely, but it would be easier if it was an actual project with releases. Maybe it will get reviewed if I promise to port it to D7 ;)

jordojuice’s picture

Priority: Normal » Critical

Aye you haven't had much of a review yet! We apologize for the long wait! Updating priority according to priority guidelines. The application's priority should be set back to normal once a reviewer responds to your application and the application review process has continued.

svendecabooter’s picture

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

Apologies that your application process is taking so long...

I have reviewed your code and posted a few issues (some with patches) in your sandbox issue queue.
Once those are addressed, please set the status back to "needs review".

Keep up the good work!

kmadel’s picture

Status: Needs work » Needs review

Fixed all issues in issue queue as so graciously identified by svendecabooter.

Thanks.

svendecabooter’s picture

Status: Needs review » Reviewed & tested by the community

The project seems good to be approved as full project now, as far as i'm concerned.
There's still one Coder issue with tabs instead of spaces. You might want to reconfigure your editor to make sure it spits out spaces by default.

Sven

tim.plunkett’s picture

You have been granted the ability to create full projects. Use this power sparingly and only when appropriate! Congratulations.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.