I have the same requirement as was discussed here
http://modxcms.com/forums/index.php/topic,503.msg6481.html#msg6481 but only got half of what I needed from the final solution.
I’ve combed the forums for a better solution that what is outline here.
I have a sidebar menu generating from a DropMenu snippet call and in that menu I have both ordinary documents and some external links. For the external links I need:
1) to launch in a new window and,
2) to have an "external" CSS class applied so I can hook-up an icon to the items signaling that they are off-site.
The hack provided here will get me halfway there (though it take a long time to launch the external link as it is), but what can I do about getting class code injected in the generated DropMenu link?
What I’d love is a PlugIn / OnWebPagePrerender event parser which just automatically magically identified any/all external links an added a specified CSS class to them. . . but that’s crazy talk. I don’t have time to build such a thing.
Here is the site I need this for:
http://www.fn-group.com/clients/diopa/modx/index.php?id=88
Thoughts?
Thanks,
Loren Johnson