I have been working on my first Contao module lately hence all the questions lately! It's a module which allows you to display content from external resources. For example, a WordPress blog. At the moment it's working in two steps you have a backend module where you can register or add your data providers.
Next step, you can create instance of the frontend module which allows you to pick the data provider to use and the module template and item template to use. And bang you got your list from the external resource. Currently I am using it for displaying content from a web-service. A simple data provider is written which does two things:
- Retrieves the data from the web-service and based on the passed query data (GET, POST) it will determine the appropriate url and then loads it[/*:m:3jtnc5fq]
- After successfully loading the cache will be updated, if necessary, and then the data get processed and an array will be returned to the module[/*:m:3jtnc5fq]
I am curious if anyone would be interested in this module? I will make a simple WordPress dataprovider class as an example which talks straight with the WordPress database and retrieves the data. Currently, it's still a bit rough because I haven't found a good way to generate "fields" on demand in a frontend module instance and then serialize the settings back to a specific database field in tl_module.
Bookmarks