Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

All other Modules /

Discuss all other Modules here.

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

Postale direct message


Go to End


3 Posts   1184 Views

Avatar
bezarre

Community Member, 13 Posts

17 September 2011 at 3:24am

Hello,

I am using unclecheese's postale module and i wanted to know if there is an way to open an messages/add window by passing an parameter.

Why? On my page, every user has an profilepage (where you can read things about him, like name, birthday, etc.) and there i want to add an "write a message" link. When the user clicks on that link the "create new message" window should popup.

Can some one help me?

Best Regards
Micha

Avatar
UncleCheese

Forum Moderator, 4102 Posts

17 September 2011 at 8:14am

Yeah, that's decorated on to the Member object.

<% control YourMember %>
<a href="$SendMessageLink" rel="fb">Send $Name a message</a>
<% end_control %>

--------------------
SilverStripe tips, tutorials, screencasts and more: http://www.leftandmain.com

Avatar
bezarre

Community Member, 13 Posts

17 September 2011 at 8:26am

hello and thanks :-)