Comments

Anticosti’s picture

Need this badly.
Subscribing...

dtrdewaele’s picture

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

tcarter’s picture

subscribing

kardave’s picture

A must have. Subscribing.

midmood’s picture

subscribing

webankit’s picture

+1

ngstigator’s picture

Subscribing

hellosct1’s picture

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

dtrdewaele’s picture

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

cesareaugusto’s picture

subcribe :)

dan_metille’s picture

subcribe

aristeides’s picture

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

aristeides’s picture

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

Changing the title for dashboard clarity...

tommychris’s picture

subscribe

vincent ramond’s picture

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

jurgenr’s picture

Subscribing.

dtrdewaele’s picture

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!

Miyukaze’s picture

Subscribing.

pjcard’s picture

subscribing

JoachimF’s picture

Essential! Subscribing.

JonasK’s picture

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

damiandab’s picture

subscribing

fedik’s picture

sbscr :)

fedik’s picture

StatusFileSize
new13.69 KB

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

fedik’s picture

StatusFileSize
new11.48 KB

small updates

khumbu’s picture

subscribing

jorisx’s picture

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 :-)

chicodasilva’s picture

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

fedik’s picture

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

fedik’s picture

StatusFileSize
new11.34 KB

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

khumbu’s picture

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

tugis’s picture

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.

zorax’s picture

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!

tugis’s picture

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.

dtrdewaele’s picture

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

meelis11’s picture

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

zorax’s picture

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,

jorisx’s picture

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

rkoonts’s picture

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?

tugis’s picture

@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.

darrenmothersele’s picture

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.

bambash’s picture

@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!

Anticosti’s picture

@ 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,

clkeenan’s picture

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

jorisx’s picture

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

khumbu’s picture

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.

chicodasilva’s picture

comment #41

What version of simplenews have you used?

Freakachoo’s picture

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.

Anticosti’s picture

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

Cheers,

highfellow’s picture

Subscribing.

rhcp’s picture

Assigned: Unassigned » rhcp
Category: task » bug

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
khumbu’s picture

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...

rhcp’s picture

on a server: window server 2008 r2 datacenter

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

khumbu’s picture

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

fedik’s picture

guess it because a windows ;)

rhcp’s picture

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

gaele’s picture

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.

rhcp’s picture

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.

gaele’s picture

Assigned: rhcp » Unassigned
Category: bug » task

@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.

trackleft’s picture

gaele’s picture

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

jorisx’s picture

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

midmood’s picture

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?

gaele’s picture

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).

rahiml’s picture

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.

sgurlt’s picture

Hey there,

I tried "simplenews_content_selection-7.x-1.x-dev.tar_.gz", but it wont work for me. I am working with simplnews 7.x-1.0-rc1 and all I get after selecting a content on the "create newsletter" page and click next is a blank page.
I checked the drupal protocol, but no error message to find there :/

Any idea about that?

fedik’s picture

looks like you got a some "fatal error" .. but server configured for hide all error outputs, so you got only the blank page

sgurlt’s picture

Hmm, not even the apache log shows any errors :/

Got any idea what i have to configure to recieve the error messages?

erni bert’s picture

Did you find out? I am having the same problem and don't know how to enable error output.
...never mind -> I followed instructions here and found it allright.

sgurlt’s picture

Not right now, but thanks for that awesome link :)

sgurlt’s picture

Not right now, but thanks for that awesome link :)

amontero’s picture

How about a -dev release for downloading from the project page?
This would allow people unfamiliar with git to help test it.

amontero’s picture

...and also file separate issues against 7.x branch.
Be it a direct port on a 7.x-1.x branch or a feature packaged maybe in 7.x-2.x, this would allow to close this issue and hopefully get to a stable release sooner. I could not submit a patch against an open issue affecting 7.x :(

jorisx’s picture

regarding #66:
Simplenews_content_selection-7.x-1.x-dev.tar only works with simplenews-7.x-1.0-alpha1.tar
The rc release or even the alpha2 will break scs (for me..)

I really hope there is a real 7 version dev release here soon.
Keep up the good work :)

J!

SebCorbin’s picture

Requested co-maintainership at #1813284: Maintainership for branch 7.x-1.x to speed up things and create an alpha release (this would be also useful to translate the module in D7).

Wait & See

rob c’s picture

I am using this for content selection: http://drupal.org/node/1492498
It does require a patch for inline entity form available here, but once patched, the whole package seems to offer the same functionality this module seems to ... and more. Thought you all might wanted to know this.

gaele’s picture

the whole package seems to offer the same functionality this module seems to ... and more.

Not quite. SCS copies the content of the selected nodes into the newsletter body the moment the newsletter issue is created. Changes to the selected nodes after this moment won't show up in the newsletter. Besides it would be possible to change the newsletter body before sending.

Using the combination of modules in the page you are referring to the selected nodes will be added to the newsletter the moment you click "send".

I have no idea if this slight difference matters in practice though.

rob c’s picture

@gaele

You can edit the message before sending, it won't send it before you click the send button, so you can always add more nodes to the message and edit the body before you send it.

It's true it won't add them when clicking on send, it does it before sending.

And it's also true it does not add them to the body, it adds them to the referenced field. (this is something i'm kinda working on right now, cause placing the referenced items in the body (maybe with a button) would really finish it i guess.)

I didn't know this module really copies the content and that you can edit the original nodes without those changes showing up in the body, interesting option to maybe add to that page.

"I have no idea if this slight difference matters in practice though."
It might, good point, if people just want to add existing nodes this works, but if people want to tweak / modify nodes, they have to edit the nodes now, and those changes also show up on the site.

Maybe this all can help, thanks for the information!

SebCorbin’s picture

Status: Active » Fixed

Thank both of you for these info, I'm flagging this as fixed as the D7 port is out.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.