Forum Discussion
Hi Daan,
isn´t this one a overkill solution? [emoticon:4191f5ee34e248a29fa0dbe8d975f74a]
There is of course nothing wrong with this one. But regarding updates it´s always a benefit to avoid codetree modifications, cause the update team often forgets them when you don´t tell them.
Why not edit the CUI element? This way you could make the button visible to just a couple of users, like "admins".
You can remove/change identity for MSO_OpenInOfficeMenuButton in CommandBarSection itemview.itemcommandbar.default
Or even easier, cause it was obvious as soon as I saw the CUI element. Just removing "Document" from Variable "MSO_OpenInOffice" should do the job the same way.
- Daan4 years agoIdeator I
Hi Angela,
I have been looking for such a method for quite a while but could not figure it out.
Thank you very much. This indeed makes my post redundant [emoticon:98f842990f454422aa6a04953955f9d9]
- AngelaIp4 years agoIdeator I
The post is not redundant at all! It shows that you can address a task in many ways.
I have changed some of the stylings in common.css by myself (e.g. images styling cause my version use wrong ratios). It´s an important file to know!
I am happy about the post cause I also learned something new. I didn´t know the variable.
I was surprised that the Office button was in CommandBarSection "itemview.itemcommandbar.default" and not in the one related to the Document. Cause this CommandBarSection is used on global level so we would have seen the Office button everywhere. That did not make any sense. So there has to be a filter somewhere. The used init Method linked to a Variable -> Voilà!
I have a custom document type and rebuild the "Export to Office" button by myself. Would not have been necessary at all, cause the Variable works with a comma separates string (Document,MyDocument,...).