Slideshow with views - Make slideshow title optional Hopefully this is an easy task and I am just too much a beginner to solve it ...

I use a slideshow that can be configured using views. Slideshow uses the following fields: Title, nid, and Slideshow image.

Is it possible to introduce an extra field (checkbox -> boolean) to page/article and then to exclude the title from being displayed if the boolean checkbox is checked?
To be precise; intrudicing the checkbox is easy, but I do not know how to evalute it then to exclude title in slideshow if checkbox is checked.
Yes. Assuming your view is displaying fields (under Format > Show), you'd follow these steps:


Install the views_php module.
Edit your view, adding the fields you wish to display all the time.
Add the boolean field to the view, checking the "exclude from display box."
Add the title field to the view, checking the "exclude from display box."
Add a new field "Global: PHP" to the view. In the "output code" field, enter in the following code:




&lt;?php
$title = NULL;
if ($data-&gt;field_field_show_title[0]['raw']['value'] === "1") {
  $title = $row-&gt;title;
}

echo $title;
?&gt;


This code assumes your boolean field is called field_show_title. Note that, for whatever reason, $row->field_show_title reports the node ID instead of the value of the field, so I had to dig it out of the data object instead.

Beneath the "output code" field you'll find an "available variables" section which describes the data that views makes available to your PHP snippet.

You may order the fields however you like, of course.