Create articles with RSS feed and send newsletters.

This plugin is meant to be a whole news management feature. Some things still need to be done (see documentation), but basic functionality is already included and working with Diem 5.1

Installation

  • In a console, from your project root dir, run:
git clone git://github.com/thohms/lrNewsPlugin.git plugins/lrNewsPlugin  
  • In config/ProjectConfiguration.class.php, add lrNewsPlugin to the list of enabled plugins:
class ProjectConfiguration extends dmProjectConfiguration
{  
  public function setup()  
  {  
    parent::setup();  
 
    $this->enablePlugins(array(  
      // your enabled plugins  
      'lrNewsPlugin'  
    ));  
  • In a console, from your project root dir, run:
php symfony doctrine:generate-migrations-diff  

php symfony doctrine:migrate  

php symfony dm:setup  

TODOS

See issues here or in Github.

Templates

There are 2 mail templates used in this plugin:

'confirm_newsletter_subscription' with the following variables:

  • %firstname% => firstname of the subscriber
  • %lastname% => lastname of the subscriber
  • %email% => email address of the subscriber
  • %confirm_parameter% => the parameter for confirmation link (See 3. Parameters' for more details.)
  • %confirm_limit% => hours a subscription must be confirmed before subscriber gets deleted from database

'newsletter' with the following variables:

  • %firstname%, %lastname%, %email% => same as above
  • %edit_parameter% => the parameter for editing a subscription already in database (See '3. Parameters' for more details.)
  • %unsubscribe_parameter% => the parameter for removing a subscription from database (See '3. Parameters' for more details.)
  • %content_text% => all articles with title and summary relating to the current newsletter and generated absolute url as text
  • %content_html% => articles HTML formatted and with clickable, translated "Read more" link

Parameters

Parameters give you the flexibility to choose an URL yourself. They will always just return the
method to use as URL variable and the subscriber's id as its value.
So for instance the %edit_parameter% returns: ?edit=3 for editing a subscriber with id 3.
You have to set the beginning of the URL yourself. So let's say you have the subscriber form under
http://mydomain.com/news/subscriber than you would have to insert into the template:
http://mydomain.com/news/subscriber%edit_parameter%

Available modules

There are 4 widgets you can use in frontend:

  • Articles List => Shows a list of all articles with summary, date and author
  • Articles List Side => Shows a list of articles with titles only
  • Articles Show => Shows a single article with its content/body
  • Subscribers Subscription => Shows either the form for adding a new subscriber or editing an existing one

Configuration

You can set in app.yml the following variables under news:

  • maxFeedItems => How many items should be shown in the feed (default: 20)
  • feedAuthor => Author that should be used for the whole feed (default: lrNewsPlugin)
  • showAuthor => Should the Author be shown on articles (default: false)
  • wait4ConfirmationHours => Hours to wait until a new subscription has to be confirmed (default: 48)

Feed

You can get the feed by calling i.e. http://yoursite.com/index.php/news/feed
By default the feed is cached. If you don't want it to be cached (not recommended) put inside your app's cache.yml:

feed:
cache: false

Usage

First you have to create a new newsletter and set a subject. You should use a name other than just 'Newsletter' so that you know inside of an article which newsletter your are choosing. So a better name would be 'Newsletter from 01.01.2010'.

Than you can either start directly adding a new article from within the newsletter's configuration form or if you have already an article which you like to integrate into the newsletter just go directly to that one and open it's edit form.

Inside the edit form on the right side there is a dropdown box where you can select the newsletter.

Than if you have all articles you want inside the newsletter go back to the newsletter list and click Send left of the newsletter subject. A page opens, showing you the title of the newsletter, the amount of subscribers it was send to and the titles of all articles that have been included.

If you set the mail template for newsletter to text than use variable %content_text% and for HTML mails use %content_html%

Hint

If you want an article to be send in the newsletter, but not shown on the frontend just leave the article
inactive.

  • kamagraDecember 29, 2010 10:54 AM

    [URL=http://365pills.org/buy-without-prescription/buy-levlen-online.htm]levlen[/URL] levlen [URL=http://365pills.org/buy-without-prescription/buy-flagyl-er-online.htm]buy flagyl er[/URL] buy flagyl er [URL=http://365pills.org/buy-without-prescription/buy-evista-online.htm]buy evista[/URL] buy evista [URL=http://365pills.org/buy-without-prescription/buy-mevacor-online.htm]mevacor[/URL] mevacor [URL=http://365pills.org/buy-without-prescription/buy-viagra-online.htm]cheap viagra[/URL] cheap viagra [URL=http://365pills.org/buy-without-prescription/buy-maxaman-online.htm]maxaman[/URL] maxaman [URL=http://365pills.org/buy-without-prescription/buy-beconase-aq-online.htm]cheap beconase aq[/URL] cheap beconase aq [URL=http://365pills.org/buy-without-prescription/buy-evecare-online.htm]buy evecare[/URL] buy evecare [URL=http://365pills.org/buy-without-prescription/buy-myambutol-online.htm]myambutol[/URL] myambutol [URL=http://365pills.org/buy-without-prescription/buy-strontium-bone-maker-online.htm]cheap strontium bone maker[/URL] cheap strontium bone maker [URL=http://365pills.org/buy-without-prescription/buy-levitra-online.htm]levitra[/URL] levitra [URL=http://365pills.org/buy-without-prescription/buy-hyaluronic-acid-online.htm]buy hyaluronic acid[/URL] buy hyaluronic acid [URL=http://365pills.org/buy-without-prescription/buy-ceftin-online.htm]ceftin[/URL] ceftin [URL=http://365pills.org/buy-without-prescription/buy-brahmi-online.htm]9brahmi[/URL] 9brahmi [URL=http://365pills.org/buy-without-prescription/buy-zofran-online.htm]cheap zofran[/URL] cheap zofran [URL=http://365pills.org/buy-without-prescription/buy-fincar-online.htm]buy fincar[/URL] buy fincar [URL=http://365pills.org/buy-without-prescription/buy-cialis-super-active-plus-online.htm]4cialis super active plus[/URL] 4cialis super active plus [URL=http://365pills.org/buy-without-prescription/buy-synthroid-online.htm]cheap synthroid[/URL] cheap synthroid [URL=http://365pills.org/buy-without-prescription/buy-eulexin-online.htm]buy eulexin[/URL] buy eulexin [URL=http://365pills.org/buy-without-prescription/buy-remeron-online.htm]cheap remeron[/URL] cheap remeron [URL=http://365pills.org/buy-without-prescription/buy-trazodone-online.htm]cheap trazodone[/URL] cheap trazodone [URL=http://365pills.org/buy-without-prescription/buy-lynoral-online.htm]lynoral[/URL] lynoral [URL=http://365pills.org/buy-without-prescription/buy-diflucan-online.htm]buy diflucan[/URL] buy diflucan [URL=http://365pills.org/buy-without-prescription/buy-hoodia-weight-loss-gum-online.htm]buy hoodia weight loss gum[/URL] buy hoodia weight loss gum [URL=http://365pills.org/buy-without-prescription/buy-lexapro-online.htm]lexapro[/URL] lexapro [URL=http://365pills.org/buy-without-prescription/buy-bupropion-online.htm]0bupropion[/URL] 0bupropion [URL=http://365pills.org/buy-without-prescription/buy-zanaflex-online.htm]cheap zanaflex[/URL] cheap zanaflex [URL=http://365pills.org/buy-without-prescription/buy-zerit-online.htm]cheap zerit[/URL] cheap zerit [URL=http://365pills.org/buy-without-prescription/buy-vitamin-a-and-d-online.htm]cheap vitamin a and d[/URL] cheap vitamin a and d [URL=http://365pills.org/buy-without-prescription/buy-procalisx-online.htm]cheap procalisx[/URL] cheap procalisx [URL=http://365pills.org/buy-without-prescription/buy-noroxin-online.htm]noroxin[/URL] noroxin [URL=http://365pills.org/buy-without-prescription/buy-ed-discount-pack-1-online.htm]buy ed discount pack 1[/URL] buy ed discount pack 1 [URL=http://365pills.org/buy-without-prescription/buy-desyrel-online.htm]buy desyrel[/URL] buy desyrel [URL=http://365pills.org/buy-without-prescription/buy-prednisolone-online.htm]prednisolone[/URL] prednisolone [URL=http://365pills.org/buy-without-prescription/buy-french-red-wine-online.htm]buy french red wine[/URL] buy french red wine [URL=http://365pills.org/buy-without-prescription/buy-cardura-online.htm]cardura[/URL] cardura [URL=http://365pills.org/buy-without-prescription/buy-chloramphenicol-online.htm]chloramphenicol[/URL] chloramphenicol [URL=http://365pills.org/buy-without-prescription/buy-coumadin-online.htm]coumadin[/URL] coumadin [URL=http://365pills.org/buy-without-prescription/buy-acai-natural-energy-boost-online.htm]cheap acai natural energy boost[/URL] cheap acai natural energy boost [URL=http://365pills.org/buy-without-prescription/buy-metformin-online.htm]metformin[/URL] metformin [URL=http://365pills.org/buy-without-prescription/buy-nimotop-online.htm]nimotop[/URL] nimotop [URL=http://365pills.org/buy-without-prescription/buy-biaxin-online.htm]4biaxin[/URL] 4biaxin [URL=http://365pills.org/buy-without-prescription/buy-cordarone-online.htm]cordarone[/URL] cordarone [URL=http://365pills.org/buy-without-prescription/buy-sinequan-online.htm]cheap sinequan[/URL] cheap sinequan [URL=http://365pills.org/buy-without-prescription/buy-kamagra-oral-jelly-online.htm]kamagra oral jelly[/URL] kamagra oral jelly [URL=http://365pills.org/buy-without-prescription/buy-dramamine-online.htm]buy dramamine[/URL] buy dramamine [URL=http://365pills.org/buy-without-prescription/buy-bystolic-online.htm]8bystolic[/URL] 8bystolic [URL=http://365pills.org/buy-without-prescription/buy-ed-discount-pack-3-online.htm]buy ed discount pack 3[/URL] buy ed discount pack 3 [URL=http://365pills.org/buy-without-prescription/buy-famvir-online.htm]buy famvir[/URL] buy famvir [URL=http://365pills.org/buy-without-prescription/buy-levitra-professional-online.htm]levitra professional[/URL] levitra professional [URL=http://365pills.org/buy-without-prescription/buy-ampicillin-online.htm]buy ampicillin[/URL] buy ampicillin [URL=http://365pills.org/buy-without-prescription/buy-buspar-online.htm]cheap buspar[/URL] cheap buspar [URL=http://365pills.org/buy-without-prescription/buy-precose-online.htm]precose[/URL] precose [URL=http://365pills.org/buy-without-prescription/buy-lipitor-online.htm]lipitor[/URL] lipitor [URL=http://365pills.org/buy-without-prescription/buy-herbolax-online.htm]buy herbolax[/URL] buy herbolax [URL=http://365pills.org/buy-without-prescription/buy-proventil-online.htm]proventil[/URL] proventil [URL=http://365pills.org/buy-without-prescription/buy-lopressor-online.htm]lopressor[/URL] lopressor [URL=http://365pills.org/buy-without-prescription/buy-decadron-online.htm]buy decadron[/URL] buy decadron [URL=http://365pills.org/buy-without-prescription/buy-zyban-online.htm]cheap zyban[/URL] cheap zyban [URL=http://365pills.org/buy-without-prescription/buy-viagra-soft-flavoured-online.htm]cheap viagra soft flavoured[/URL] cheap viagra soft flavoured [URL=http://365pills.org/buy-without-prescription/buy-avodart-online.htm]cheap avodart[/URL] cheap avodart [URL=http://365pills.org/buy-without-prescription/buy-flagyl-er-online.htm]buy flagyl er[/URL] buy flagyl er [URL=http://365pills.org/buy-without-prescription/buy-cefixime-online.htm]buy cefixime online[/URL] buy cefixime online [URL=http://365pills.org/buy-without-prescription/buy-femcare-online.htm]buy femcare[/URL] buy femcare [URL=http://365pills.org/buy-without-prescription/buy-cytotec-online.htm]7cytotec[/URL] 7cytotec [URL=http://365pills.org/buy-without-prescription/buy-celadrin-online.htm]celadrin[/URL] celadrin [URL=http://365pills.org/buy-without-prescription/buy-lukol-online.htm]lukol[/URL] lukol [URL=http://365pills.org/buy-without-prescription/buy-cytoxan-online.htm]cytoxan[/URL] cytoxan [URL=http://365pills.org/buy-without-prescription/buy-copegus-online.htm]copegus[/URL] copegus [URL=http://365pills.org/buy-without-prescription/buy-stop-smoking-online.htm]cheap stop smoking[/URL] cheap stop smoking [URL=http://365pills.org/buy-without-prescription/buy-hair-loss-cream-online.htm]buy hair loss cream[/URL] buy hair loss cream [URL=http://365pills.org/buy-without-prescription/buy-crestor-online.htm]crestor[/URL] crestor [URL=http://365pills.org/buy-without-prescription/buy-femara-online.htm]buy femara[/URL] buy femara [URL=http://365pills.org/buy-without-prescription/buy-zetia-online.htm]cheap zetia[/URL] cheap zetia [URL=http://365pills.org/buy-without-prescription/buy-rave-online.htm]cheap rave[/URL] cheap rave [URL=http://365pills.org/buy-without-prescription/buy-revia-online.htm]cheap revia[/URL] cheap revia [URL=http://365pills.org/buy-without-prescription/buy-lopid-online.htm]lopid[/URL] lopid [URL=http://365pills.org/buy-without-prescription/buy-coreg-online.htm]coreg[/URL] coreg [URL=http://365pills.org/buy-without-prescription/buy-reglan-online.htm]cheap reglan[/URL] cheap reglan [URL=http://365pills.org/buy-without-prescription/buy-innopran-xl-online.htm]buy innopran xl[/URL] buy innopran xl [URL=http://365pills.org/buy-without-prescription/buy-requip-online.htm]cheap requip[/URL] cheap requip [URL=http://365pills.org/buy-without-prescription/buy-cialis-soft-tabs-online.htm]5cialis soft tabs[/URL] 5cialis soft tabs [URL=http://365pills.org/buy-without-prescription/buy-zyrtec-online.htm]cheap zyrtec[/URL] cheap zyrtec [URL=http://365pills.org/buy-without-prescription/buy-pletal-online.htm]cheap pletal[/URL] cheap pletal [URL=http://365pills.org/buy-without-prescription/buy-imodium-online.htm]buy imodium[/URL] buy imodium [URL=http://365pills.org/buy-without-prescription/buy-actos-online.htm]buy actos[/URL] buy actos [URL=http://365pills.org/buy-without-prescription/buy-hytrin-online.htm]buy hytrin[/URL] buy hytrin [URL=http://365pills.org/buy-without-prescription/buy-carafate-online.htm]6carafate[/URL] 6carafate [URL=http://365pills.org/buy-without-prescription/buy-avandia-online.htm]buy avandia[/URL] buy avandia [URL=http://365pills.org/buy-without-prescription/buy-tricor-online.htm]cheap tricor[/URL] cheap tricor [URL=http://365pills.org/buy-without-prescription/buy-symmetrel-online.htm]cheap symmetrel[/URL] cheap symmetrel [URL=http://365pills.org/buy-without-prescription/buy-xenical-online.htm]cheap xenical[/URL] cheap xenical [URL=http://365pills.org/buy-without-prescription/buy-lisinopril-online.htm]lisinopril[/URL] lisinopril [URL=http://365pills.org/buy-without-prescription/buy-methotrexate-online.htm]methotrexate[/URL] methotrexate [URL=http://365pills.org/buy-without-prescription/buy-acai-online.htm]cheap acai[/URL] cheap acai [URL=http://365pills.org/buy-without-prescription/buy-rumalaya-online.htm]cheap rumalaya[/URL] cheap rumalaya [URL=http://365pills.org/buy-without-prescription/buy-indocin-online.htm]indocin[/URL] indocin [URL=http://365pills.org/buy-without-prescription/buy-atarax-online.htm]buy atarax[/URL] buy atarax [URL=http://365pills.org/buy-without-prescription/buy-paroxetine-online.htm]paroxetine[/URL] paroxetine [URL=http://365pills.org/buy-without-prescription/buy-lamisil-online.htm]lamisil[/URL] lamisil

Add a comment

Impossible to fetch issues for this plugin.
Impossible to get this plugin changelog.

lrNewsPlugin, created on October 10, 2010 by tohms, used by 212 projects

Fork Diem on GitHub