Site profiles
Site profiles are used to add extra types and fields to the Publisher, or to extend the WebHare Publisher Application (CMS) application.
Site profiles are XML files and typically have .siteprl.xml
extension. A site
profile is generally selected by selecting a webdesign for a Publisher site
which links the associated site profile with all the sites (as if all <apply>
rules and <sitesettings>
rules where implicitly limited to the sites which
have seleceted the site profile).
A site profile can also be globally activated by a module (using a <siteprofile>
node in the <publisher>
of a moduledefinition). This profile will then apply
to all sites.
Always keep in mind that types defined in siteprofiles (contenttypes, foldertypes, widgets, rdtypes, etc) are global and not sitespecific. You should generally not copy-paste such definitions without renaming them.
- Extending the Publisher
- Sharedblocks
- Search engine optimization
- Setting up types
- Link handlers
- RTD Type definitions
- Publisher tweaks
- A/B tests
- Webdesign plugins
Site profiles
- OBJECTTYPE ApplyRuleTester
Apply rule tester
- RECORD FUNCTION DescribeContentTypeById(INTEGER id, RECORD options)
Describes a content type
- OBJECT FUNCTION GetApplyTesterForFakeObject(INTEGER parentfolder, BOOLEAN isfile, INTEGER ftypeid)
Returns an apply tester for a hypothetical WHFS file/folder
- OBJECT FUNCTION GetApplyTesterForObject(INTEGER obj)
Returns an apply tester for a specific WHFS file/folder
- RECORD ARRAY FUNCTION GetAvailableWebDesigns(BOOLEAN gettemplates)
- RECORD ARRAY FUNCTION GetAvailableWebFeatures()
- RECORD ARRAY FUNCTION GetCustomSiteProfileSettings(STRING ns, STRING localname, INTEGER fsobjectid)
Gather custom siteprofile settings for an object
- STRING FUNCTION GetSiteLanguage(INTEGER objectid)
Get the language code for the specified objet, as specified by in the site profile
- OBJECT FUNCTION GetWebContext(INTEGER objid)
Get only the plugin loader for a webdesign
- OBJECT FUNCTION GetWebContextForURL(STRING url, RECORD options)
Get only the plugin loader for a specific url
- OBJECT FUNCTION GetWebDesign(INTEGER objectid)
Open and prepare a webdesign
- OBJECT FUNCTION GetWebDesignForURL(STRING url)
Get the webdesign for a URL