Tuesday, April 28, 2009

Create New Content Type

1. create xml file



2. generate sql script



hsqldb

- run command:

bvtool generate-schema -schema %BV1TO1%\bin\xml\tc_classified.xml - script %BV1TO1%\bin\xml\tc_classified.sql -vendor hsqldb



oracle

- run command:

bvtool generate-schema -schema %BV1TO1%\bin\xml\tc_classified.xml -script %BV1TO1%\bin\xml\tc_classified.sql -vendor oracle



3. execute sql to BVMC database



4. update bv-param.xml



Modify

- C:\BV1TO1\baseSuites\bv_services\modules\svc_ejb\bv_param.xml



<param name="BROWSABLE_CONTENT_TYPES">

<value>new-content-type </value>




<param name="FILTERED_CONTENT_TYPES">

<value> new-content-type </value>




Modify

- C:\BV1TO1\baseSuites\bv_services\modules\svc_clt\bv_param.xml



<param name="PROGRAM_CONTENT_TYPES">

</value> new-content-type </value>




<param name="RELATABLE_CONTENT_TYPES">

</value> new-content-type </value>




- RELATED_ITEM_CONTENT_TYPES



- ATTACHABLE_CONTENT_TYPES



- KEYS



5. run bvtool command : bvtool deploy-config -no-res



6. restart server



7. bvtool set-param



- bvtool set-param -name bv.portal.tool.content.PROGRAM_CONTENT_TYPES -value AD,EDITORIAL,PRODUCT,SSP_PROCESS,URL,BULLETIN,LOSTFOUND,CLASSIFIED

- bvtool deploy-config -no-res



- bvtool set-param -name bv.portal.services.content.KEYS -value AD:AD_NAME,EDITORIAL:ED_NAME,PRODUCT:PROD_ID,URL:NAME,BULLETIN:BULLETIN_NAME,LOSTFOUND:LNF_NAME,CLASSIFIED:CL_NAME

- bvtool deploy-config -no-res



8. generate process pack



- bvant -f %BV1TO1%\lib\generate_publish_pack.xml -DdestDir=%BV1TO1%/tools/eclipse/workspace/ClassifiedPack -Dcontent=CLASSIFIED -DdeployPack=false
-DpackName=ClassifiedPack

Post a Comment
Related Posts Plugin for WordPress, Blogger...