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 Social Proof Avatars Widget

By Common Ninja

Social Proof AvatarsTry 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.

Social Proof Avatars for MODX logo

Social Proof Avatars

Display social proof avatars that show user activity and ratings, build trust instantly, and help visitors feel confident about your credibility.

Feedback Form for MODX logo

Feedback Form

Collect user insights with a feedback form that gathers valuable input, improves user experience, and helps you understand visitor needs more clearly.

Scroll to Top for MODX logo

Scroll to Top

A scroll to top button that helps visitors move back to the top of long pages quickly, improving navigation and overall browsing flow.

Payment Method Logos for MODX logo

Payment Method Logos

Show payment method logos that highlight accepted payment options, build trust at checkout, and help visitors feel confident completing their purchase.

Nudge Button for MODX logo

Nudge Button

Nudge button with a subtle shaking animation that draws attention to important calls to action, increases interaction, and helps boost conversions.

Company Branch Flip Cards for MODX logo

Company Branch Flip Cards

Display locations with company branch flip cards that help customers find nearby offices, understand key details, and enjoy a smoother overall experience.

Reviews Badge for MODX logo

Reviews Badge

Use a reviews badge to highlight your ratings, build trust at a glance, improve credibility, and help increase conversions across your site.

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.

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.

Payment Button for MODX logo

Payment Button

Use a payment button for secure PayPal or Stripe checkout to simplify online payments and help increase sales.

Animated Headline for MODX logo

Animated Headline

Add animated headlines to draw attention to key messages and improve user engagement through visual emphasis.

LinkedIn Feed Carousel for MODX logo

LinkedIn Feed Carousel

Show LinkedIn posts with a LinkedIn feed carousel that auto updates, presents content in a smooth layout, and keeps visitors engaged.

More extras

extras You Might Like

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