Kooboo Forum
»
Kooboo CMS
»
Extension
»
A hint to enhance documentation: plugin return values
|
Rank: Newbie Groups: Registered
Joined: 5/26/2010(UTC) Posts: 8 Location: Slovenija
|
As a newbie I studied a PagePlugin video first. The video suggests to return null values at Pre and After action methods, however returning null value for AfterGetExecute or AfterPostExecute is misleading and yields an empty page.
IControllerPlugin documentation is correct and consistent with CommonController.Execute implementation, however it would be nice for newbies to have an additional comment what should be returned for default no-operation plugin action.
|
|
|
|
|
|
|
Rank: Newbie Groups: Registered
Joined: 5/26/2010(UTC) Posts: 8 Location: Slovenija
|
I beleive there's an undocumented feature that should be clearified in plugin documentation aswell: a) in case of multiple plugins registered for a page the first non-null Get or Post plugin Pre action return value stops pre action execution, therefore some Pre actions may never be called at all. b) on the other hand After actions are chained unconditionally.
See CommonController.ExecutePluginsPreAction.
It would be nice to have documented "default action" term aswell. Built-in default action is executed when all plugin "Pre" actions return null. It evaluates page DataRules, instantiates page template as a result and fires "After" plugin actions. Note:"After" plugin actions are fired on default result only.
|
|
|
|
|
|
Kooboo Forum
»
Kooboo CMS
»
Extension
»
A hint to enhance documentation: plugin return values
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.