Scheduled Newsletters with Products.EasyNewsletter in Plone - plone

How do I set up automated newsletters with EasyNewsletter in Plone?
I know Singing & Dancing has this function however EasyNewsletter has the following features which Singing & Dancing doesn't
Better breadcrumbs/urls for subscribe links
More admin control over templates/subscribe/thank you pages etc.
Doesn't require admin permission

As long as EasyNewsletter doesn't provide a mail queue you will have to cheat: I would implement a browser view that checks for "issues" in state draft (maybe using a topic to help the search) and simply trigger the "send" transition. Then, using Products.cron4plone, you add a cron job that calls that page anytime you prefer.

Related

Do I need to set the "Explicitly Shared" option?

For a Facebook, Open Graph action type, what's the meaning of the "Explicitly Shared" property? How does it effect the story?
If there's a button in my app that publishes a story, does the action need to be "Explicitly Shared" or not?
Any clarifications are welcome,
Thank you!
Using Open Graph actions and explicit sharing is more powerful.
Is no need waiting to see FB dialog or confirm your action.
Stories should only be shared explicitly when people indicate that they want to share their in-app experience in the same way that they would post to Facebook themselves. Explicitly shared stories will always be posted to the Timeline of the person who shares them, and might appear in their friends' News Feeds.
Explicit sharing can happen through a variety of actions, like posting a photo or adding a message to an action they've taken. The important thing is that people clearly understand they are posting this action and must opt in to publishing this action to Facebook.
Learn more

Send email when you publish a new article

I was able to find the function that sends an email every time a new item is created. Unfortunately I lost my notes and I can not find this feature more. Remember, that you entered the menu zope them and outlined a function to the occurrence of an event ..... can you help? Sorry for the bad English,
thanks.
You simply need to use a Plone native feature: content rules.
Go the the "content rule" section of your Plone control panel (http://yoursite/##rules-controlpanel) then configure a rule with a "mailer" action. The trigger action could be a workflow transition change.

Plone: Email contents in content rule action

I have a Plone site configured with PloneFormGen. I'm using a save-data-to-content adapter to create a page for each submission, with a unique number for title/id. I have content rules set up so that various roles will be notified when a submitted form transitions along the workflow.
Is there any way to include the content of the submitted in these emails? I know PloneFormGen can send the content of the form in an initial email at submit time, but I need to send this same information later. I'm pretty good at figuring things out, but I'm no Plone expert so any help would be appreciated.
Additional info:
I'm using the uwosh.pfg.d2c adapter to perform the PFG -> Contenttype conversion, which works well. The content type is set to 'page' in the settings for the uwosh.pfg.d2c plugin. Content rules then will send emails to various groups or roles based on a state transition of the resulting content, which works in the normal way - when a transition occurs, the rule executes.
Effectively, what we have is pages that are being generated by the form when the user clicks submit. This is done through a plugin in PloneFormGen. This may provide some extra info: http://pythonhosted.org/uwosh.pfg.d2c/ - I'm not, admittedly, much of a developer.
Ideally, reviewers would get body-text of the created page when the form is submitted: this is done through a content rule that when a page is added to a folder, it sends the email. The page is added to the folder when the plugin in PloneFormGen creates the page.
When we have these pages, other users can come in and review and change the state of them - just as you can with any other page in Plone. PloneFormGen should have no further use once it's been converted to a page. Hope that helps.
The bad news is that this will require programming; the good news is that it won't take much. There are two reasonable approaches to solving the problem:
Have your content rule action run a script that handles the mailing itself. You can use the site's mailhost to send scripted mail; or,
In a Python package (no way to do this in a through-the-web script), provide a named adapter implementing plone.stringinterp.interfaces.IStringSubstitution for your context's text attribute. That will give you a $ substitution for the body. This would probably require less than 10 lines of total code.
You might want to have a look a collective.contentrules.mailtogroup, the newest version is capable to send the body-text as mail (use the '${text}'-variable), triggered on one of the convenient content-rules-events, in your case 'Object added'.
You can assign your roles to a group and use it for your case.

How to make a box with user options in facebook open graph

I have an online magazine with news articles and i want to make an open graph action that everytime a user reads an article a story to post in his timeline.
I have all the nececery open graph tags in my urls and a login button with publish_actions scope.
I'm one step away from submitting the action for approval but i still cant figure out one thing.
The facebook's documentation says that i need to give users an option to stop auto publishing or remove the app etc. something like the image in the middle of this page http://developers.facebook.com/docs/opengraph/actions/builtin/#read .
I saw it also on yahoo and its exacly the same.
How can i make something like this in my site? The code is ready somewhere or i have to write it myself?
Thanks in advance!
The permission remove, or just a switch to stop publish of action and the delete article functions will have to be developed by you.
I am working on the same things for my app.
creating user CP control panel containing, revoke perms buttons.
a user CP to swich publishing on and off, via true/false in mysql
an array of app activities with delete buttons.

Create a button like the Facebook "like" button in Drupal

I would like to create a button with the name "Participate" that works like the "like" button on facebook.
I have an contenttype called Event, which should show the participate button, that logged in users can click, and add themselves to the event.
When looking at the content for Event I would also like to display a list of the users which have clicked the Participate button.
Is there someone who can help me with how it can be solved or what i should look into?
take a look at this module with some php knowledge you can make it , it's not what you really want but this guys pushed the hard part
The Activity module keeps track of the
things people do on your site and
provides mini-feeds of these
activities in blocks, in a specialized
table, and via RSS. The module is
extensible so that any other module
can integrate with it. The messages
that are produced are customizable via
the admin interface and are context
sensitive. Some theoretical example
messages include:
You wrote a comment in response to "example comment title"
Jim wants to be your friend. Approve this friendship here
Nancy is Phil's latest fan
http://drupal.org/project/activity

Resources