We launched new forums in March 2019—
join us there
.
In a hurry for help with your website?
Get Help Now!
Back to MODX.com
Forums
Docs
Revo Issues
Blog
My Forums
Products
Evo Development
Search
What is a snippet?
16 Posts
roulettered56
Reply #1,
18 years ago
I’ve been searching but to no avail can’t see what a "snippet" does?
I know what a module is though
Is there a way to add custom HTML blocks to templates?
Thank,
Louis
4,205 Posts
dev_cw
Reply #2,
18 years ago
’Snippets’ are php scripts that do stuff (whatever you program it to do in php).
a ’Chunk’ is an HTML blick that can be reused.
Ironically Modules are the most complicated and you got those first, the rest should be easy
For an overly simple explanation of a snippet go here:
http://modxcms.com/snippets.html
Check out this section of the wiki for some interesting information on using and creating snippets:
http://wiki.modxcms.com/index.php/Category
:HOWTO
[font=Verdana]Shane Sponagle
|
[wiki] Snippet Call Anatomy
|
MODx Developer Blog
|
[nettuts] Working With a Content Management Framework: MODx
Something is happening here, but you don't know what it is.
Do you, Mr. Jones? - [bob dylan]