Download & Extend

Simplenews Content Selection D7 Port?

Project:Simplenews Content Selection
Version:6.x-2.x-dev
Component:Code
Category:task
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Is it too soon to check if a D7 version is on the way?

Thanks in advance,

Comments

#1

Need this badly.
Subscribing...

#2

Hi,

Not to soon, but I'm trying to find time to do this. Very busy with other projects for the moment, so D7 release will be delayed a little.

Regards

#3

subscribing

#4

A must have. Subscribing.

#5

subscribing

#6

+1

#7

Subscribing

#8

I am currently on a project that needs this module
is what has already been started, where I can lean on me for the code?

Christophe

#9

D7 ported is started this weekend. So I'm working on this, code will appear soon.

#10

subcribe :)

#11

subcribe

#12

subscribing.... I LOVE THIS MODULE!!!

#13

Title:D7 Port?» Simplenews Content Selection D7 Port?

Changing the title for dashboard clarity...

#14

subscribe

#15

Suscribe also!
Is there any roadmap on this branch?
regards

#16

Subscribing.

#17

OK. I've been waiting too long to work on this.
Starting from now I work on this every week and make sure that we have development branch during July!

#18

Subscribing.

#19

subscribing

#20

Essential! Subscribing.

#21

I really need this for D7! Thanks for working on it!!!

#22

subscribing

#23

sbscr :)

#24

okay, I made base porting for me :)
simplenews_content_selection_views - not ported
check attached file

AttachmentSize
simplenews_content_selection_Drupal7.zip 13.69 KB

#25

small updates

AttachmentSize
simplenews_content_selection_Drupal7-v2.zip 11.48 KB

#26

subscribing

#27

very nice! and love seeing a 7 version
For now I'm going to test http://drupal.org/files/issues/simplenews_content_selection_Drupal7-v2.zip

Love Drupal :-)

#28

I've tested this #25 but it did not work for me. Do I need any special configuration?

#29

ah, forgot wrote ... it bad work on sites with non English language ... I cannot find good solution

#30

hm, I tried set language as "Language neutral" ("und")
now looks better but not perfect ..

AttachmentSize
simplenews_content_selection_Drupal7-v3.zip 11.34 KB

#31

Make sure url language switcher (if you use multilanguage support) is off to work with simplenews....i got it to work that way....

#32

Based on the code of fedik, I created a new version of "Simplenews Content Selection" for Drupal 7 with some code refactoring, UI changes and new features:

  • Choose which content types to include in newsletter content
  • Edit a view mode "Newsletter" for nodes display in newsletters
  • Simplified interface to create the content of a newsletter
  • Option to choose order of content types in newsletters and order nodes per content type
  • Nodes grouped by content type in the newsletter output

Please check the README.txt file for instructions.

AttachmentSize
simplenews_content_selection-7.x-1.x-dev.tar_.gz 11.06 KB

#33

Hi,
Thanks for the D7 version.
Just a question : when you select the nodes for the newsletter you don't use ajax form.
So you can not select a node on page 1 and a node on page 3, it's a problem isn't it?
in scs.pages.inc, in line 199 : $form['pager'] = array('#markup' => theme('pager'));
return $form;
How can I modified the component to have a list without pager or a ajax pager.
Thanks!

#34

I understand your point. The current listing doesn't allow you to choose content from different pages to the newsletter. One possible easy workaround is too increase the number of items per page (currently is set to 50).

$nids = $query
                  ->fields('n', array('nid'))
                  ->limit(50)
                  ->orderByHeader($header)
                  ->execute()
                  ->fetchCol();
  $nodes = node_load_multiple($nids);

A more elaborated solution might be to store somewhere, the nodes that you select from a page, when navigating between pages.

#35

Ok, back to the living people and on this module.

First off all, thanks for the D7 port of the D6 version. It's great that people also work on this module to get stuff done when I'm not available.
Actually I'm working for days now on a "new" D7 version.

I'll commit the current D7 version as a 7.x-1.x-dev branch
My version will be committed as the D7 7.x-2.x-dev branch.

The new version has one big change and that's a templating system. I'll commit the first version this weekend.

Thx again for the hard work!

Regards

Dieter

#36

Hi,
where can I view these branches? Im new here and did not find it. Did you committed D7 branch or maybe its not there yet?

Right now I will try file from post #32

