Hi all,

It would be nice if we could categorize links.

In my case, I could have hundreds of links but they all are from only few external sites.
I would want to categorize those links in order to show them on a specific page filtered by external site.

One way to do this would have been to use something like taxonomy but it's not possible on CCK Link field.
Another way is to use many different CCK Link fields in my content type with different "Additionnal CSS class" for each of them.
It's a pitty to create so many CCK Link fields just to set this difference.

A solution I would prefer is to allow a new field in edit content form.
With URL and Title we could set also "Category" or something like this.
This field could also be setted with Select List filled in admin settings.

In edit form we would have this :

URL : http://drupal.org/project/link
Title : Link
Category : Drupal Module

URL : http://drupal.org/project/acquia_marina
Title : Acquia Marina
Category : Drupal Theme

In view page, I would want to show my links with different image depending on category my link field is associated.
I could change image depending on category.
I think such an approch is more flexible than to use "Additionnal CSS class" which that's definitively not its aim.

But how could I implement it ?
Could it be integrate in Link module ?
I don't think I'm the only person who need it.

Comments

giorgosk’s picture

Status: Active » Closed (won't fix)

work is done elsewhere to group 2 or more fields together in groups
just follow this discussion but it does not seem to be a clear way to do it yet
#494100: State of the multigroup module

and there is a module that could also help
http://drupal.org/project/flexifield