Is there a way to create new template types? I would like to generate json content that’s going to be fetched by a js script. So i’d like to generate a .json file with application/json mime type.
Thanks,
Vincent
This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.
The active forums are here.
September 17, 2012 11:20am
Subscribe [2]#1 / Sep 17, 2012 11:20am
Is there a way to create new template types? I would like to generate json content that’s going to be fetched by a js script. So i’d like to generate a .json file with application/json mime type.
Thanks,
Vincent
#2 / Sep 19, 2012 12:51pm
Hey garda,
Thanks for your question!
There is no automatic way within the ExpressionEngine Control Panel to do this, but there is a hook to create them.
I hope this help!
Is there anything else I can help with?
Cheers,
#3 / Sep 26, 2012 2:57pm
Hi Shane, that’s perfect, thanks for the link!
Vincent
#4 / Sep 26, 2012 2:59pm
Hey garda,
Glad to help!!
If you need anything else, please just let me know by opening a new thread.
Cheers,