On Wed, May 20, 2009 at 8:10 AM, The Editor <[email protected]> wrote:

> I looked into this some, and realized it is only a problem with the sumbox
> in the site. page. The easiest fixes are to
> 1) Don't put the sumbox on the site page. Perhaps in your header put [if !
> equal {p} site]<(sumbox)>[if]
>
> 2) Don't enable the plugin for the site group. Basically, enable it for the
> hierarchies of your site that you want.
>
> 3) Hack the code in sedit.  Basically you want to convert the $label
> variable in line 26 into something without a link so it fits in line 27
> properly. The issue here is that the heading in page site are themselves
> links. And should be. There's no way conceptually to put links in a link...
>
> 4) The other option is to customize the site page however you want. The
> easiest option might just be to change all the headers on the page to plain
> text with no links. Then you can use the sumbox with no problem. But you
> will lose some functionality.
>
> So here's four ways to fix the issue. I'd like to settle on something for
> the core, so this problem will not come up again, but I'm not sure the best
> approach. Any suggestions?
>
> Cheers,
> Dan
>

Here is another option that appeals to me:  Change line 27 from
$outline[] = "$bullets [[$page#$i|$label]]";

to

if (strpos($label, '[[') !== false) $outline[] = "$bullets $label";
else $outline[] = "$bullets [[$page#$i|$label]]";

This basically says, if there is a link already in the header, use the
header as is. Otherwise use the targeted anchor. It works like a charm.

Cheers,
Dan

P.S. I'll upload the revised plugin momentarily.

--~--~---------~--~----~------------~-------~--~----~
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