Kentico 13.I'm trying to display content from a custom data table with not much luck.
Most of the examples I found shows only partial code.Do you guys know of any good examples on how to display content from a custom data table?I was able to retrieve some data but I have no control over it.Here's what I have:Controller:
IEnumerable@TableTest1Item@ tableContent = CustomTableItemProvider.GetItems@TableTest1Item@(); return PartialView(@Widgets/_MyDataWidget@, tableContent);Partial View:
@model IEnumerable@CMS.CustomTables.Types.Customtable.TableTest1Item@@foreach (var item in Model){@h4@@item.GetValue(@Title@)@/h4@@p@@item.GetValue(@Description@)@/p@}Ideal would be a widget that allows you to select any custom data table and apply a transformation like in good old days repeaters.Thanks
↧