2016-12-26 4 views
0

Alfresco 5.1 엔터프라이즈 에디션 중 하나를 사용하고 있습니다. Alfresco &의 모델 관리자를 사용하여 사용자 지정 콘텐츠 모델을 만들었습니다.이 모델에는 이와 관련된 사용자 지정 속성 (ds : prority, ds : action, ds : actionText, ds : linkURL 등)이 있습니다. 기본 cm : content 속성 (cm : content, cm : description, cm : title 등)과 함께 이러한 사용자 정의 속성을 포함하도록 Share UI를 사용자 정의하고 싶습니다. 나는 사용자 정의 모델 & 공유 UI 사용자 정의를 사용하여 ecmarchitect에 Jeff Potts 게시물을 언급하고 있습니다.사용자 정의 모델 용 Alfresco UI 양식 공유

내 질문에 Alfresco Model Manager에서 만든 모델 &을 사용하여 이러한 사용자 지정 속성과 함께 사용자 지정 공유 양식을 만들 수 있습니까? 이 프로세스의 모든 예제에서는 Alfresco repo AMP에서 컨텐트 모델 정의를 수행 한 다음 Alfresco 공유 앰프에서 Share 양식 사용자 정의를 수행합니다. 공유 AMP 만 만들 수 있습니까 (Share UI 사용자 정의) &은 Alfresco Model Manager에서 이미 생성 한 모델을 계속 참조합니까?

답변

0

로는 모델이 활성화되면, 우리는 제프 포츠 튜토리얼에서 지적 받는다는 목표 (MVN 패키지)를 사용하여 공유 A 아카이브를 생성하는 공유 AMP를 만들고 야외에 동일한를 배포 할 수 있습니다 무랄리 지적 amps_share 폴더 (/alfresco_one/amps_share) /bin/apply_amps.sh에 apply_amps.sh 명령과 동일하게 적용한 다음 alfresco를 다시 시작하십시오.

내 요구 사항에 대한 참고 사항 공유의 인라인 편집 화면에는 사용자 지정 속성이 필요했습니다. 그것이 작동하지 않은 상태 평가 &의 내용을 : 그래서

<config evaluator="node-type" condition="<my model>"> 
... 
    <form id="doclib-inline-edit"> 
    ... 
    <show id="my:property" force="true" /> 
    ... 
... 
</config> 

가 처음에 내가 cm 있었다 덧붙였다. 내 모델 이름으로 업데이트 한 후에 만 ​​변경 사항이 반영되기 시작했습니다.

참고 : Alfresco를 다시 시작하지 않으면 변경 사항이 반영되지 않습니다.

+0

예, 앰프를 적용한 후에 변경 사항을 반영하기 위해 Tomcat을 다시 시작해야합니다. –

2

모델 콘솔을 사용하여 생성 된 & 모델을 나열 할 수 있습니다.

http://IP:Port/alfresco/s/enterprise/admin/admin-repoconsole

명령 : 당신은 같은로드 (IsLoaded 표시) 상태 모델을 볼 수 있다면 show models

"예"다음 공유 앰프에 배포 할 수있는 것은 괜찮을한다. 개발 기계 또는 생산 기계에이 모델을 만들었습니까? 개발 기계 인 경우 Repo 앰프를 사용하여 생산 시스템에 모델을 배포해야합니다.

## 
## Model Admin Commands 
## 

ok> show models 

    Show deployed models - that are stored in the repository data dictionary. 

ok> deploy model 

    Upload model to repository and load into runtime data dictionary. This will also 
    set the repository model as active. 

    If a model is already deployed then it will be updated and re-deployed. 

    e.g. deploy model alfresco/extension/exampleModel.xml 

ok> undeploy model 

    Permanently delete model from repository (all versions) and unload from runtime data dictionary. 

    e.g. undeploy model exampleModel.xml 

ok> activate model 

    Set repository model to active and load into runtime data dictionary. 

    e.g. activate model exampleModel.xml 

ok> deactivate model 

    Set repository model to inactive and unload from runtime data dictionary. 

    e.g. deactivate model exampleModel.xml 

Enterpise 에디션을 사용하면서 Alfresco 지원팀과 연락 할 수 있습니다.

희망이 도움이됩니다.

+0

감사합니다. @Muralidharan. 보내 주신 admin-console repo URL이 제대로 작동하지 않았습니다. 나는 https : // localhost : 8080/alfresco/service/admin/admin-repoconsole을 사용해야했고 내 모델은 이미 Prod & dev. 그래서 예 – Venkat

+0

http : // localhost : 8080/alfresco/Navigate 여기를 클릭하면 Repo 콘솔에 대한 올바른 URL을 얻을 수 있습니다. –

+0

귀하의 질문을받지 못했습니다. "개발 기계 인 경우 Repo 앰프를 사용하여 생산 시스템에 모델을 배포해야합니다." 이 모델은 이미 Dev & Production 모두에 있습니다. 모든 3 가지 형식 (기본값, doclib-simple-metadata & doclib-inline-edit)에 대한 config를 사용하여 공유 앰프를 배포 해 보았습니다. doclib-inline-edit "Alfresco에서 편집"을 선택할 때 속성을 볼 필요가 있지만 필드가 업데이트 된 양식이 보이지 않습니다. 내 콘텐츠가 모델 유형으로 업데이트됩니다. – Venkat