这可以通过剥皮来完成吗?
我正在开发 DNN 4.09.03。 我想修改链接模块的外观。 我知道如何使用容器更改外观,但我想为链接本身实现鼠标悬停效果。
仔细观察,链接似乎被放置在表数据单元中。 我想将该单元格的背景设置为图像,并在鼠标悬停时将其交换为另一个图像。 这可以通过剥皮来完成吗?
如果没有,我需要一些帮助来扩展/自定义链接模块源。 我首先需要知道如何设置开发环境来执行此操作。 我有在 VS2008 中工作的 DotNetNuke 解决方案(带有源代码)。 如何集成链接模块的源,以便我可以自定义它(并重命名 - 也许是 mylinks)?
I am working on DNN 4.09.03. I want to modify the look and feel of a links module. I know how to change the outer looks with containers, but I want achieve a mouseover effect for the links itself.
Looking closely it appears that the links are placed into a table datacell. I want to set the background of that cell to and image, and on mouseover swap it for another image. Can this be done with skinning?
If not, I need some assistance in extending/customising the links module source. I need to know how to set up the development environment to do this first. I have the DotNetNuke solution (with source code) working in VS2008. How do I integrate the source of the links module, so i can customise it (and rename - maybe mylinks)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我认为你不能通过容器来做到这一点。 如果你有机会做到这一点,我敢打赌通过修改代码来做到这一点会更容易。 您必须记住,如果您修改链接模块,将来升级链接模块时可能会遇到问题。
只需将链接模块作为 Web 应用程序添加到 DNN VS2008 解决方案即可。 你可以做任何你不想做的改变。 然后使用 nant 脚本将其打包并复制到 DNN/Install/Modules 文件夹。 然后点击 DNN 安装 URL:
http:///Install/Install.aspx?mode=installresources
或者,您可以在 VS2008 中自行编写一些构建后命令来复制内容。 查看现有模块以及模块的每个不同部分文件(.ascx、.dnn、.sqldataprovider)在安装后存储在 DNN 中的位置。
I don't think you can do this by containers. If you can do it by any chance, I bet doing it by modifying the code is easier. You have to remember that you might have problems upgrading the links module in future if you modify it.
Just add the Links module to DNN VS2008 solution as a web application. You can do whatever change you won't to do in it. And then use a nant script to just package it and copy to DNN/Install/Modules folder. And then hit the DNN installation URL:
http://<dnn_url>/Install/Install.aspx?mode=installresources
Alternatively you can write some post-build commands in VS2008 it self to copy stuff. Have a look at the existing modules and where each different part files of a module (.ascx, .dnn, .sqldataprovider) is stored in DNN after installation.
这可以通过一些创造性的 CSS 甚至一点 jQuery 来实现 - 我为博客模块做了很多这样的事情,而不必接触核心模块 -
This is possible with some creative CSS and maybe even a little jQuery - i did a lot of this sort of thing for the Blog module without having to touch the core module -