Download & Extend

put send button on node view page?

Project:Simplenews
Version:6.x-1.0-rc6
Component:Code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

Hi,

I'm trying to figure out a way to put "Send this node as Test email" and "Send this node as a newsletter" buttons on the node view page, rather than on the edit page. I think this would be simpler for my clients to understand.

I'm thinking I could do it by calling a php file with ajax when the button is clicked, to either fire the simplenews_send_node($node) function or to trigger a simplenews action. However, I'm a bit lost how to do either of these. Any suggestion on which way would be best and how to proceed?

thanks, hope you can help me a bit!

J

Comments

#1

In the simlenews action module you will find the function calls required to send a newsletter. Perhaps that is of any help.

#2

Thanks, I'll check it out. Now I just need to figure out how to call those functions with ajax...

#3

Status:active» closed (fixed)
nobody click here