Closed (fixed)
Project:
Simplenews
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
15 Apr 2012 at 18:42 UTC
Updated:
13 Mar 2015 at 21:34 UTC
Jump to comment: Most recent
Comments
Comment #1
Dragolin commentedsee also #1452502: Embed subscribe form in node / page
Comment #2
Dragolin commentedI solved it via a little detour, I rendered the block instead of the form directly:
Comment #3
berdirThe alternative would be to do what the our block implementation does, which is this:
Than invokes the preprocess function for that theme (http://api7.worldempire.ch/api/simplenews/simplenews.module/function/tem...), where we actually display the form:
Depending on what you exactly want to display, you can either use the form directly or go through the block/theme function. The latter will also display certain additional things if configured to do so.
It would be great if you could document this, go to the simplenews project page, click on documentation on the right side and then add a "How-To: Embed subscription block" child page. Explain those two options and the difference. Thanks!
I would recommend against placing php code in nodes (see http://drupal.stackexchange.com/questions/2509/what-are-the-downsides-of...) but that doesn't change the PHP code that you actually use.
Comment #5
stg11 commentedAny chance someone could give better instructions on how to do this? I tried #2 with different values in the 4th argument, tried #3 both examples with different $delta values. First ref link in #3 gets page not found. When I use any of the examples I get no subscription form generated on the page.
Since I am already using the subscription block in the sidebar, I can't also use it at content bottom, and the multi-subscribe block is not ideally suited for my purpose which I am using in content bottom right now.
Is $delta in #3 the block id or the relative newsletter number or ?
Comment #6
stg11 commented(reactivating issue)
Comment #7
miro_dietikerClosing old support requests.