findChild

findchild

  • By legio_noctis
  • Latest release January 17, 2011 (15 years ago)

About

Snippet that returns a property of a child of the current resource selected by specifying a property+value pair.

Installation & usage

Install using Package Manager.

To use:

[[findChild? &property=`property of child` &value=`value of property` &return=`property to return`]]

&property—The property of the child with the &value.

&value—The value stored against the property of the child.

&return—The property that you want returned from the child.

Examples:

[[findChild? &property=`pagetitle` &value=`News` &return=`id`]] — Return the id of the child of this resource with the pagetitle 'News'.

[[findChild? &property=`id` &value=`3` &return=`url`]] — Return the url of a child of this resource with the id '3'.

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer legio_noctis
  • Latest release January 17, 2011 (15 years ago)
  • First seen in SiteDash January 15, 2011 (15 years ago)
  • License MIT
  • MODX support 2.0 – 100.0

Releases 1 indexed release

Changelog
MODX.com

1.0-beta1

January 17, 2011

15 years ago

—