Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
As suggested here: http://drupal.org/node/1843404#comment-7136780 I would very much like to be able to have a email friendly panels layout for simplenews.
This way I can make with simplenews a nice newsletter with different nodes/entities on different panel-panes with a great layout-system.
Thanks a lot in advance for considering this!
Greetings, Martijn
Comment | File | Size | Author |
---|---|---|---|
#13 | 1933822-13-add_email_friendly_panels_layouts.patch | 25.43 KB | andrewbelcher |
#13 | simplenews-1933822-13.zip | 180.98 KB | andrewbelcher |
#8 | 1933822-8-add_email_friendly_panels_layouts.patch | 24.9 KB | andrewbelcher |
Comments
Comment #1
andrewbelcher CreditAttribution: andrewbelcher commentedCool, I'm happy to build the layouts, the two questions are:
1) What layouts do we want, i.e. one col, two col etc. @Summit, would you be up for putting a starting list together for this?
2) @berdir: are you happy for this to go into simplenews? As it all works off of ctools_plugins, it doesn't add any load weight to simplenews, just a few more files. Alternatively this could go in a separate module if you don't want it in simplenews, in which case I'll create a sandbox for it and move this issue there!
Comment #2
BerdirSounds like a useful feature to me.
Comment #3
andrewbelcher CreditAttribution: andrewbelcher commentedExcellent, once Summit has put together a started list I'll start getting some patches together for it!
Comment #4
Summit CreditAttribution: Summit commentedHi,
Wouldn't it be great for starting to mimic the standard panels layouts (with exception of the flexible):
http://weboxy.files.wordpress.com/2010/12/drupal-panels1.gif
and may be adding some of the http://drupal.org/project/panels_extra_layouts layouts?
With this the newsletter can exactly look as a webpage of the site using panels!
Greetings,
Martijn
Comment #5
Summit CreditAttribution: Summit commentedHi,
Is this information ok for a starting list as asked for?
Greetings, Martijn
Comment #6
andrewbelcher CreditAttribution: andrewbelcher commentedSorry, yes, it is. I haven't found the time to do it yet. A client will need it fairly soon, but they have other priorities at this moment in time. So they will come but it may be a couple weeks...
Comment #7
BerdirMy suggestion would be to start with a single template to show how it works. Someone less experienced could then easily add additional ones.
Comment #8
andrewbelcher CreditAttribution: andrewbelcher commentedHere is a patch which introduces all of the panels layouts in email friendly tables!
Due to the flexible layout builder not being using tables I've made the layouts a little bit more flexible... All the sidebars in the three column layouts will automatically collapse with the middle region expanding. Also, the two col bricked layout will hide sections that are empty.
I hope the patch has generated properly, had to google how to deal with binary files in a patch but it applies cleanly for me, so I think it's ok!
Comment #9
andrewbelcher CreditAttribution: andrewbelcher commentedForgot to change the status...
Comment #10
BerdirThe implementation of docblock isn't necessary I think, this is not a function/hook. The comment below should have a . at the end (same for the other plugins).
Happy to commit this after someone tests them and can confirm that it works.
Comment #11
Summit CreditAttribution: Summit commentedHi, I can't get the patch to work, my mistakes with manually testing, can you maybe add a winzip with this patch in? Then I can test coming week.
Otherwise, somebody else has to do it.
Thanks.
Greetings, Martijn
Comment #12
andrewbelcher CreditAttribution: andrewbelcher commentedBerdir - The comments were copy pasted from Panels... But I'll tidy them up and put up another patch!
Comment #13
andrewbelcher CreditAttribution: andrewbelcher commentedBerdir - here is an update patch. I've ditched commenting the
$plugin
itself and opted for an@file
comment which I think makes more sense.Summit - I've added a zip of the entire module but if there were issues with the patch applying we probably need to resolve them, what went wrong?
Comment #15
andrewbelcher CreditAttribution: andrewbelcher commentedOk, I'm not sure how my patch caused that test to fail... I don't touch anything in the administration, gonna try re-testing to see if it was a freak!
Comment #16
andrewbelcher CreditAttribution: andrewbelcher commented#13: 1933822-13-add_email_friendly_panels_layouts.patch queued for re-testing.
Comment #17
Summit CreditAttribution: Summit commentedHi @Andrewbelcher, I do not have patching tools thats why I asked the zip, the patch seemed a lot of copy-pasting otherwise.
Thanks for sharing it, and I will see if I can test it.
greetings, Martijn
Comment #18
Summit CreditAttribution: Summit commentedHi,
I think somewhere here must be the answer: http://drupal.org/node/1843404#comment-6936804 but how can I test simplenews using panels-layout for newsletter please? Can you explain on which /admin pages I have to do what?
Thanks a lot in advance for your reply!
greetings, Martijn
Comment #19
andrewbelcher CreditAttribution: andrewbelcher commentedSummit - you need Panelizer (7.x-3.x) and you can the 'panelize' the newsletter content type's html email view mode allowing you to use panels to lay out your email.
Comment #20
rlmumfordLooks good from a code point of view
Comment #21
Summit CreditAttribution: Summit commentedI got
while installing the zipped module. First I had to remove simplenews_newsletter_old because of this report:
Edit: because I am just experiementing with simplenews, I disabled the whole suite of simplenews modules and enabled them again. Now no errors anymore.
Somehow something with simplenews_newsletter_old is not going right I think.
Greetings, Martijn
Comment #22
Summit CreditAttribution: Summit commentedHi,
because I am just experiementing with simplenews, I disabled the whole suite of simplenews modules and enabled them again. Now no errors anymore.
@Andrewbelcher. I am on admin/config/content/panelizer
1) I enabled Simplenews Newsletter for panelizer
2) I enabled Email: HTML for panelizer. Enabled everything on the row so I got "Save to access panel list"
3) I clicked save
After this the options to enable panelizer where not shown anymore for email, only
Full page override
Standaard
Teaser
How to proceed to see the html email view mode please? I didn't see a viewmode under admin/config/system/htmlmail
Thanks a lot in advance for helping me.
Greetings, Martijn
Comment #23
Summit CreditAttribution: Summit commentedHi,
4) I had to go to the simplenews contenttype and on admin/structure/types/manage/simplenews/display
Add as adjusted display Email: HTML
After this on admin/config/content/panelizer I saw Email: HTML arising.
But How to get different nodes now on different panel-pane places, so that on the newspaper email it looks like a panel page with the content orderly?
Please advise.
Thanks a lot in advance.
greetings, Martijn
Comment #24
andrewbelcher CreditAttribution: andrewbelcher commentedSummit, I think it looks like your questions are more support requests for using panelizer and simplenews together. Would you mind starting a new issue for it so we can try and keep this one clean for the layout patch?
Comment #25
Summit CreditAttribution: Summit commentedHi,
Yes I thought so already, will start new issue, thanks for suggestion.
EDIT: made this issue: http://drupal.org/node/1953744
greetings, Martijn
Comment #26
rlmumfordInstalled and tested and everything seems to work :)
Comment #28
rlmumfordAny chance of this being committed? It's been RTBC for a year.
Comment #29
endemic CreditAttribution: endemic commented@rlmumford. You can easily use the power of a panel by using a panel node (content type panel node) and a node reference to this panel node inside your simplenews content type.
By using this technique you can create complex newsletter containing nodes, blocks or views displays.
Comment #30
yanniboi CreditAttribution: yanniboi at FreelyGive commentedTo reiterate what @rlmumford said, any chance of getting this committed?