Yes, we need to separate the css out of the code. It's easy enough to
cut and paste the css into your style sheet. Basically it just
requires deleting the second line of the BOLTdropdown function, and a
few other minor changes. I'll try to post an updated script shortly...

Will fix the width bug, and add zones markers. I've tinkered with
trying to generate dynamic drop down menu's using a search function,
but have not been able to get it right. Close but doesn't seem to want
to work.  Hmmm. I love a good puzzle...

Ok, I tried this just for starters:  add the $zone thing to the two
matching places it needs to go (377 & 382) and replace the
BOLTpluginHeader line, ~line 370 with this line:

        if (substr($menu, 0, 2) == '~~') $menu = BOLTescape($menu, false);

This unescapes the contents within the drop down menu. With these
changes, I can get this to output a dynamic Drop Down menu:

<dropdown>
[(search group=code.* fmt=dropdown count=20 rules=if)]
</dropdown>

/*
[[#dropdown]][if new {+p1}.{+p2}]+ [[{+p1}.{+p2}|+]]
[if][[{+p}|+]]
[[#end]]
*/

Just a quick stab, but it's on the way...  And very cool!!!  I suppose
if we wanted we could get it to nest or something also.

Hey, better still, try this one:

<dropdown>
{(search fmt="[if equal {+p0} 1]+ [[{+p}|+]][else][[{+p}|+]][if]"
dropdown rules=if)}
</dropdown>

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

Reply via email to