IPageTemplate Methods |
The IPageTemplate type exposes the following members.
Name | Description | |
---|---|---|
AddFrameworkScriptRef |
Add a javascript file reference that depends on framework script (e.g. jQuery or Bootstrap).
| |
FireEvent |
Fire an extension event on the page.
| |
GetClonedPageInfo |
Gets the cloned PageInfo object for this page. If the page's PageInfo object has not net been cloned
then this method clones it and sets the clone back on the page. If the page's PageInfo object has already been cloned
then that object is returned. In either case the returned PageInfo object will have the ClonedByUser status.
Once the page's PageInfo has been cloned and set back on the page, the cloned PageInfo object can be freely
manipulated without affecting other requests by the current, or other, users.
Note that cloning the PageInfo and setting back on the page does not update any IMapper objects already set up with the original PageInfo object. However, any IMapper objects set up after the operation will use the cloned PageInfo. Performing the operation during the ApplicationPageInit event (PageInit(IAppContext, ApplicationPageArgs)) sets up the clone very early in the page life-cycle and ensure that the page's IMapper objects will use the cloned PageInfo. |