|
All content with label snippets.
Related Labels:
snippet, best-practices
Page:
Snippets
(MODx Revolution 2.x)
Overview Snippets are the method by which MODx allows you to run dynamic PHP code in any of your pages. They are the main development vehicle for most developers. What is a Snippet? According to one definition, a "snippet" is "a short reusable piece of computer source ...
Other labels:
snippet
|
Page:
Templating Your Snippets
(MODx Revolution 2.x)
Templating Snippets One of the best practices in Snippet design is to make sure that you never write HTML directly in the Snippet, but template out the HTML into Chunks. This tutorial shows you how to do that in a Snippet. Our Initial Snippet Let's take ...
Other labels:
best-practices
|
Page:
Using Snippets
(MODx Revolution 2.x)
Snippets are MODx's answer to inline PHP code. They provide customizable dynamic content, such as menus, blog or news listings, search and other formbased functionality and anything else that your site needs to generate ondemand. Using a Snippet Once you have ...
|
|
|