I have a very simple custom module that simply renders a ul/li list. I have done similar thing many times in DW 7.x, but now in DW8 when i try to attach the module to a paragraph the progress spinner just keeps spinning and nothin happends.
Code for the module below. It is registered in DW with system name "CategoryListing". Any ideas?
[AddInName("CategoryListing")]
public class CategoryList : ContentModule
{
public override string GetContent()
{
NewsCategoryCollection ncc;
StringBuilder content;
ncc = NewsCategory.GetNewsCategorys();
content = new StringBuilder();
content.Append("<div id='bloggcategorylist'><ul>");
foreach(NewsCategory nc in ncc)
{
content.Append(String.Format("<li><a href='/Default.aspx?ID=7&categoryid={0}'>{1}</li>", nc.ID, nc.Name));
}
content.Append("</ul></div>");
return content.ToString();
}
}