customizing hcsp file.
Hi,
We are creating site-studio content using contentwizard.hcsp file. We are launching https://<server-name>/cs/resources/wcm/custom/sitestudio/contentwizard/webcenter/contentwizard.hcsp?dSecurityGroup=Public&cpRegDef=REL3_UPDATE_REG_DEF&cpIframe=true
It shows a web page, which allow us to fill content metadata. We want to customize fields of this form. Our requirement is
1. Hide few fields
2. Show some custom fields
3. Default values of few custom fields
I have created profile for above requirement but I am not sure how to trigger profile while calling this page. I tried passing xIdcProfile, dbTriggerValue but no success.
I opened contentwizard.hcsp file and found that it only accepts very few parameter. It has idoc script like
var dmd = '';
[!--$if dSecurityGroup and regexMatches(dSecurityGroup, "[^'<>;]+")--]
dmd += 'dSecurityGroup=' + '[!--$dSecurityGroup--]'
[!--$endif--]
[!--$if dDocType and regexMatches(dDocType, "[^'<>;]+")--]
dmd += '&dDocType=' + '[!--$dDocType--]'
[!--$endif--]
[!--$if xCollectionID and regexMatches(xCollectionID, "[0-9]+")--]
dmd += '&xCollectionID=' + '[!--$xCollectionID--]'
[!--$endif--]
I want to add more parameters here. I changed it to pick xIdcProfile, dpTriggerValue as
var dmd = '';
[!--$if dSecurityGroup and regexMatches(dSecurityGroup, "[^'<>;]+")--]
dmd += 'dSecurityGroup=' + '[!--$dSecurityGroup--]'
[!--$endif--]
[!--$if dDocType and regexMatches(dDocType, "[^'<>;]+")--]
dmd += '&dDocType=' + '[!--$dDocType--]'
[!--$endif--]
[!--$if xCollectionID and regexMatches(xCollectionID, "[0-9]+")--]
dmd += '&xCollectionID=' + '[!--$xCollectionID--]'
[!--$endif--]
[!--$if xIdcProfile and regexMatches(xIdcProfile, "[^'<>;]+")--]
dmd += '&xIdcProfile=' + '[!--$xIdcProfile--]'
[!--$if dpTriggerValue and regexMatches(dpTriggerValue, "[^'<>;]+")--]
dmd += '&dpTriggerValue=' + '[!--$dpTriggerValue--]'
[!--$endif--]
But still when I launch contentwizard.hcsp, it does not pick values of xIdcProfile from url parameter. Is there anything other than this I need to do.
I am new to customization of hcsp so it would be great if I can get a document, which describes how to customize hcsp files.
Few of my questions are.
1. How can I debug hcsp code?
2. Is there any way to print variable values in log?
3. After changing file should I restart the UCM server. I restarted UCM server in above case but still it does not pick my changes.
Thanks
Sanjeev.