Login!
Lost password? Open a new Task anonymously
 

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
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 100%

Details

http://modxcms.com/forums/index.php/topic,2588.msg17655.html#msg17655

Synopsis:

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
  DropMenuMindspillDotNet.zip
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
Comment by Stephan Dale (steph) - Friday, 27 January 2006, 10:35AM
Sorry, but I don't know how to edit this post. I've corrected some comments in the attached file. Please download the latest from the forum post.

Comment by Stephan Dale (steph) - Thursday, 09 February 2006, 03:21AM
Forgot to mention that this required modifications to /manager/actions/dynamic/mutate_content.dynamic.action.php to allow weblinks to have META Keywords and template variables.

See my post here: http://modxcms.com/forums/index.php/topic,2612.0.html

Comment by Jason Coward (opengeek) - Tuesday, 11 April 2006, 04:49PM
Very nice mods indeed Stephan; I'm refactoring DropMenu now for the upcoming release and will attempt including these changes in the latest code. Cheers.

Comment by Stephan Dale (steph) - Sunday, 16 April 2006, 12:49PM
Hi Jason.

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

Comment by Stephan Dale (steph) - Sunday, 16 April 2006, 12:51PM
File attached here too, for convenience.
  DropMenuMindspillDotNet.php.zip