[pmwiki-users] Insert text only once
Richard Haven
richard at gbox.com
Tue Aug 14 19:33:06 CDT 2007
I am writing some PHP rules (scripts) files.
In one, I have some javascript that should exist only once per page in
addition to another tag. How do I detect that the user has use (:tag
blah:) more than once so I can omit emitting the singleton content?
I am trying
SDV('$Flag']), 0);
global Flag;
if ($Flag == 0){
$codeSnippet .= "<script type=\"text/javascript\"
src=\https://domain.com/init.js <https://domain.com/init.js>
\"></script>";
$Flag = 0;
}
Am I on the right track ?
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070814/908b9443/attachment.html
More information about the pmwiki-users
mailing list