Meelis

#37

Hi,
I try to customize the file scs.theme.inc
sorry for my little coding level...
I need to rebuild the title link so here is the function I try to modify :

function theme_scs_nodes_output($variables) {

  // order node by type
  foreach ($variables['builds'] as $key => &$entry) {
    $grouped_nodes[$entry['#bundle']][$key] = $entry;
  }

  $output = '';
  $output = '<div id="newsletter-nodes">';
  foreach ($variables['types_order'] as $type) {
    if (!empty($grouped_nodes[$type])) {
      $output .= '<h3>' . node_type_get_name($type) . 's</h3>';
 
      foreach ($grouped_nodes[$type] as $node) {
         $output .= $node[title'];//<----------------------------what is the way to get the title of the node!!!!
        //$output .= drupal_render($node);
      }
    }
  }
  $output .= '</div>';
  return $output;
}

$output .= $node[title'] doesn't return anything, as I'm in a function with two "each.."i'm missing the number of the array I presume...
Regards,

#38

Where is the real D7 branch ? I've tested simplenews_content_selection-7.x-1.x-dev.tar
works very well :-)

because the list of sellectable nodes will be huge on my site there is a need to be able to browse trough pages with the nodes and select multiple nodes from different pages. (if I select 3 nodes on page one and then 2 on the second, only the 2 on the second will be propagated to the newsletter..)

Regards, Joris

#39

Trying to get the simplenews_content_selection-7.x-1.x-dev.tar to work. Keeps failing with an error report of

[13-Dec-2011 15:48:23] PHP Fatal error: Call to undefined function simplenews_get_categories() in /Applications/MAMP/htdocs/archives/sites/all/modules/simplenews_content_selection/scs.pages.inc on line 46

Any ideas?

#40

@rkoonts simplenews_get_categories() is a function of the "Simplenews" module (required by Simplenews Content Selection).
Make sure you are using the latest version of Simplenews.

#41

A Drupal 7 port of this module is not actually required. You can create content selection functionality using Rules and Views Bulk Operations. I've got this working on a couple of sites and the site managers are very happy with it. I don't have time to explain in detail now, but I could give more details if anyone's interested. The basic steps to get it working are as follows:

  1. Create a Rule component that takes a list of entities as a parameter. In the configuration of this Rule, add Actions to (1) create a new entity of type Newsletter, and (2) append the body (or whatever fields) from the list of entities to the body of the newsletter, then save the newsletter.
  2. Create a VBO to list recent content on the site, restrict access to this by whatever editorial role is applicable.
  3. Add the Rule component as the action of the VBO, give it a label like "generate newsletter".

Editors can now go to the VBO, tick off the content to include and click the "generate newsletter" button.

#42

@rkoonts simplenews_get_categories() is a function of the "Simplenews" module (required by Simplenews Content Selection).
Make sure you are using the latest version of Simplenews.

hi!
the Drupal Reference says: simplenews_get_categories() is on simplenews.module, line 2265

but i can't find this function on any file of the entire module... what i wrong?

i tried in the 7.x-1.0-alpha2 version (2011-Dec-24) and 7.x-1.x-dev (2011-Dec-31)

thank you!

#43

@ darrenmothersele (comment #41):
Thanks for your explanations. Much appreciated.
My VBO is 99% created. The action is not yet. :-(
Feel like I'm almost there... Wish you could share a little more info? ;-)

Kind Regards,

#44

Subscribing for either an official D7 port or more info on VBO/actions setup

#45

I love the simplicity of Simplenews Content Selection and it works for me:

simplenews_content_selection-7.x-1.x-dev.tar & simplenews-7.x-1.0-alpha1.tar works great!

But errors with the latest simplenews release
simplenews_content_selection-7.x-1.x-dev.tar & simplenews-7.x-1.0-alpha2.tar breaks this....
and I'll get the error:: Fatal error: Call to undefined function simplenews_get_categories() in simplenews_content_selection/scs.pages.inc

#46

same problem as Jorisx....any ideas.......

edit:

i can confirm that it only works with simplenews_content_selection-7.x-1.x-dev.tar & simplenews-7.x-1.0-alpha1.tar

also tested the simplenews_content_selection-7.x-1.x-dev.tar and the simplenews7.x-1.0-beta1 doesn't work either.

#47

comment #41

What version of simplenews have you used?

#48

Try to use simplenews_category_list() instead of simplenews_get_categories()
File: scs.pages.inc
row: 35
In code:

  
$form['newsletter_term'] = array(
   '#type' => 'radios',
   '#title' => t('Newsletter category'),
   '#required' => true,
   '#options' => simplenews_get_categories(),  <<<<<------- change to simplenews_category_list()
   //'#default_value'=>array(),
);

Looks like it works.

#49

#48 Works for me! :)
Thanks Freakachoo !!!!

Cheers,

#50

Subscribing.

#51

Category:task» bug report
Assigned to:Anonymous» rhcp

Hello, I have a bug with content selection simplenews.

When I choose "create newsletter" in content, I have a 500 error.

Can you tell me how to correct the error.

I am drupal 7.

Here is the error

Erreur 500

Module FastCgiModule
Notification ExecuteRequestHandler
Gestionnaire PHP53_via_FastCGI1
Code d'erreur 0x00000000

URL : admin/content/scs_sort_nodes&scs_nodes=2

#52

what kind of setup are you using (hosting service, local etc...)

Don't want to be impolite but type in the search box of this site - FastCgiModule error 500 - and start reading,...

if you find your solution don't forget to post it...

#53

on a server: window server 2008 r2 datacenter

No solution.
A reboot of the server and I have no error

#54

good to hear the error is gone....any idea why it is gone?

#55

guess it because a windows ;)

#56

hello!

I noticed that when creating a newsletter with articles.
There is no connection between the newsletter and article.
So if I edit an article. The newsletter is not updated.

If there are images, they quickly swelled the database because the images are duplicates.

Are there solutions to the two "problem".?

Thank you in advance

#57

Regarding your first problem: I guess this is "by design".
The content of the articles is copied to the newsletter, at the moment of creation of the newsletter. After that moment the relation between articles and newsletter is gone. You could independently edit both the articles and the newsletter content.

#58

Hello, I saw that there was a module "simplenews templates" but in version 6.

Is that there is one for version 7?
Or something that does the same job!

And devellopement level, I want to remove the "submitted" and "add comment". When I created a newsletter?
Is that possible?

Thank you for your help. I discover. I look great and appreciate some help in person confirmed.

#59

Category:bug report» task
Assigned to:rhcp» Anonymous

@rhcp: This issue is about creating a D7 version for Simplenews Content Selection.
If you have a question about Simplenews Template please create an issue in the issue queue for that module.
For any development related questions please create a new support request.

#60

#61

Based on #41 and with help from trackleft I documented a way to create a newsletter using entity reference, rules and VBO: http://drupal.org/node/1492498

#62

An official D7 port would be very nice..
I'm using simplenews_content_selection-7.x-1.x-dev.tar & simplenews-7.x-1.0-alpha1.tar which works very well

#63

regarding #41 and #61.
I tried the recipe and it works perfectly, but I think the entityreference field is enough (without creating the rule and VBO view) unless you want to control autosend options

Once created the entityreference field in the newsletter content type and select "checkbox list" as the field's widget, you already can attach articles to the newsletter. Furthermore you can write an intro text on top of the list (the body of the newsletter content type) and you can manage the creation of the newsletter through the same process of the other content types (instead of going to another page)

The real problem I face is: how can I control the appearence of the articles I attach?

1. OK select the article to show in the newsletter via entityreference field
2. UNRESOLVED: use a view to control which fields to display from the articles I attach

Does anyone has a solution for 2?

#64

Yes, just using entityreference and a checkbox list is even simpler. However, once the amount of articles grows this may become difficult to use.

Regarding 2: this is controlled by a view mode, not by a view. At the "manage display" tab of the Simplenews newsletter you choose a view mode for the rendered articles, e.g. "Teaser". Now go to the "manage display" tab of the Article, subtab "Teaser". There you can choose which fields to display, and how.

An alternative would be to customize the "Email: HTML" view mode of the Article, and use that one. Or create a new view mode (but that would involve writing PHP).

#65

regarding #61, is it related to D7? I am not able to configure or find certain fields and also not able to import the component. version 7.12

regarding #63, your idea of entityreference worked perfectly and by using module "Entity Reference View Widget" gave some sexy look. But I agree with gaele that, once the number of nodes increase it will be hard to manage it.

nobody click here