Team Site Branch CreationDevelopment Guide Steps to create a new branch in Team Site: To create a new branch for any country (For Example: Turkey) in Team Site, first we need to insert the record inside the table “ CMR_Admin.Content_Business_Unit” in the database. To insert the record inside the CMR_Admin.Content_Business_Unit table follow below mentioned steps: [A] By using Toad database tool: To insert the record by using Toad database tool, follow below mentioned steps: Step 1: Login in Toad database tool by using valid credentials. Step 2: Now, select the Schema browser. Step 3: Navigate the Synonyms tab. Step 4: Now, select CMR_Admin.Content_Business_Unit table. Step 5: Select Data tab and then click (Insert Record) “+” symbol to insert the new record in database. Step 6: Now, enter the following information: BUSINESS_UNIT - No Spaces, All CAPS (like: TURKEY_INTL) DESCRIPTION - Name of business unit (generally name of branch in Team Site) CONTENT_LOCATION - Leave blank Step 7: Now, select Commit option to save the new record in database. OR [B] By using other database tools: By using other database tool, we need to follow below mentioned steps: Step 1: Login in the tool by using valid credential. Step 2: Now, select the Schema from the list of schemas populated. Step 3: Now, select CMR_Admin.Content_Business_Unit table. Step 4: Insert the records with below information: BUSINESS_UNIT - No Spaces, All CAPS (Like: TURKEY_INTL) DESCRIPTION - Name of business unit (generally name of branch in Team Site) CONTENT_LOCATION - Leave blank Step 5: Now, select Commit option (if required) to save the new record in database. The database has been updated now we have to create a new branch for Turkey_Intl in Teamsite. Create a New Branch in Team site: After creating the records by using any database tool, we need to create a Turkey_Intl branch in Team Site. To create Turkey_Intl branch in Team Site, we need to follow below mentioned steps: Step 1: Login in Team Site by using valid credential. Step 2: Navigate to below mentioned path (with view as CCPro and NOT as CCStd). //jhas106/default/main/International Step 3: Click on New Branch link. Step 4: We will get the below screen: Step 4: Now, enter following information: Name – Turkey_Intl Description -Turkey_Intl Branch Owner - Leave as is Locking - "Submit" Based On - Intitial (basing which edition to create the branch) Users and Roles - Select Inherit from Parent Private - Leave unchecked As per below screenshot: Leave as is Groups – Initially can be left blank or group can be selected like: phibred\iw_INTL_Turkey_contributors_a Based On . select Workareas under the same branch and click over the New Workarea link. Step 6: Now.Select Restrict access to this workarea .Set to Group Owner . Step 7: Fill in the following fields as: Name -Turkey_IntlWA Description – Turkey_Intl Workarea Sharing . Then. select newly created branch (Turkey_Intl).Step 5: Now.Leave as Initial Private . click on Save button to create Turkey branch. .Step 8: Click on Save button. O2O and Public Branch. If we are creating a new branch under the International Branch.Update the configuration files: We have multiple branches in Team Site: International Branch. Pioneer Branch. Navigate the below International Branch path: \\jhas106\c$\iw-home\custom\international\config .cfg public_reviewlist. MyPioneer Branch.cfg grouplist.cfg businessUnit.cfg Note: Turkey_Intl is referenced under the International branch so we need to update the configuration files only in the International Branch.cfg groups.cfg If we are creating a new branch under O2O Branch or Public Branch then we need to update below two files as well: o2o_reviewlist. Pioneer Branch then we need to update the four configuration files as below: Branch Name Path for Configuration File International Branch \\jhas106\c$\iw-home\custom\international\config MyPioneer Branch \\jhas106\c$\iw-home\custom\myPioneer\config Pioneer Branch \\jhas106\c$\iw-home\custom\pioneer\config At each of the above branch we need to update below configuration files: branchlist. MyPioneer Branch. cfg file: Step 1: Open the branchlist.cfg file by using Notepad++ editor: .Update the branchlist. e.Step 2: Enter the name of the branch i. end of the file as below: . Turkey_Intl . cfg file: Step 1: Open the businessUnit.Step 3: Save the file. Update the businessUnit.cfg file: . Step 2: Copy the below line from the file: <branchname selected=”Thailand” businessunit=”INTL_THAIL”/> . modify this piece of code as below: <branchname selected=”Turkey_Intl” businessunit=”INTL_TRKEY”/> Step 5: Save the file. Update the grouplist.cfg file: Step 1: Open the grouplist.Step 3: Paste it end of the file as per below screen: Step 4: Now.cfg file with notepad++: . Step 2: Copy below piece of code from the file: <branchname selected=”Australia_Intl”> <group name=”Australia Authors” value=”phibred\iw_INTL_Australia_contributors_a”> </branchname> . Step 4: Paste the code at International Section of the file. and modify it as below: <branchname selected=”Turkey_Intl”> <group name=”Turkey Authors” value=”phibred\iw_INTL_Turkey_contributors_a”> </branchname> . cfg file with notepad++ . Update the groups.Step 5: Save the file.cfg file: Step 1: Open groups. Step 2: Copy below piece of code from the file: Australia_Intl:phibred\Iw_INTL_Australia_contributors_a . Step 3: Paste the piece of code at below location of the file: Step 4: Modify the code as per below: Turkey_Intl:phibred\Iw_INTL_Turkey_contributors_a . Update the nightlyEditions.Step 5: Save the file. To update the nightlyEditions.bat file by enter the valid entries for newly created branch. so for all newly created branches we need to modify/update nightlyEditions.bat accordingly we need to follow below steps: Step 1: Navigate the below path by using Windows Explorer: \\jhas106\c$\iw-home\custom\bin\ . which it is contains).bat file The functionality of Nightly edition batch file is automatically insert the records for any Team Site branch contents automatically in night time (as this files executes automatically and insert the records in the database automatically for those branches. bat file by using notepad++ editor: . open the nightlyEditons.Step 2: Now. log .Step 3: Copy the below line from the file: C:\iw-home\bin\iwpublish –g Y:\default\mail\International\Australia_Intl Staging “NIGHTLY EDITIONS” >> c:\iw-temp\nightlyEditions. Step 4: Paste the above line and modify it as per below: C:\iw-home\bin\iwpublish –g Y:\default\mail\International\Turkey_Intl Staging “NIGHTLY EDITIONS” >> c:\iw-temp\nightlyEditions.log . js file: Add code to the . To update pioneerGlobalFunctions.Step 5: Save the file.js file for the given branch to add the business unit to the Control/Site field for templated content.js file we need to follow below steps: Step 1: Navigate the below path by using Window Explorer: \\jhas106\c$\iw-home\httpd\iw\js\ . Update pioneerGlobalFunctions. Note: We only modify this file when we create a new branch under the branch MyPioneer. Step 2: Now.js with notepad++ . open the pioneerGlobalFunctions. . Modify the configuration files: We need to modify the below configuration files: submit.Make sure the branch has proper tagging fields set up for binary content in.**Add the branch so that the IW_USERS_A group has access to the staging area of the branch.Make sure the branch has access to the templates by checking metadata-rules.cfg . templating. To modify these files we need to follows below steps: Navigate the below path: \\jhas106\c$\iw-home\local\config\ . Note: Only update this file when we will create any branch inside the MyPioneer branch.cfg .cfg . *)"/> .) Modify the templating.cfg file: (Modify only when you have created the branch inside the MyPioneer branch.cfg file Step 2: Copy the below piece of code: <branch vpath-regex="default/main/International/Thailand(.cfg file: Step 1: Open templating.Modify the submit. Step 3: Paste and modify the line as per below: <branch vpath-regex="default/main/International/Turkey_Intl(.*)"/> . Note: templating.cfg file provide form templates features (Simple Content. .Step 4: Save the file. List Of Links forms etc) for the branch present in Team Site. cfg file To modify metadata-rules.cfg file follow below steps: Step 1: Open metadata-rules. .Modify metadata-rules.cfg file. *?/default/main/International/Turkey_Intl"> .Step 2: Copy the below piece of code from the file: <cond vpath-regex="^.*?/default/main/International/Australia_Intl"> <rule name="Pioneer_International" /> </cond> Step 3: Paste and modify the code as per below: <cond vpath-regex="^. Configure the workflow submission features with Turkey_Intl branch To configure the workflow form submission feature with Turkey branch we need to follow below steps: Step 1:”Navigate the below path: \\jhas106\c$\iw-home\local\config\wft\ .<rule name="Pioneer_International" /> </cond> Step 4: Save the file. cfg file. .Step 2: Open the available_templates. Step 3: Copy the below piece of code from the file: . <template_file name='Hungary Dev/Tr Deployment' path='International/Hungary/Hungary_Dev_Submit.wft'> <command_list> <command value='submit' /> <command value='tt_data' /> <command value='tt_deletedcr' /> <command value='all' include='no' /> </command_list> <role_list> <role value='all' include='yes' allusers='yes'/> </role_list> .wft'> <command_list> <command value='submit' /> <command value='tt_data' /> <command value='tt_deletedcr' /> <command value='all' include='no' /> </command_list> <role_list> <role value='all' include='yes' allusers='yes'/> </role_list> <branch_list> <branch value='/default/main/International/Hungary' include='yes'/> </branch_list> </template_file> <template_file name='Hungary Production Deployment' path='International/Hungary/Hungary_Prod_Submit.wft'> <command_list> <command value='submit' /> <command value='tt_data' /> <command value='tt_deletedcr' /> <command value='all' include='no' /> </command_list> <role_list> <role value='all' include='yes' allusers='yes'/> </role_list> <branch_list> <branch value='/default/main/International/Hungary' include='yes'/> </branch_list> </template_file> Step 3: Paste and modify the piece of code as per below: <template_file name='Turkey Dev/Tr Deployment' path='International/Turkey_Intl/Turkey_Intl_Dev_Submit. <branch_list> <branch value='/default/main/International/Turkey_Intl' include='yes'/> </branch_list> </template_file> <template_file name='Turkey Production Deployment' path='International/Turkey_Intl/Turkey_Intl_Prod_Submit. Creating the Workflow Templates for Turkey_Intl To create the workflow template we need to follow below mentioned steps: Step 1: Navigate the below path: \\jhas106\c$\iw-home\local\config\wft\International .wft'> <command_list> <command value='submit' /> <command value='tt_data' /> <command value='tt_deletedcr' /> <command value='all' include='no' /> </command_list> <role_list> <role value='all' include='yes' allusers='yes'/> </role_list> <branch_list> <branch value='/default/main/International/Turkey_Intl' include='yes'/> </branch_list> </template_file> Step 4: Save the file. .Step 2: Create a new folder with name Turkey_Intl. Step 3: Now. open the Australia_Intl folder and copy all the files and paste inside the Turkey_Intl folder. . Step 4: Rename Australia_Intl_Dev_Submit.wft and Australia_Intl_Prod_Submit.wft and Turkey_Intl_Prod_Submit.wft files as Turkey_Intl_Dev_Submit.wft . wft file. Step 6: After making all of the changes.Step 5: Now. "/local/config/wft/International/Australia_Intl/wft_opendeploy_dev. save the file. my $deploy_command = "$iwperl $deploy_ipl". my $deploy_ipl = TeamSite::Config::iwgethome() . my $deploy_command = "$iwperl $deploy_ipl". Search Australia_Intl and replace it with Turkey_Intl within entire file. . open Turkey_Intl_Dev_Submit.ipl". my $deploy_ipl = TeamSite::Config::iwgethome() .wft file and modify it.ipl". "/local/config/wft/International/Turkey_Intl/wft_opendeploy_dev. Search and replace all Australia_Intl to Turkey_Intl (Modify the file with reference to Turkey_Intl) Note: Replace Australia_Intl to Turkey_Intl one by one instead of Replace All.wft Open Turkey_Intl_Dev_Submit. Modify Turkey_Intl_Prod_Submit. pioneer.tpl file. Modify wft_opendeploy.cfg file. Modify below piece of code with reference to Turkey: $portal = "http://wwwtx.Modify deploy_iwmailbody_dev. .cfg file: To modify wft_opendeploy. Modify this code as: $portal = "http://wwwtx.cfg file need to follow below steps: Step 1: Navigate the below path: \\jhas106\c$\iw-home\local\config\wft\International Step 2: Open the wft_opendeploy. By using similar way modify all the files correspondence to Turkey_Intl .pioneer.com/web/site/Turkey".com/home/site/Australia".tpl : Open the deploy_iwmailbody_dev. dst=C:\cmroot\International\Turkey_Intl.useNode=jhdxws01 Step 4: Paste the code and modify it as below (refer the below screenshot): branchName=/default/main/International/Turkey_Intl/WORKAREA/Turkey_In tlWA.useNode=jhdxws01 .dst=C:\cmroot\International\Australia_Intl.Step 3: Copy the below piece of code from the file: branchName=/default/main/International/Australia_Intl/WORKAREA/Austral ia_IntlWA. Workflow emails display correctly: To display the correct e mail after submission any form by using any workflow we need to follow below steps: Step 1: Navigate the below path (By using Window Explorer): \\JHAS106\c$\iw-home\local\config\wft\solutions\ .Step 5: Save the file. $image = "http://teamsite.Styles and XSLT folders to Turkey_Intl branch in Team Site: To add Template data.com/iwicons/solutions/portals/pioneer.tpl file. Step 5: Save the file.com\jh\IM_Ent_Srvcs\Web Services\TeamSite\ . $image = "http://teamsite.com/Turkey". Styles and XSLT folders inside the Turkey_Intl branch in Team Site we need to follow below steps: Step 1: Navigate the below path: \\phibred. Add Templatdata. Step 3: Copy below piece of code from the file: elsif ($branch eq "Australia_Intl") { $portal = "http://www.com/Australia".com/iwicons/solutions/portals/pioneer.gif".Step 2: Open deploy_iwmailbody.gif".pioneer.phibred.phibred. Step 4: Paste and modify the code as below: elsif ($branch eq "Turkey_Intl") { $portal = "http://www.pioneer. Styles and XSLT) inside this path. Step 2: Navigate the Administrations tab. copy all the folders. . Step 3: Now navigate the below path (to access Team Site branch) by using window explorer: \\jhas106\default\main\International\Turkey_Intl\WORKAREA\Turkey_IntlWA Step 4: Paste all of the folders (Template data. Step 3: We will get the below screen: Step 4: Click over the Manage Users link.Step 2: Here we can found these (Template data. Styles and XSLT) folders. Step 5: Go into Team Site and do a Masters submit Workflow of the copied folders. Add any users to TeamSite: To add any users to Team Site need to follow below steps: Step 1: Login with Team Site by using valid credentials. Step 5: Now. click on Add Users link to add the new user. Step 6: We will get the below screen: . new user has been added now.Step 7: Now enter the name of the user or click on Search button to find the user and then click on Ok button. . Step 2: Navigate the Administrations tab. Step 3: We will get the below screen: Step 4: Click over the Manage Groups link.Add new IW group to branch To add any users to Team Site need to follow below steps: Step 1: Login with Team Site by using valid credentials. . Step 6: We will get the below screen: .Step 5: Now click over the “New Group” link. Now new User group has been added to Turkey_Intl branch. Step 2: Navigate the Administrations tab.Step 7: Enter the name of the group and Click on Ok button. . Add publishers to branch under Team Site branch: To add the publishers to Turkey_Intl branch need to follow below steps: Step 1: Login with Team Site by using valid credentials. Step 3: We will get the below screen: Step 4: Click over the Manage Roles link. . Step 5: Now click on New Role link. Step 6: We will get below screen: . Step 7: Enter the name of the Publisher and click on Next button. .