Closed (fixed)
Project:
Simplenews
Version:
6.x-1.3
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
4 Aug 2010 at 01:25 UTC
Updated:
15 Aug 2011 at 18:51 UTC
Hello, i am new to coding and i have a problem for which i could not find an answer on the issues list. The default block of this module uses 3 pieces of information: one is your email and the other two are the options for subscribe and unsubscribe. I was wondering if there is a way of removing the radio buttons and just have a field for the email and a save or submit button. Is this too hard? Every site got those simple newsletter subscription forms i want one two! =)
Thanks for any support given and excuse my english,
Tiago
Comments
Comment #1
miro_dietikerBananoide
You will need a little programming experience in order to do this.
The magic is in drupal form_alter which will perfectly fit this task.
With a module containing about 10 lines of code this is possible.
We're currently a little working on form naming/presentation in 2.x... but we won't provide this functionality by simplenews itself.
Comment #3
okokokok commentedIt would be very useful to have these 10 lines of code readily available from here. :]
If I manage in the next 2 weeks before someone else leaves them I'll add them here.
And I actually think this (one field + submit button) is such a common use case that it could be good to consider adding this as an option to the module...
[I think there's a bug in d.o. After my comment this issue says: "Revision 1 by Kasper Souren on July 27, 2011 at 11:51pm" Weird.]
Comment #4
simon georges commentedCorrect me if I'm wrong, but I think the current subscription block has only the email field and the submit button now.
Comment #5
okokokok commentedCool!
I was still on 6.x-1.3, just upgraded to 6.x-2.0-alpha2 and it's nice now :)