更改 DotNetNuke 门户中的图标
我正在管理几个 DotNetNuke 门户(以及主托管本身)。 所有门户的地址和书签中都有默认的 DNN 图标。 我想要一个自定义图标。!
这是左侧的图标:
(来源:dotnetnuke.com)
我尝试破坏根目录(web.config 文件所在的位置)中的默认 favicon.ico 文件。 我已经删除了,我已经替换了,我已经重新启动了浏览器,我已经退回了IIS。 这些都不起作用。
有人遇到过 DNN 中不稳定的图标问题的解决方案吗?
I'm managing several DotNetNuke portals (as well as the main hosting itself). All of the portals have the default DNN icon in the address and when they're bookmarked. I want to have a custom favicon.!
It's the icon on the left side of this:
(source: dotnetnuke.com)
I've tried clobbering the default favicon.ico file in the root directory (where the web.config file is located). I've deleted, I've replaced, I've restarted the browser, I've bounced IIS. None of that works.
Has anyone come across a solution for the wonky favicon problem in DNN?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
自从这个问题得到解答以来,DotNetNuke 世界的时代已经发生了变化。 现在,更改网站图标要容易得多。
转到管理菜单下的站点设置,然后向下滚动到外观。 应该有一个选项可以上传新图标,或使用网站上当前的图标。
Times have changed in the DotNetNuke world since this question was answered. Now, the favicon is much easier to change.
Go to Site Settings underneath the Admin menu, and scroll down to Appearance. There should be an option to upload a new icon, or use one currently on your site.
您需要将 favicon 放置在每个门户自己的文件夹中 (Portals/0/favicon.ico)。 确保删除网站根目录中的图标,因为这将(据称)覆盖任何特定于门户的网站图标并适用于所有门户。
也看看这里:http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/183454/scope/posts/threadpage/3/Default.aspx。
You need to place the favicon in each portal's own folder (Portals/0/favicon.ico). Make sure you delete the icon in the root of your website, as that will (supposedly) override any portal-specific favicons and apply to all portals.
Have a look here as well: http://www.dotnetnuke.com/Community/Forums/tabid/795/forumid/108/threadid/183454/scope/posts/threadpage/3/Default.aspx.
网站图标因浏览器过度缓存而臭名昭著。 有时,即使清除缓存也无济于事,它会让你发疯。 清除缓存、移位刷新等...
Favicons are notorious for being very aggressively cached by the browser. Sometimes even clearing the cache doesn't even do the trick, it can drive you mad. Clear cache, shift-refresh etc etc...
您是否尝试过清除浏览器缓存? 或者尝试在不同的计算机上使用浏览器或只是使用不同的浏览器(例如 FF 与 IE)。 当网站图标实际发生变化时,它会被缓存并让你抓狂。
另一件需要检查的事情是查看您的 DNN 实例上是否运行多个门户。 如果您有多个门户,您可以通过将网站图标放在门户根目录而不是主 Web 根目录中,为每个门户创建不同的网站图标。
Have you tried clearing your browser cache? Or try using a browser on a different machine or just a different browser (FF versus IE for isntance). The favicon will cache and drive you crazy when it actually has changed.
The other thing to check is to see if you have more than one portal running on your DNN instance. If you have more than one portal, you can do a different favicon for each portal by putting the favicon in portal root and not the main web root.
http://www.hanselman.com/blog/FavIconicoCanBeABandwidthHog.aspx
出于性能目的值得阅读。
http://www.hanselman.com/blog/FavIconicoCanBeABandwidthHog.aspx
Worth reading for performance purposes.