heres what I am proposing:

right now I am limited to one link or a fixed number of links (multiple values checkbox) per node.

What would be optimal if it were possible to add a flexible number of links, using javascript. This could easily be achieved with wforms; an example http://www.formassembly.com/blog/repeat-behavior-explained/

Is something like this planned? Would someone else be intrested?

Cheers,

CommentFileSizeAuthor
#8 linkmoduleeimg.jpg39.03 KBLaurentvw

Comments

quicksketch’s picture

Hi there. Link can already create an unlimited number of links per node. Just hit the 'Preview' button after filling in the available fields, and two more appear. Fill those in, and more appear, etc. This could definately be extended to using javascript, but we'll wait for 5.0 when we can count on using the new javascript features (like jQuery).

Speigei’s picture

gotcha, thanks for the heads up.

Laurentvw’s picture

Assuming that Drupal 5.1 is already out, will this feature be available soon? I'm really looking forward to it, I need it! Thanks.

quicksketch’s picture

I've posted a feature request to CCK. The javascript portion really should be handled universally. If this code goes into CCK or core (or similar), link should be ready to utilize it.

http://drupal.org/node/128805

Laurentvw’s picture

Version: 4.7.x-1.x-dev » 5.x-1.5

I've been following your post for the past day and seen that you have already made a version for this feature request. I just wanted to thank you for your effort and for being so quick in responding to my post. Thank you :)

quicksketch’s picture

Status: Active » Fixed

I've gone ahead and included a Javascript dynamic adding of fields in CVS. This feature will be part of link module 1.6. Please try out the development version and report any problems you may find to this thread. Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)
Laurentvw’s picture

StatusFileSize
new39.03 KB

Okay so I tested it. Seems to work fine here on Drupal 5.1. I've made a little image explaining some improvements that could be made though ( http://img505.imageshack.us/img505/5284/linkmoduleeimgwl4.jpg )

Laurentvw’s picture

Oops sorry. Got something else that might interest you. Suppose you clicked 'More links' a lot of times but aren't using all the fields. So some fields stay blank. When submitting the node, and going back to the edit tab, all blank fields appear to be saved as well. I think it would be good if you would check if the field is empty, and, if it indeed is empty, not save it.
Anyway, good job on the development. I appreciate it.

druru’s picture

quicksketch...

how about a way to reorder (change the order of) the multiple links fields after they've been created? does that exist, can it be done and or are there any plans for that with cck in drupal 6?

i ask because reordering of multiple values is a great feature. otherwise you're limited to the order you enter the fields or through code only by either ascending or descending values only... either form based up down arrows or js drag and drop would be great. just curious.

thanks