Search
Code Directory
 ASP
 ASP.NET
 C/C++
 CFML
 CGI/PERL
 Delphi
 Development
 Flash
 HTML
 Java
 JavaScript
 Pascal
 PHP
 Python
 SQL
 Tools
 Visual Basic & VB.NET
 XML
New Code
Vue Injector 3.3
Spectrum Analyzer pro Live 2019
Devart Excel Add-in for HubSpot 2.1
RentALLScript - Airbnb clone 2.2
SuiteCRM Theme Customization 7.11.6
iScripts NetMenus 3.1
iScripts EasyIndex 2.2
iScripts EasySnaps 2.0
Australia MyPost shipping For Magento 2 1.0.0
Australia Post eParcel For Magento 1.1.1
Source Control for SQL Server 2.0
Answers phpSoftPro 3.12
Exlcart 2.0
School College ERP 1.3.2
White-label Grocery Delivery App Solution 2.0
Top Code
IcrediBB Bulletin Board System 1.0
MATLAB Support Package for Arduino (aka ArduinoIO Package) 1.0
Azizi search engine script PHP 4.1.10
Binary MLM Plan 1.0.2
Answers phpSoftPro 3.12
Low Pass Butterworth Filter 1.0
The Shakespeare Programming Language 1.0
Faculty Evaluation System 1.1
MLM Binary Plan Script – i-Netsolution 1.0.2
MLM Software ONE 1.5.46
Online Food Ordering System 1.3.2
Cuckoo Optimization Algorithm 1.0
jDUL/DUDE 1.0
Java-2-Pseudo 1.0
Vue Injector 3.3
Top Rated
Uber Clone with Safety Measure Addons 2.0
Answers phpSoftPro 3.12
phpEnter 5.1.
Quick Maps For Dynamics CRM 3.1
Single Leg MLM 1.2.1
Azizi search engine script PHP 4.1.10
Paste phpSoftPro 1.4.1
Extreme Injector 3.7
Deals and Discounts Website Script 1.0.2
Solid File System OS edition 5.1
Classified Ad Lister 1.0
Aglowsoft SQL Query Tools 8.2
Invoice Manager by PHPJabbers 3.0
ICPennyBid Penny Auction Script 4.0
PHP Review Script 1.0
Views Or 6.x-1.0-alpha1
File ID: 101860






Views Or 6.x-1.0-alpha1
Download Views Or 6.x-1.0-alpha1http://drupal.org/project/select_publicationReport Error Link
License: Freeware
File Size: 10.0 KB
Downloads: 0
Submit Rating:
Views Or 6.x-1.0-alpha1 Description
Description: Views Or allows Views to combine filters or arguments with OR and fields with COALESCE.

Note: Similar functionality will be eventually be added to Views in a way that is not compatible with this module (see issue 291660). Once that happens, this module will be deprecated, and users will need to update their views manually. This module is experimental, and is shared so that others can help improve on it.
Combining filters or arguments with OR

By default, each record in a view must match all filters. Sometimes records need to be included if they match one or more filters in a list of alternatives. Views has the ability to combine filters only with AND. If one filter is false, the combined list will be false. Views Or adds the ability to combine blocks of filters with OR. If one of the filters in the block is true, the combined block will be true.

Views Or provides three filters:

Begin alternatives
Begins a block of alternative filters.
Next alternative
Separates alternative filters in an alternatives block.
End alternatives
Ends a block of alternative filters.

Insert these filters between other filters to create alternatives. For example, the following sequence of filters

* Views Or: Begin alternatives =
* Taxonomy: Term ID = Carrot
* Views Or: Next alternative =
* Taxonomy: Term ID = Elephant
* Views Or: End alternatives =

is equivalent to the following logical expression:
<!--code1--><!--ecode1-->(Taxonomy: Term ID = Carrot) OR (Taxonomy: Term ID = Elephant)<!--code2--><!--ecode2-->

Here is a more advanced example. The following sequence of filters

* Node: Published True
* Views Or: Begin alternatives =
* Taxonomy: Term ID = Carrot
* Node: Type = Forum topic
* Views: Views Or next alternative =
* Taxonomy: Term ID = Elephant
* Node: Type = Story
* Views: Views Or end alternatives =
* Node Post date >= -3 weeks

is equivalent to the following logical expression:
<!--code1--><!--ecode1-->(Node: Published True) AND (
dlT dlT (Taxonomy: Term ID = Carrot AND Node: Type = Forum topic)
dlT dlT OR
dlT dlT (Taxonomy: Term ID = Elephant AND Node: Type = Story)
) AND (Node Post date >= -3 weeks)
<!--code2--><!--ecode2-->
Arguments can be combined in the same way as filters. By default, when arguments are combined, the same arguments will be used for both sets of alternatives. So if there are two alternative arguments in a block, the view needs to receive only one argument. Uncheck "Share arguments" in the "Views Or: Next alternative" argument to allow each set of alternatives receive different arguments from the URL.
Combining fields with COALESCE

When using relationships in a view, the same field may appear multiple times. Views Or adds the ability to combine multiple fields into one using the COALESCE function. The value of the combined field will be taken from the first field which contains a value.

Views Or provides two fields:

Begin alternatives
Begins a group of alternative fields.
End alternatives
Ends a group of alternative fields.

Insert other fields between these fields to create a combined field. The title and settings of the first field in the group will be used for the combined field, even if another field contains the value.

License: Freeware

Related: views, Filters, alternatives, Alternative, Field, combined, taxonomy, arguments, Block, fields, carrot, Combine, elephant, ability, Module, Group, begins, Sequence

O/S:BSD, Linux, Solaris, Mac OS X

File Size: 10.0 KB

Downloads: 0



More Similar Code

The MultiView web part allows you to display data dynamically from different Views or even different Sharepoint Lists or Libraries based on certain conditions.Different Views can be shown based on who is logged in and the parameters in a query string



QuickRecords is a database program that view data in different point-of-views or perspectives. The data specification that you want QuickRecords to work with are stored in the datasource itself and can be changed depending on you application.



Custom views to output all terms in a vocabulary can be created.

TVI will not to interfere with views or taxonomy/term page displays if no TVI views exist for the current page request.

Using TVI the look and feel of any and...



Built for high volume sites, this script offers unlimited rotations, rotate banners with or without SSI, auto expiration of banners by days, views, or clicks for each individual banner, client side stats and more. Can display ads in other scripts,...



Pop this script into any directory and it creates either a thumbnail page with click for larger views or simply a page with a certain amount of images displayed with NEXT and BACK buttons.



This module links the Page Title and Meta Tags by Path modules, allowing you to override individual page titles on a per-path basis. This is useful for SEO purposes when you need to alter page titles for individual views or other non-node...



It helps create filters that make use of OR operators.

Installation

Unpack in your modules folder (usually /sites/all/modules/) and enable under Administer > Site Building > Modules.

Here are some key...



This module provides an API for users to gain or lose points for performing certain actions on your site.

In conjunction with other modules, such as the userpoints Nodes and Comments users can accumulate points for actions such as...



Insert View is a filter that allows users to embed content lists generated by the Views module into node bodies and blocks using relatively simple tag syntax. Naturally, it requires the Views module to operate.

Why would you want to use...



This GUI program allows you to navigate through a 3-D image with three orthogonal views, and display the intensity value at any voxel location. You can see the intensity values by moving the mouse pointer over any of the three views, or you can...

User Review for Views Or
- required fields
     

Please enter text on the image