Skip to content

Extends Pixel & Tonic's Playa module to allow retrieval of parent/child relationships for multiple entry ids

Notifications You must be signed in to change notification settings

croxton/Multiplaya

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Multiplaya

Version 1.0.1

Note: this is somewhat experimental and may break with future releases of Playa

Description

Extends the Playa module to allow retrieval of parent/child relationships for multiple entry ids. Specifically, you can add multiple entry ids to the entry_id parameter.

Installation

  1. Copy the multiplaya folder to ./system/expressionengine/third_party/
  2. In the CP, navigate to Add-ons > Modules and click the 'Install' link for the Multiplaya module

Examples

Get related entries which have ALL the parents listed - use '&' as a delimiter.

{exp:multiplaya:parents entry_id="20&31&73"}
...
{/exp:multiplaya:parents}

Get related entries which have ANY of the parents listed - use '|' as a delimiter

{exp:multiplaya:parents entry_id="20|31|73"}
...
{/exp:multiplaya:parents}

Get related entries which have ALL the children listed

{exp:multiplaya:children entry_id="20&31&73"}
...
{/exp:multiplaya:children}	

Get related entries which have ANY of the children listed

{exp:multiplaya:children entry_id="20|31|73"}
...
{/exp:multiplaya:children}

Works in the same way with the other standalone Playa tags, with the exception of the siblings tags.

About

Extends Pixel & Tonic's Playa module to allow retrieval of parent/child relationships for multiple entry ids

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages