如何去除Search Skin ojbect中的"web"和"site"选项按键

下面的设置在Skin White Papper 里无法查到,没有时间翻译,记下来仅供参考。

In DotNetNuke 4.5.3 installation, the Search Skin Object is changed. You will find the option to Search the "Web", which is default to use Google to search. Or the option to Seach the "Site", which is the same as previous site search.

It is a very good features which was lacking from previous DNN, but it will create some problems on the SKINs. It will show an option box of "Web", and an option box of "Site", some of our skins (and a lot of from other vendors) which does not reserve enough place for display the two extra Options, will actually not display right.

Now the solutions:

  1. If you have access to your DNN installations, open file /portals/[P#]/[SkinNName]/[HTMLName].ascx
    <dnn:SEARCH runat="server" id="dnnSEARCH" cssclass="topcss" showWeb="False" ShowSite="False" />
    Add the red text in there, save it, your skin should work again.
  2. If you want to fix the skin PA package, extract your skin PA zip files into a folder, you will see Skins.zip and Containers.zip, extract skins.zip to the same folder, and add the following code into the SKIN.XML.
     <Object>
      <Token>[SEARCH]</Token>
      <Settings>
       <Setting>
        <Name>cssclass</Name>
        <Value>topcss</Value>
       </Setting>
             <Setting>
               <Name>showWeb</Name>
               <Value>False</Value>
              </Setting>
             <Setting>
               <Name>ShowSite</Name>
               <Value>False</Value>
             </Setting>
      </Settings>
     </Object>
    Add the SKIN.XML back to SKINS.ZIP
    Add the SKINS.ZIP back to Skin PA file.
    Upload your skin and go.
  3. If your bought our skin, email us, we will fix it for free.
  4. We also offer very low customization service, if you do need add the search site and search web function to your skin (even you do not buy from us), we can customize for you for a very low price. HYDES004 at AllDnnSkins.COM Services.

posted on   m2land  阅读(673)  评论(0编辑  收藏  举报

编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· [AI/GPT/综述] AI Agent的设计模式综述

导航

统计

点击右上角即可分享
微信分享提示