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

By Common Ninja

Google 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.

Google Reviews for MODX logo

Google Reviews

Show verified customer feedback with Google Reviews to build trust, strengthen credibility, and help visitors make confident purchase decisions.

Lottie Player for MODX logo

Lottie Player

Use a Lottie player to embed lightweight JSON animations that improve visual design, keep pages fast, and create a smoother user experience.

Website Search for MODX logo

Website Search

Add a Google powered search bar that delivers relevant results, improves navigation, and helps visitors find content fast.

Product Blobs for MODX logo

Product Blobs

Use product blobs to highlight key items, draw attention to featured products, and guide visitors toward faster and more confident purchase decisions.

Events Calendar for MODX logo

Events Calendar

Add an events calendar to your site so visitors can view upcoming activities, improving engagement and event visibility.

Tumblr Feed for MODX logo

Tumblr Feed

Show Tumblr posts with a Tumblr feed that keeps content fresh, improves navigation, and helps visitors discover more posts.

RSS Feed for MODX logo

RSS Feed

Show fresh content from any source with an RSS feed that keeps your site updated, improves navigation, and boosts user engagement.

Mega Footer for MODX logo

Mega Footer

Create a mega footer that organizes navigation links, contact info, logos, social icons and improves usability and site structure.

Bluesky Feed for MODX logo

Bluesky Feed

Show Bluesky posts with a Bluesky feed that updates in real time, improves content discovery, and keeps visitors engaged with fresh activity.

Podcast Player for MODX logo

Podcast Player

Add a podcast player to your site to embed and organize episodes, provide responsive playback, and keep listeners engaged.

Card Slider for MODX logo

Card Slider

Showcase content with a card slider that presents images, text, and buttons in a smooth, customizable layout to keep visitors engaged.

X Feed for MODX logo

X Feed

Show posts in an X feed that keeps updates visible, improves content discovery, and helps visitors stay engaged with your latest activity.

More extras

extras You Might Like

1140 CSS GRID1140 CSS GRID

1140 CSS GRID

A starting template for MODX Revolution based on the 1140 CSS GRID:&#8230;

Discover extra
PagehitsPagehits

Pagehits

Pagehits is a simple visitors counter. It counts users based on IP&#8230;

Discover extra
elementNoteselementNotes

elementNotes

elementNotes adds a tab to element's forms (snippets, chunks, plugins,&#8230;

Discover extra
MatomoVisitsSummaryMatomoVisitsSummary

MatomoVisitsSummary

A MODX Dashboard Widget with the visits summary graph of Matomo

Discover extra
ElementArchiveElementArchive

ElementArchive

This Modx extra is a Custom Manager Page (CMP) that can be used to&#8230;

Discover extra
DropboxDropbox

Dropbox

--------------------Dropbox Media Source--------------------Navigates&#8230;

Discover extra
OAuth2ServerOAuth2Server

OAuth2Server

Grant, manage, and verify requests based on OAuth2 access tokens,&#8230;

Discover extra
modxRepositorymodxRepository

modxRepository

This MODX Extra allow to create own repository for MODX Revolution&#8230;

Discover extra
Magento Store Product ListerMagento Store Product Lister

Magento Store Product Lister

A package that interfaces to Magento stores using the provided SOAP&#8230;

Discover extra
Grid Class KeyGrid Class Key

Grid Class Key

A custom class key for MODX&nbsp;Revolution's Manager to hide child&#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