Skip to content

Latest commit

 

History

7 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

AjaxSnippet

Simple component for MODX Revolution, that allows you to run any snippet through ajax.

Call AjaxSnippet at any page

[[!AjaxSnippet?snippet=`pdoResources`&parents=`0`]]

You can specify any parameters for end snippet:

[[!AjaxSnippet?
	&snippet=`pdoResources`
	&parents=`0`
	&tpl=`@INLINE <p>[[+idx]]. <a href="[[+link]]">[[+pagetitle]]</a></p>`
	&useWeblinkUrl=`1`
	&etc=`...`
]]

You can use jQuery event "as_complete" for custom functionality:

$(document).on('as_complete', document, function(e,d) {
	console.log(d);
})

About

Simple component for MODX Revolution, that allows you to run any snippet through ajax.

Resources

Code of conduct

Contributing

Security policy

Stars

4 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages