Dashboard > MODx 0.9.6 > ... > Developers Guide > Snippets

View Attachments (0) Info

Snippets

Snippets are useful for adding logic to websites. They can be used to create menus, determine who is logged in, or any other thing possible with the API.

Usage

[[snippetName]]

Accessing Snippets via the MODx API 

Snippets can also be run inside of other snippets by using the MODx API:

Usage

$modx->runSnippet('snippetName');

Browse Space
- Pages
- Labels
- Attachments
- Mail
- Bookmarks
- News
- Activity
- Advanced

Explore Confluence
- Popular Labels
- Notation Guide

Your Account
Log In

Other Features

View a printable version of the current page.

Add Content


Powered by Atlassian Confluence 2.7.1, the Enterprise Wiki.
Bug/feature request - Contact administrators