I'm trying to find the correct way to add new tabs in administration pages via plugin. As far as I have been able to find, the key idea is to implement IConsumer<AdminTabStripCreated> and capture the messages with TabStripName "product-edit". I saw this technique here:
Unfortunately it seems that they were using some model called ProductTabsAdminModel, but I can't find any reference to it in my current nopCommerce solution (3.30).
I've seen that I can add new blocks to render. This has made me think on some ways of achieving what I want, but I would like to have, if it's possible, some guidance or documentation about the correct way to do it.
The thing is, I can't find any reference to the ItemFactory in my solution. It seems according to your code that it should be part of AdminTabStripCreated.
I see that your plugin it's designed for version 3.10 and I'm trying to do something similar in 3.30. Has this class (ItemFactory) been removed?. Is there any new method that I should be aware of?
Thanks a lot!
Edit: I'm seeing in the source code that the TabStripItemFactory was removed and now HtmlHelper is used.
3.1 uses telerik which had an option to add a tab with title an html code
3.3 uses Kendoui
there is an option on page to render eventBlock as html code. I guess u should add the tab to your plugin view somehow, I could not find a decent way to do this.
Nothing to be sorry about!. Your questions have been super helpful.
I've been working these days over the plugin and I've managed to insert some UI on the products management page. Also, I've learned a bit about Kendo, and I'm able to do CRUD operations.
Instead of adding the Javascript that Hezy wrote directly as a block in the HandleEvent, I've created a view, and this view is rendered as text.
There's only one more thing that seems pretty weird to me. I guess it's something about the Kendo Tab Strip that I don't understand. When you select one tab, it gets the class "k-state-active". When you deselect it, the tab loses this class and the content disappears. This is not happening in my tab. When I select the tab, it gets the class "k-state-active", but it doesn't lose the class no matter what I do. Due to this behaviour, the content of my tab never disappears.