Jump to:

10990 Posts in 2727 Topics by 1818 members

All other Modules

SilverStripe Forums » All other Modules » Hide Mailto module

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 792 Views
  • clusterboy
    Community Member
    4 Posts

    Hide Mailto module Link to this post

    I'm trying to get Hide Mailto module from Matt to work with SS 2.4.0.

    Aside/Background for the uninitiated: Even if you haven't played with the hidemailto module, the code is pretty short, succinct, and easy to follow: You register /mailto with the Director; the Director then invokes the HideEmail controller with the link arguments when invoked with http://mysite/mailto/user/domain/subject, and the HideEmail controller composes a mailto: redirect to user@domain with subject "subject" from these arguments. The code does precisely what I'm looking for, but there's a missing component somewhere that I must be missing.

    It seems that the code isn't correctly invoking the Director redirect, despite registering the mailto/ prefix action successfully. Within the _config.php, I've added "*" to apply the obfuscation to all domains.

    The codebase for the hidemailto module has the class: "class HideEmail_Controller extends ContentController {" Within this class, I put some simple debugging information to check the action on the arguments, but it appears that this code is never invoked by the Director.

    Does anyone have tips on debugging this further? Or, alternatively, a recommended way to integrate javascript-driven e-mail obfuscation into SilverStripe pages?


Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.