Archive: Custom Pages Question


Custom Pages Question
Hi I thought this would work


Page custom CustomPre CustomPage CustomPageLeave

Function CustomPre

${If} condition
Abort
${EndIf}
FunctionEnd


Function CustomPage

FunctionEnd


FunctionCustomPageLeave

FunctionEnd



The desired behaviour is if that condition is true then I don't want the CustomPage to be shown and the CustomPageLeave function not to be called.


Otherwise I want to the CustomPage to be shown and the CustomPageLeave function to be called.


The behaviour I am getting is the CustomPage is never shown, and yes I am hitting inside the if and outside the if depending on my condition. What do I need to do for this to work?


thanks,


If you read the docs on Page custom, you will find there is no Pre function for custom pages. Calling Abort from the page's creation function should have the same affect (to skip the page). If it does not, just jump over any plug-in calls.

Stu