Hi there.
I'm trying to add a Ribbonbar Addin to the ParagraphList. The Add-in tab is successfully added to the Ribbonbar, but when clicking it, it does not change the "display:none;" block to "display:block;", and therefor my actual Addin button are never shown.
Is this a known thing? Is there any workaround?
I'm simply using the default AddIn handler from the codeit.
public override void Load()
{
// The code below is just a sample implementation that shows how to access the paragraphs associated with this RibbonBarAddIn.
// To learn more about RibbonBarAddIns, check out: http://developer.dynamicweb-cms.com/documentation/for-developers/cms-extensibility/ribbon-bar.aspx
RibbonBarGroup group = base.CreateDefaultContainer();
RibbonBarButton button = new RibbonBarButton();
group.Name = "Http Handler";
group.AddItem(button);
// Access the DataContext which is a ParagraphCollection for this AddIn.
ParagraphCollection paragraphs = base.Ribbon.DataContext.DataSource as ParagraphCollection;
button.Text = "Publiseret";
button.Image = Dynamicweb.Controls.Icons.Icon.Type.CheckDocument;
// Alternatively, specify your own Image path:
// button.ImagePath = "/Admin/SomeImage.png";
button.Size = Dynamicweb.Controls.Icons.Icon.Size.Large;
button.EnableServerClick = true;
button.Click += button_Click;
group.Active = true;
}
Best regards
Jonas