I would be skeptical of nesting templates within templates like this,
as you will inevitably come to some issue BoltWire can't handle. And
that means more bugs for us to try and fix without somehow producing
other bugs! :) We're getting pretty complicated already!
Probably the easiest way would be to create a custom toc function that
handled this, and remap, perhaps. If you got php skills, use them.
Just create your config.php file and create any custom coding you
need. It's a snap and will save you many headaches on complex
projects. As a general rule, I'd encourage you to customize BoltWire
to make it easier to use, rather than find complex ways to get it do
those same things.
But a custom function is not even necessary, as you can change the
leading character string in toc from 5 spaces to 1 asterisk already.
Go to template.toc and change it to this:
[(toc {+p} leader='*')] [[{+p}|{+title}]]
Don't forget the space between the function and the like. That's
necessary for the list markup to be picked up. Actually should just
have+ for the title... Next release...
Anyway, then do
[(search params... fmt=toc)]
You have to use fmt, not template because the search function must
output the raw results unprocessed so BoltWire can then later pass the
ul markup over the entire section to avoid a bunch of separte ul's for
each page. Which is what templates do--processes the markup table for
each page separately. Plus, fmt is always faster. It is important to
catch the different between templates and fmts.
Last point, I wonder if we shouldn't make this the default behavior?
That is * for the default leader rather than ' '. It gives a cool
output. But spaces are more sure--they work whether fmt or template or
anything. Maybe it's enough to document somewhere the parameters in
toc?
Cheers,
Dan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---