1

I have to create a block that will be a gallery of users. The users to be featured will be curated by site editors. So I'm thinking the best way to track this is a pretty simple Drupal form / settings page where they just enter in the usernames they want.

However, the form should track N number of users. Is there a way in the Forms API to have an element that includes an "Add another value" or something similar, to allow for unlimited entries?

Or would it be better to just have a text area and ask the user to fill out one username per line?

  • Use jQuery for "Add another value". Do you have any issues with it? – AgA Dec 18 '11 at 17:51
2

That, or step 1) you could use http://www.drupal.org/project/flag which would allow the editor(s) to click / unclick a toggle on a user's profile that says they are "curated" and step 2) create a view that lists which users have been flagged.

  • (and if you do go this route, the 2.0 beta version is the way to go) – Jimajamma Dec 16 '11 at 1:04
  • Ah, we already have flag. Did not think of that. Neat idea! – Justin Dec 16 '11 at 3:59
  • One downside is you can't track an order. But it's a nice elegant solution. – Justin Dec 16 '11 at 17:43
  • you might be able to use rules to trigger something? – Jimajamma Dec 16 '11 at 19:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.