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 Capterra Reviews Widget

By Common Ninja

Capterra ReviewsTry 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?

Common Ninja Apps

Some of the best Common Ninja extras for MODX

Browse our extensive collection of compatible extras, and easily embed them on any website, blog, online store, e-commerce platform, or site builder.

Capterra Reviews for MODX logo

Capterra Reviews

Show Capterra reviews to build trust, strengthen credibility, and help visitors make confident software buying decisions that support higher sales.

Instagram Slider for MODX logo

Instagram Slider

Add an Instagram slider to your site to display social posts dynamically and keep your visual content engaging and current.

WhatsApp Conversation for MODX logo

WhatsApp Conversation

Show WhatsApp conversations on your website in a clear, authentic chat format.

Sticky Video for MODX logo

Sticky Video

Use a sticky video that stays visible while users scroll to keep content in view, increase watch time, and boost engagement.

Catalog for MODX logo

Catalog

Create and customize product catalogs with a catalog widget that organizes items clearly, improves browsing, and helps visitors explore your offerings easily.

TDEE Calculator for MODX logo

TDEE Calculator

Create a TDEE Calculator that helps visitors estimate daily calorie needs and make informed decisions.

AliExpress Reviews for MODX logo

AliExpress Reviews

Show AliExpress reviews to build trust, improve credibility, and help visitors make confident purchase decisions that support higher sales.

Google Maps for MODX logo

Google Maps

Show business locations clearly with a Google Maps widget that displays multiple points, detailed info, and customizable styles to help visitors find you easily.

Charts & Graphs for MODX logo

Charts & Graphs

Add charts and graphs to your site to present data clearly, help visitors understand insights faster, and support more confident decision making.

Facebook Reviews for MODX logo

Facebook Reviews

Show Facebook reviews to build trust, improve credibility, and help visitors make confident purchase decisions that support higher sales.

Back to Top Button for MODX logo

Back to Top Button

Back to top button that improves navigation, speeds up browsing, and helps visitors move smoothly through long pages for a better user experience.

Form Builder for MODX logo

Form Builder

Create custom forms with a form builder that offers advanced field types, easy layout control, and flexible options for any purpose.

More extras

extras You Might Like

Mailchimp API for CommerceMailchimp API for Commerce

Mailchimp API for Commerce

Let Commerce interact with Mailchimp via an API.

Discover extra
Ebents for MODXEbents for MODX

Ebents for MODX

Ebents is a collection of functional components (or widgets) for&#8230;

Discover extra
mxFormBuildermxFormBuilder

mxFormBuilder

Easily create and manage all aspects of a form without a single piece&#8230;

Discover extra
Efsight Visitor CounterEfsight Visitor Counter

Efsight Visitor Counter

Embed your Visitor Counter on the MODX website

Discover extra
Multilingual Products for CommerceMultilingual Products for Commerce

Multilingual Products for Commerce

Easily manage multiple language translations for each product.

Discover extra
Mailchimp for FormItMailchimp for FormIt

Mailchimp for FormIt

Package for subscribing users in Mailchimp lists using FormIt.

Discover extra
idxtoclassidxtoclass

idxtoclass

Converts numbers to text, for use in classnames for example.&nbsp;Based&#8230;

Discover extra
HomeHome

Home

Home template

Discover extra
Rs14Rs14

Rs14

A two-column XHTML valid template from Rambling Soul.

Discover extra
ArchiveListArchiveList

ArchiveList

The Archive Lister. Will list resources by year, month and day.With&#8230;

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