I am creating a GUI extension for Experience Manager in Tridion 2011 and would like to hide the "Preview Page" tab page. I have tried adding the following piece of code to the my extension config file with no result.
<ext:tabpages>
<ext:remove>
<ext:extension id="PreviewPage">
<ext:apply>
<ext:view name="EditorView">
<ext:control id="MainToolbar" />
</ext:view>
</ext:apply>
</ext:extension>
</ext:remove>
</ext:tabpages>
I know that I can hide the "Preview Page" tab using the following code in a script:
var toolbar = $controls.getControl($("#MainToolbar"), "Tridion.Controls.RibbonToolbar");
var page = toolbar.getPageById("ReviewPage");
page.hide();
but I would prefer to use the config file if only I knew how.
Any ideas?