Is it possible to have 'conditional fields' in views?

hip - January 3, 2008 - 17:58

I mean define a view to show some fields but, in case one of them (not mandatory) is empty, then show a different field?

And any tweaks instead of doing it from the module panel?

Thanx in advance.

Just bumping it up.

hip - January 4, 2008 - 15:54

Just bumping it up.

Spanish Drupal - www.4tres.com : Desarrollo de sitios, páginas web y aplicaciones para Internet eficaces y especializadas en Sevilla.

Related: What if the field is null?

ransomweaver - January 4, 2008 - 16:23

Related: What if the field value is null? I would like to exclude it from the list. I would have thought I could add a filter to exclude it from the view, but since I have chosen this field to display in the view, it has disappeared from the list of available filter fields. Why is this? Anyone suggest a workaround?

Well, I'm not sure wether

hip - January 5, 2008 - 18:24

Well, I'm not sure wether this will be the same case, though a similar solution might work for both.

In my case if 'field A' is empty then in the same column (table view), should appear 'field B'

Spanish Drupal - www.4tres.com : Desarrollo de sitios, páginas web y aplicaciones para Internet eficaces y especializadas en Sevilla.

Bumping it up

hip - January 7, 2008 - 09:52

Bumping it up again. Let's give it one more try.

curious as well

NukeHavoc - June 2, 2008 - 20:39

I'm looking into this as well. I have a situation where I'm creating a list of web links. If a proxied web link is available, I want to use that, if it's not, then I want to use the unproxied web link, but I can't see an easy way to implement such conditional logic through straight-up Views.

 
 

Drupal is a registered trademark of Dries Buytaert.