Hi! Is there anyone of you who knows how to change the DisplayName of an EditPanel plugin at runtime? Like the Version tab when you have an unfinished version of a page.
No one? Ill try to be more specific:
I've made an EditPanel plugin called Comments wich (of cource...) adds a tab to the edit panel tab area. The plugin simply lists comments that has been registered for the current page. Now I want to display the number of comments in the tab name, like Commets (0) or Comments (4). How do I achive that?
Thanks in advance!
Perhaps you can do something similar to this:
To be more specific (I'm speculating here) you should be able to use the same tecnique to attach to the PreRender event, then go through the tabstrip items. Cast them as TabStripTab items or NavigationNode items to explore them more. If you can find a way to find "your" tab (using the text?) you can set its Text and hope that the value you set gets rendered.
Thank you Magnus for pointing me in the right direction! I went for Allans solution, that was exactly what I was looking for.
Care to share your code? It seems like a nice feature and I can see other similar applications as well.