Closed (fixed)
Project:
Webform
Version:
4.7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
22 Oct 2006 at 23:16 UTC
Updated:
27 Jun 2007 at 01:47 UTC
I've just been through a fairly painful process of theming a particular webform, and I have some suggestions that would make this easier. Note that I'm primarily focussed on CSS layout, but some of these ideas would also apply to table usage.
#my_form_id div.form-item {
blah: bleep;
}
Comments
Comment #1
davemybes commentedIts funny that you should ask for the CSS styling IDs, as I did exactly the same thing a little while back. I agree that they would make life much easier, but I don't think they are going to be done anytime soon. Quicksketch is the person doing most of the updates to this module and is pretty overworked these days I believe. He has made huge advances in making styling easier - you should have seen the code 2 months ago!
I might take a look at the code myself to see where the IDs you (and I) want can be inserted, but my time is also pretty tight these days, so no promises. Also I'm still a learning my way through the more complex PHP coding.
Comment #2
quicksketchThanks to bmargulies for the suggestions and incrn8 for the nice followup.
incrn8 is correct that I don't have much time to put into webform at the moment. I still greatly appreciate contributed patches whenever possible. It's easy to make the demand of someone else to do the work, but when someone puts forward a patch I know that they're serious about getting the problem fixed. So, let's see those patches!
Comment #3
davemybes commentedI just spent a while looking through the code to see where I could insert prefix and suffix codes, but I'm afraid its simply too complicated for me at the moment. I have written a module or two for some projects, but this is a whole new level.
@quicksketch, if you could maybe tell me in what function the css id's are added, it might help me focus a bit.
I guess there will be at least two functions that need modification - one to add the entry fields for prefix and suffix, and another to create them for when the form is displayed. Oh, yes, probably they would need to be added to the database too, so the insert and update functions would need some changes. Hmmm, I can see that this kind of change would be a pretty big job in the end. You know, maybe I'll just stick to themeing the form after its done :)
Anyway, I'll keep going over the code when I have time and maybe I'll be able to get something done. But for the forseeable future, I'm afraid that I won't be putting out any patches.
Comment #4
bmargulies commentedTwo of my favorite missing IDs would be a trivial patch. Do you take patches from the 4.7.0 distro, or is 'cvs' substantially different?
Comment #5
bmargulies commentedAlso, what do you make of:
a problem with base form theming as a related item?
Comment #6
quicksketchThe cvs and 4.7 branches are slightly different (cvs version has the additional post processing and validation). If you create a patch for 4.7, it should apply to both branches without a problem. Thanks!
Comment #7
quicksketchAll these suggestions have been implemented in the 5.x version and the 4.7.x is no longer being supported.
Comment #8
(not verified) commented