|
Cookbook /
SignalWhenMarkupSummary: Tells you whether your markup is evaluated within (:markup:) code
Version: 2009-02-01
Prerequisites: PmWiki2 (developed and tested with 2.2.0-stable)
Status: stable
Maintainer: Tontyna
Categories: Markup
File: signalwhenmarkup.phpΔ
Questions answered by this recipeHow can I tell whether my markup function is called within DescriptionThe script sets a global variable, Some cookbooks like SlimTableOfContents, TitleMarkup, SectionEdit
need to know or should at least care about that. ActivationDownload signalwhenmarkup.phpΔ into your cookbook folder an activate it as usual by adding the following line to your local/config.php:
include_once("$FarmD/cookbook/signalwhenmarkup.php");
UsageWhenever you need to know whether your own markup is evaluated within $SignalMarkupMarkup == 0 - we are NOT in a (:markup:) sequence $SignalMarkupMarkup == 1...n we are in the n'th level NotesWorks by redirecting the markups 'markup' and 'markupend'. Release Notes
See AlsoContributorsCommentsUser notes? : If you use, used or reviewed this recipe, you can add your name. These statistics appear in the Cookbook listings and will help newcomers browsing through the wiki. |