Description
Allows a custom validation to run on page articles and images. Note: by default, the custom functionality is supplied just as an example RNDTEST that returns an highlight color and a message to display above elements.
When the validation is turned on, for each article and image on the page, Fred calls, in the PageDesignerAddin:
•Public Overridable Function Validate Article(Article Id As Integer, Mode As String, By Ref Color As Integer)
•Public Overridable Function Validate Img(Img Id As Integer, Mode As String, By Ref Color As Integer)
In the standard config the functions return "nothing" (nothing to check). In the custom scripts there is a demo check ("RNDTEST") that returns an highlight color and a message to display above elements.
Syntax
Page.ViewShowValidation(int1, callbackname) |
int1
0 = do not perform validation, 1 = perform validation, 2 = toggle validation status
callbackname
name of the callback function in the custom scripts
Example
Page.ViewShowValidation(Glob.SwitchToggle, "RNDTEST")
Context
Page designer