Revision history for OnPageLoadWithGlobalActions


Revision [23034]

Last edited on 2016-05-20 07:38:44 by DennyShimkoski [Replaces old-style internal links with new pipe-split links.]
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.
This will run the [[UncamelAction | uncamel action]] with no parameters after the page formatter has been applied.
Deletions:
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.
This will run the [[UncamelAction uncamel action]] with no parameters after the page formatter has been applied.


Revision [18575]

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:
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 converted to links with spaces 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.


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:
$global_actions = $this->LoadSingle('SELECT body FROM ' . $this->config['table_prefix'] . 'pages WHERE tag = \'GlobalActions\'');


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!


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
Deletions:
This will run the action called uncamel with no parameters after the page formatter has been applied.


Revision [10324]

The oldest known version of this page was created on 2005-07-31 19:54:51 by DennyShimkoski [Modified links pointing to docs server]
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki