Revision [18575]
Last edited on 2008-01-28 00:11:59 by DennyShimkoski [Modified links pointing to docs server]No Differences
Revision [10335]
Edited on 2005-08-01 05:32:33 by DennyShimkoski [Modified links pointing to docs server]Additions:
Sometimes it would be useful to process the output of the formatting engine before displaying it to visitors. This will allow actions to automatically reformat text in particular ways. For instance, all camelcase links could be [[UncamelAction uncamelized]] while still maintaining the underlying code on the page. It would also be nice if we could apply certain actions across the entire site. This is exactly what this code allows us to do.
Deletions:
Revision [10331]
Edited on 2005-08-01 04:59:29 by DennyShimkoski [Modified links pointing to docs server]Additions:
$global_actions = $this->LoadSingle('SELECT body FROM ' . $this->config['table_prefix'] . 'pages WHERE tag = \'GlobalActions\' AND latest = \'Y\'');
Deletions:
Revision [10330]
Edited on 2005-08-01 04:58:37 by DennyShimkoski [Modified links pointing to docs server]Additions:
if ($this->tag == 'GlobalActions') return;
Apparently the first line is required to prevent a hard-to-follow tail chasing event of some sort. It's much too late to figure this out tonight, though. Hence, the simple return. It works for now, but is that good enough? Not if it turns out that every action we want to use in the GlobalActions page must add this line up top! So if you spot the bug, please let me know!
Apparently the first line is required to prevent a hard-to-follow tail chasing event of some sort. It's much too late to figure this out tonight, though. Hence, the simple return. It works for now, but is that good enough? Not if it turns out that every action we want to use in the GlobalActions page must add this line up top! So if you spot the bug, please let me know!
Revision [10325]
Edited on 2005-07-31 19:56:10 by DennyShimkoski [Modified links pointing to docs server]Additions:
This will run the [[UncamelAction uncamel action]] with no parameters after the page formatter has been applied.
----
CategoryUserContributions
----
CategoryUserContributions