2012-11-02 3 views
3

DNN 모듈을 만들고이 모듈을 기반으로 작동하는 모듈이 http://www.subodh.com/Projects/DNN-Module입니다.DNN 모듈 패키지가 컨트롤을 설치하지 않습니다.

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> 
... 

는 특히, Control1.ascx는 DesktopModules/가입 디렉토리에 복사되지 않습니다.

오류가 발생하지 않습니다. 다음은 모듈을 설치할 때 DNN이 말하는 관련 섹션입니다. 설치시 오류가 없습니다.

... 
Info Component installed successfully - Script 
Info Starting Installation - Module 
Info Module registered successfully - SignUp 
Info Component installed successfully - Module 
Info Starting Installation - Assembly 
... 

컨트롤이 적절한 디렉토리로 복사되지 않는 이유는 누구에게 말해 줄 수 있습니까?

감사합니다. 또한

<component type="File"> 
    <files> 
    <file> 
     <path>Your Desire Path</path> 
     <name>Control1.ascx</name> 
    </file> 
    </files> 
</component> 

답변

5

당신이 어쩌면 당신 말은, <controlSrc> 태그에 실수가 보인다 Chris Hammonds 템플릿 (http://christoctemplate.codeplex.com)은 리소스 파일을 만들고 각 파일에 대한 개별 노드가 아닌 단일 리소스 노드를 갖습니다.

+0

고마워요! 컨트롤을 등록하고 파일을 이동해야합니다. –

2

을 에산의 대답에 당신의 MSBuild를 사용할 수 : <controlSrc>DesktopModules/SignUp.Control1/Control1.ascx</controlSrc>

은 또한 당신이 <component type="File">에서이 파일을 언급해야합니다

+0

대단히 감사합니다. 그 템플릿을 사용하기 시작했습니다. 큰 도움이됩니다. –