Is it possible to create generic code for "all" content items
I'm looking into starting with SF4.x and started with the blogs about adding a custom module. So far I can follow what it should do and I'm looking forward to the promised advanced topics.
Another I was trying to do was creating a user control (a content rotator) which uses generic code to display news, events or items from custom modules. This was something I was able to do in SF3.7 but I can not find a working approach for SF4.x. Is this something that should be possible?
Regards,
David
Hello David,
To display content from the built in modules use the fluent API for the corresponding module in your rotator control.
Here is an example taking news items and adding an image from the images modules to the news item.
Custom modules can`t currently be accessed with the API. Custom modules add a frontend widget to display their functionality.
As a possible solution to get the content of a custom module in a widget is to use the custom module widget to get content from the built in modules.
Greetings,
Stanislav Velikov
the Telerik team