FS#236 — DropMenu. Modified for weblinks and regexp on keywords/TV.
Attached to Project —
DropMenu
Opened by Stephan Dale (steph) - Friday, 27 January 2006, 07:07AM
Last edited by Jason Coward (opengeek) - Tuesday, 11 April 2006, 04:50PM
Opened by Stephan Dale (steph) - Friday, 27 January 2006, 07:07AM
Last edited by Jason Coward (opengeek) - Tuesday, 11 April 2006, 04:50PM
| Task Type | Feature Request |
|---|---|
| Category | Backend / Core |
| Status | Closed |
| Assigned To |
Jason Coward (opengeek) |
| Operating System | All |
| Severity | Low |
|---|---|
| Priority | Normal |
| Reported Version | 0.9.1 |
| Due in Version | Undecided |
| Due Date | Undecided |
| Percent Complete |
|
Details
http://modxcms.com/forums/index.php/topic,2588.msg17655.html#msg17655Synopsis:
I've modified the DropMenu snippet to support the following:
1. Show all items regardless of whether they've been flagged to appear in the menu or not.
2. Link to a weblink's URL rather than the weblink itself.
3. Filter docs via a regular expression on their keywords.
4. Filter docs via a regular expression on a given template variable.
Stephan Dale
modx(a)mindspill.net
This task depends upon
This task blocks these from closing
Closed by Ryan Thrash (rthrash)
Thursday, 04 January 2007, 09:01AM
Reason for closing: Deferred
Additional comments about closing: addressed with Wayfinder
Thursday, 04 January 2007, 09:01AM
Reason for closing: Deferred
Additional comments about closing: addressed with Wayfinder
DropMenuMindspillDotNet.zip
See my post here: http://modxcms.com/forums/index.php/topic,2612.0.html
I've updated the snippet to add new NOT join method (because it's difficult to write regular expressions that return everything not matching a pattern) and assign a css class to weblinks.
See my modified post here: http://modxcms.com/forums/index.php/topic,2588.msg17644.html
I also corrected some of the comments (which incorrectly refered to XOR as a union) and corrected a mistake which may have prevented the joinMethod variable being set correctly (I forgot to remove a reference to an old variable called joinResults).
Hope it all works well and passes the tests. I've not tested it thoroughly myself, but it works within the context of my web site, which does utilise most of the new features.
Steph