从Sitecore 7中的图片字段浏览图片时,是否可以默认使用“浏览”标签而不是新的“搜索”标签?
新的搜索功能非常适合高级用户,但是,我的内容作者发现它令人困惑,特别是在结果中显示多种语言。在某些情况下选择搜索结果项也会产生错误,因此我只想在此时禁用它。
答案 0 :(得分:5)
在此文件\ sitecore \ shell \ Applications \ Media \ MediaBrowser \ MediaBrowser.xml上 您需要更改选项卡的顺序: 你将拥有:
<Tabstrip ID="Tabs" Width="100%" Height="471px">
<Tab ID="MediaLibraryTab" Header="Browse" Height="100%">
<GridPanel Width="100%" Height="100%" Style="table-layout:fixed" Columns="3" GridPanel.Height="100%">
<Scrollbox Height="100%" Class="scScrollbox scFixSize scFixSize8" Background="white" Padding="0px" GridPanel.Height="100%" GridPanel.Width="200" GridPanel.VAlign="top" Style="overflow:auto">
<TreeviewEx ID="Treeview" DataContext="MediaDataContext" Click="SelectTreeNode" DblClick="TreeViewDblClick" ShowRoot="true" ContextMenu='Treeview.GetContextMenu("contextmenu")' Width="100%" />
</Scrollbox>
<VSplitter ID="MediaBrowserLeft" Target="left" GridPanel.Width="4" />
<Scrollbox ID="Listview" Width="100%" Height="100%" Class="scScrollbox scFixSize scFixSize8" Background="white" Padding="0px" GridPanel.Height="100%" GridPanel.Width="100%" GridPanel.VAlign="top" />
</GridPanel>
</Tab>
<Tab ID="MediaTab" Header="Search" Height="100%">
<Frame SourceUri="/sitecore/shell/Applications/Buckets/MediaBrowser.aspx" Width="100%" Height="100%"></Frame>
</Tab>
</Tabstrip>
而不是:
<Tabstrip ID="Tabs" Width="100%" Height="471px">
<Tab ID="MediaTab" Header="Search" Height="100%">
<Frame SourceUri="/sitecore/shell/Applications/Buckets/MediaBrowser.aspx" Width="100%" Height="100%"></Frame>
</Tab>
<Tab ID="MediaLibraryTab" Header="Browse" Height="100%">
<GridPanel Width="100%" Height="100%" Style="table-layout:fixed" Columns="3" GridPanel.Height="100%">
<Scrollbox Height="100%" Class="scScrollbox scFixSize scFixSize8" Background="white" Padding="0px" GridPanel.Height="100%" GridPanel.Width="200" GridPanel.VAlign="top" Style="overflow:auto">
<TreeviewEx ID="Treeview" DataContext="MediaDataContext" Click="SelectTreeNode" DblClick="TreeViewDblClick" ShowRoot="true" ContextMenu='Treeview.GetContextMenu("contextmenu")' Width="100%" />
</Scrollbox>
<VSplitter ID="MediaBrowserLeft" Target="left" GridPanel.Width="4" />
<Scrollbox ID="Listview" Width="100%" Height="100%" Class="scScrollbox scFixSize scFixSize8" Background="white" Padding="0px" GridPanel.Height="100%" GridPanel.Width="100%" GridPanel.VAlign="top" />
</GridPanel>
</Tab>
</Tabstrip>
您只需更改标签TAB的顺序即可。
答案 1 :(得分:0)
如果您在新的Speak UI(在Sitecore 7中可用?)中使用媒体浏览器,您可以通过执行以下操作来完成相同的操作:
在/App_Config/Include/Sitecore.Speak.config文件中替换以下行:
<override xmlControl="Sitecore.Shell.Applications.Media.MediaBrowser" with="/sitecore/client/applications/Dialogs/SelectMediaDialog" />
行:
<override xmlControl="Sitecore.Shell.Applications.Media.MediaBrowser" with="/sitecore/client/applications/Dialogs/SelectMediaViaTreeDialog" />
感谢Sitecore支持部门提供的说明。