still can't figure this out - i'm running very latest cck and when i add imagefield to a content type and set to unlimited, then when i'm in the node add form it starts off by showing 2 boxes to add images along with the 'add another item' button - but shouldn't it be showing only one??

is this by design?

CommentFileSizeAuthor
#9 image filefield.png8.98 KBmrgoltra
#5 imagefield.png3.6 KBmrgoltra

Comments

robertdjung’s picture

I've wondered the wisdom of this myself as well on many occasions.

drewish’s picture

Status: Active » Closed (works as designed)

only happens when you have an unlimited value field. and it's cck's doing so there's nothing we can do about it.

gallamine’s picture

I was wondering about this too. So, drewish, you say there's nothing that can be done? Here's a related thread about it. I couldn't really tell, though, if the issue was solved :-/

andrewsuth’s picture

Is it still the default behaviour of the ImageField module to use this CCK's settings? Because I am getting a different results..

I have 4 CCK fields all set to unlimited:

  • Text
  • Video
  • Link
  • Image

When I go to /node/add/my-content-type, I see the correct CCK behaviour for Text, Video and Link: 2 x widgets for each field.
For Image I only see 1 x widget.

When I look at the variable $current_item_count, it has the value 1 for each of the CCK fields except for Image, which has the value 0.

Anybody else getting these inconsistencies?

mrgoltra’s picture

StatusFileSize
new3.6 KB

Good Day,

Finally found this instead of creating a new thread. I am having the same issue but in my case I am not getting any upload boxes until I click Add another item. I have my setting set at unlimited

Thank you,

andrewsuth’s picture

Title: why does unlimited imagefield present 2 input boxes instead of starting with only one node/add/*?? » Inconsistent number of widgets displayed when set to "unlimited" - compared to other CCK fields
Category: support » bug
Status: Closed (works as designed) » Active
quicksketch’s picture

The display of one field instead of two is intentional, see #468584: Make Imagefield Input Display Default to One. However mrgoltra's problem of *no* fields being available by default is definitely not correct. Unfortunately I can't reproduce that problem. Could you provide a set of steps to reproduce?

quicksketch’s picture

Category: bug » support
Status: Active » Fixed

So as noted, the "problem" of showing one field instead of two is intentional. mrgoltra's problem is caused by the use of CCK 3 (development version) instead of CCK 2 (the more common, stable version). We can continue that discussion in #515622: FileField and CCK 3-dev result in no fields displayed by default, which accurately reports the problem.

mrgoltra’s picture

StatusFileSize
new8.98 KB

I just added a filefield (see attached). I have tried to disable and enable the module and I even tested on a test site. same issue. I tried different versions. You can check it out at usc.ismycampus.com.

Thank you.

update. marked mine as fixed. Using the current release, I noticed that image was greyed out for some reason.

Thank you.

Status: Fixed » Closed (fixed)

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