It seems that the page link markup [[link|+]] always uses ucfirst() to
uppercase the first character of the link label.
Because I want the tags in "tag cloud"(tag.xx or tag.yy, .etc) to be
case-sensitive, so this is very annoying to me.

I tried to find a solution on 
http://www.boltwire.com/index.php?p=docs.handbook.markups,
but I have no lock.
so I decided to modify some codes by myself to fix it. (I'm not a
programmer at all.)

boltwire v3.3.9

c:\www_root\boltwire\barn\scripts\markups.php
function BOLTMlinks($x) {
...
line:546
                        if ($label == '+') {
                                if (strpos($link, '&') !== false) $label = 
BOLTvars(substr($link,
0, strpos($link, '&')) . ':title');
                                elseif (strpos($link, '#') !== false) $label =
ucfirst(substr($link, strpos($link, '#') + 1));
                                else $label = BOLTvars("$link:title");
                                }
                        /////////// add a new custom link label, try not to
uppercase the first char of tags
                        elseif ($label == 't') {
                                if (strpos($link, 'tag.') !== false) $label = 
substr($link,
strpos($link, '.') + 1);
                                }
                        ////////////////////////////////

c:\www_root\boltwire\farm\plugins\infotags.php
function BOLTinfoTagCloud($info, $args) {
...
line:28
change
                $out .= " <span style=\"font-size: " . $x . 
"px;\">[[?tag.$i|+]]</
span> ";
to
                $out .= " <span style=\"font-size: " . $x . 
"px;\">[[?tag.$i|t]]</
span> ";

showing tags in pages:
change
  Tags: [(list '{info.tags::{p}}' delimiter=' ' join=' | ' fmt='[[?tag.
{+p}|+]]')]
to
  Tags: [(list '{info.tags::{p}}' delimiter=' ' join=' | ' fmt='[[?tag.
{+p}|t]]')]


It works fine to me but maybe someone has a better solution?

-- 
You received this message because you are subscribed to the Google Groups 
"BoltWire" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/boltwire?hl=en.

Reply via email to