Skip to content

Instantly share code, notes, and snippets.

@witrin
Created July 31, 2012 21:27
Show Gist options
  • Save witrin/3220729 to your computer and use it in GitHub Desktop.
Save witrin/3220729 to your computer and use it in GitHub Desktop.
TypoGento - Ajax Page
/**
* Setup basic Ajax page
*/
ajax = PAGE
ajax {
# Set as default type
typeNum = 0
config {
# Disable header code
disableAllHeaderCode = 1
# Set content type (RFC 4627)
additionalHeaders = Content-Type: application/json; charset=utf-8
}
# Use TypoGento as output
10 < plugin.tx_typogento_pi1
10 {
# Disable caching
cache = 0
# Enable Ajax output
mode = ajax
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment