Joh*_*ion 3 dotnetnuke module package
我正在创建一个DNN模块,并有一个基于此的工作模块:http://www.subodh.com/Projects/DNN-Module.
当我在DNN 5.6.2安装上安装它时,一切正常,除了.ascx文件不复制.如果我手动复制.ascx文件,该模块工作正常.
我的.dnn文件看起来像这样:
...
<moduleDefinitions>
<moduleDefinition>
<friendlyName>SignUp.Control1</friendlyName>
<defaultCacheTime>0</defaultCacheTime>
<moduleControls>
<moduleControl>
<controlKey />
<controlSrc>Control1.ascx/Control1.ascx</controlSrc>
<supportsPartialRendering>True</supportsPartialRendering>
<controlTitle>Control1</controlTitle>
<controlType>View</controlType>
<iconFile />
<helpUrl />
<viewOrder>0</viewOrder>
</moduleControl>
...
</moduleControls>
</moduleDefinition>
</moduleDefinitions>
...
Run Code Online (Sandbox Code Playgroud)
具体来说,Control1.ascx不会被复制到DesktopModules/SignUp目录.
我没有收到错误.以下是DNN在安装模块时所说的相关部分.我在安装时没有错误.
...
Info Component installed successfully - Script
Info Starting Installation - Module
Info Module registered successfully - SignUp
Info Component installed successfully - Module
Info Starting Installation - Assembly
...
Run Code Online (Sandbox Code Playgroud)
任何人都可以告诉我为什么控件没有复制到适当的目录?
谢谢.
看来你的<controlSrc>标签有误,也许你的意思是:<controlSrc>DesktopModules/SignUp.Control1/Control1.ascx</controlSrc>
您还需要在以下位置提及此文件<component type="File">:
<component type="File">
<files>
<file>
<path>Your Desire Path</path>
<name>Control1.ascx</name>
</file>
</files>
</component>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
320 次 |
| 最近记录: |