PT Profile Template
From ADF Docs
Revision as of 01:51, 24 December 2009 by Renee.mckechnie (talk | contribs)
Overview
Pages built from the Profiles Template will be the base definition for the profiles. To construct your Profiles Template complete the following steps.
Steps
- Create a CommonSpot page called 'Profile' from the Base Plus One template. (The subsite for this is not critical but it may be a good idea to create a subsite called profiles).
- Place the 'Profile' Custom Element on this page.
- Click "Render Mode" in the element interface.
- Select 'Display existing element data (content reuse)' on the 'Rendering Mode' tab.
- Select the 'Filter' tab.
- Select Filter Type to 'Show subset of records'.
- Select the field drop-down as the 'uniqueID' field.
- Select the operator as 'Equals'.
- Click the '...' button to open the ColdFusion expression window.
- Enter the text 'request.page.metadata.profiles.uniqueid' as the expression and check the 'force cache' checkbox. Click 'OK' and then check the box to 'Ignore ColdFusion error', then click 'Ok'.
- Click 'Ok' on the render mode window.
- Click "More" in the element interface. Then the "Custom Render Handlers" menu option, and choose the "Full Page" Render Handler.
- Submit Page and then Save as Template.
- Remember to submit the template for public use.
- Go to the CommonSpot Site Administration and bind the 'profiles' metadata form to this 'Profile Template'.
Update Profile Site Config
This template will be used to create profile pages. Update the pt_profile.xml config file that we setup in Site Configuration. Get the pageid for this page and update the <TEMPLATE_ID> tag value with the pageid.