Re: Get HTML Code from a global content block
Posted: Wed Oct 19, 2011 4:16 pm
I don't think you'll be able to run CMS smarty functions externally. You might want to do something different like create a page containing the call to your GCB. The page is using a template that only contains {content}, and use cURL (or something) to access the data on that page.
Or... Write a UDT to leverage the AddGlobalContentPost trigger to write out the GCB to a file each time it's edited and have your script read this file.
Or... Write a UDT to leverage the AddGlobalContentPost trigger to write out the GCB to a file each time it's edited and have your script read this file.