We can add custom code to NetCommunity pages and templates by using an Unformatted Text part and inserting it on the page or template.
Adding code to a page in NetCommunity:
1. Create an Unformatted Text Part 2. Paste the code into the part, and check the Advanced Options checkbox to add the code to either the location of the part within the <body>, end of the <body> (after jQuery is loaded) or <head> sections of the page. 3. Save the Part, and insert the part on the desired page.
Adding code to the Template in NetCommunity: Sometimes it is necessary to have code on multiple pages in the NetCommunity site. If these pages share a common template, the code can be added at the template level.
1. Create an Unformatted Text Part 2. Paste the code into the part, and check the Advanced Options checkbox to add the code to the <body> or <head> sections of the page. 3. Go to Site Explorer > Pages and Templates, and select the template that you would like to add the script to. 4. Insert the Unformatted Text Part into a content placeholder on the template.
Adding code to a NetCommunity Layout: If multiple templates are in use, but pages are using the same layout, the code can be inserted into the HTML of the layout.