Get HTML Code from a global content block

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
Wishbone
Power Poster
Power Poster
Posts: 1368
Joined: Tue Dec 23, 2008 8:39 pm

Re: Get HTML Code from a global content block

Post by Wishbone »

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.
Post Reply

Return to “Developers Discussion”