getChildCount

getChildCount

MODX extra

Install on MODX

App Details

<p style="margin: 10px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); line-height: 1.5; color: rgb(68, 68, 68); font-family: proxima-nova, proxima-nova-1, "Helvetica Neue", helvetica, arial, sans-serif;">Initial release.

Installation Instructions<p style="margin: 10px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); line-height: 1.5; color: rgb(68, 68, 68); font-family: proxima-nova, proxima-nova-1, "Helvetica Neue", helvetica, arial, sans-serif;">Install using Package Manager.

<p style="margin: 10px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); line-height: 1.5; color: rgb(68, 68, 68); font-family: proxima-nova, proxima-nova-1, "Helvetica Neue", helvetica, arial, sans-serif;">To use:

[!getChildCount?&nbsp;

&nbsp; &nbsp; &parent=id - list of parents&nbsp;

&nbsp; &nbsp; &depth=Search depth of child resources from parent in the Resource Tree&nbsp;

&nbsp; &nbsp; &template=template to filter results&nbsp;

&nbsp; &nbsp; &*=you can select all fields 'site_content' to filter the result&nbsp;

&nbsp; &nbsp; &toPlaceholder=If not empty, the snippet will save its output to a placeholder with the same name, instead of returning the generated menu.]]

When the page loads, start search is performed for:&parent=- (default current page),&parent=`3` - child resources for &parent.&nbsp;&depth= - (default =0),&deleted=- (default =false),&published= - (default =true),

<p style="margin: 10px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); line-height: 1.5; color: rgb(68, 68, 68); font-family: proxima-nova, proxima-nova-1, "Helvetica Neue", helvetica, arial, sans-serif;">Examples:

<p style="margin: 10px 0px 20px; padding: 0px; border: 0px; outline: 0px; font-size: 16px; vertical-align: baseline; background: rgb(255, 255, 255); line-height: 1.5; color: rgb(68, 68, 68); font-family: proxima-nova, proxima-nova-1, "Helvetica Neue", helvetica, arial, sans-serif;">[[!getChildCount? &parent=33 &depth=0 &template=3 &class_key=msCategory]] — Return the number children of a given resource = 33, with a given tree-depth = 1, wich a filter template=3 and class_key=msCategory.

[[!getChildCount? &parent=33 &depth=0 &template=3 &class_key=msCategory &toPlaceholder=countres]] — Save output to a placeholder with this name [[+countres]] instead of displaying the output to the screen.

Pricing

Starting from $0 per month.

Check Out the GDPR Cookie Notice Widget

By Common Ninja

GDPR Cookie NoticeTry For Free!

App Info

Rating

Reviewers

No reviews

Tags

No tags

Developed By

inogda 1.0.0-pl (24 KB)Other VersionsNeed help installing this extra?

More extras

extras You Might Like

GoogleCloudStorageGoogleCloudStorage

GoogleCloudStorage

Media source connector to Google Cloud Storage.A MODX's extra to&#8230;

Discover extra
Formula Shipping for CommerceFormula Shipping for Commerce

Formula Shipping for Commerce

Calculate shipping cost with a mathematical formula.

Discover extra
IE6NoMoreIE6NoMore

IE6NoMore

The aim of this plugin is to help remind users of IE6 that they need&#8230;

Discover extra
JSONDeruloJSONDerulo

JSONDerulo

JSON feed fetcher for common social sites, including:Eventbrite,&#8230;

Discover extra
HodorHodor

Hodor

"Hodor!" - Hodor

Discover extra
sdStoresdStore

sdStore

This package will install Simple Dream repository for MODX Revolution.There&#8230;

Discover extra
QuickEmailQuickEmail

QuickEmail

A quick email and email diagnostic snippet for MODx Revolution

Discover extra
GoogleTagManagerMODXGoogleTagManagerMODX

GoogleTagManagerMODX

This Extra allows you to add Google Tag Manager tags to your website,&#8230;

Discover extra
TinymceWrapperTinymceWrapper

TinymceWrapper

TinymceWrapper&nbsp;suite provides you with a complete frontend/backend&#8230;

Discover extra
onvicoonvico

onvico

video consulting and live chat function, etc.

Discover extra

Discover Apps By Platform

Discover the best apps for your website

WordPress
Wix
Shopify
Weebly
Webflow
Joomla
PrestaShop
Shift4Shop
WebsiteX5
MODX
Opencart
NopCommerce

Common Ninja Search Engine

The Common Ninja Search Engine platform helps website builders find the best site widgets, apps, plugins, tools, add-ons, and extensions! Compatible with all major website building platforms - big or small - and updated regularly, our Search Engine tool provides you with the business tools your site needs!

Multiple platforms