found one more...
lisarex and I decided to split up http://drupal.org/node/632716 so this is for the field module (it involves 6 files!).
The last patch can be found at http://drupal.org/node/632716#comment-2285200
| Comment | File | Size | Author |
|---|---|---|---|
| #22 | 645802.patch | 4.41 KB | jhodgdon |
| #21 | 645802.patch | 4.41 KB | jhodgdon |
| #20 | 645802.patch | 4.41 KB | jhodgdon |
| #15 | fielduihelp.png | 23.99 KB | jhodgdon |
| #15 | filehelp.png | 24.81 KB | jhodgdon |
Comments
Comment #1
arianek commentedmanually cut this from the mondopatch
Comment #2
tobiasbComment #3
arianek commentedi don't think this is actually quite ready yet. needs more content.
Comment #4
jhodgdonWhat content do you think it needs?
Comment #5
jhodgdonIt does need capitalization attention though...
Comment #6
jhodgdonHere's a patch with more content and fixed caps.
Comment #7
arianek commented- changed around a bit of the sentence structures that were choppy.
- changed a bunch of "" to em
- added missing links array
- created stub page on d.o handbook for file module and linked to it (as per discussion with chx the other night, we should make handbook pages and link to them for any new core modules)
Comment #8
jhodgdonOne minor capitalization change.
Let's get this one in...
Comment #9
webchickHm. This feels over-the-top on developer-speak for the target audience for this page, and also makes file out of sync with list, text, etc. modules.
I would just fix this myself, but unfortunately, this patch no longer applies. So could someone please re-roll it and remove the bit about "The File module defines a managed_file Form API field (for Drupal module developers)"?
Comment #10
arianek commentedhere ya go!
Comment #11
webchickOk, I hate to interrupt the stream of green with one pink outlier, but in looking at this again prior to commit, I discovered that that the help text isn't overly helpful. :)
"The File module defines a File field type for the Field module"
Well.... yes. I could probably infer that by reading its title. ;) But what does it do?
There are a few interesting things about File module, esp. now that Upload module is obliterated:
1. It allows you to choose whether the files uploaded by the field go into the public or private file downloads folder (which might be a good place to explain that there is a public and private file downloads folder). It also allows you to specify a path within that folder to place all files uploaded with that field.
2. It allows you to add some basic validation: specify a list of allowed file extensions, as well as a maximum size.
3. You can choose whether files are listed directly on the page or not, and also give the user a choice on a per-file basis (for example, a PDF file might make sense to be listed at the bottom, where a thumbnail image linking to the PDF would not, since users wouldn't be downloading the thumbnail image, and you'd throw some HTML in the node body to format it the way you'd want).
Then there's also the question of how this fits with #645776: Help File Fixup: field. The trend there is for each field to basically have a sentence about it, and refer back to Field module for an explanation of how it works. So if this one goes bananas itemizing every last thing it can do, we should also do that for the others for completeness.
I initially tried to write a description for File module based on Number module in the other patch (since I really really didn't want to have to mark this down to code needs work on you...):
"The File module defines a file upload field for the Field module. File fields may be limited to a set of allowed file extensions, and configured to upload files to a specific location in either the private or public files directory."
Something like that might be sufficient, and it would match the rest of the fields. But if so, we should remove the "Uses" section here (or maybe remove it anyway, since it's describing generic stuff that's true of all fields).
So... Um... something needs to happen here. :) I'm not quite sure what. I kick it back to you, oh faithful docs team, for a decision.
Comment #12
jhodgdonI don't personally think it is a problem that some field modules can be explained in one or two sentences and some have more information. That is true of our module help in general: we document what we think is important to document, in the most concise manner possible, right? :) I'm not sure that the other field modules (except for image and taxonomy) are interesting enough to have more than one line about them. If they are, I agree we should put more in their help. Image and taxonomy already have more than one line, because they are interesting.
So here's a stab at a more complete explanation for the File module. Definitely could use a review.
Comment #13
webchickCurious.. this hunk:
Doesn't it seem like a generic version of that belongs in Field UI module (if it's not there already), rather than spelling it out here?
Other than that, this looks good to me! Though would love for Julia, Boris, or Lisa to take a look.
Comment #14
jhodgdonYou are right, we probably don't need to explain how to use the Field UI module here. Will re-patch.
Comment #15
jhodgdonOK... I added a link from Field UI help to Field help (which will be much better if that patch ever goes in), and fixed a typo in the Field UI help file generation (one of the t() parameters was missing @ in its definition). I do think Field UI explains well enough how to attach fields, or at least points you to the screens.
And took that bit out of the File module help.
Still needs a review.
Comment #16
arianek commentedon the file help "managing files location" use:
- i would say "...can be within EITHER the public or private files directory."
- instead of ", so anyone knowing the file URL..." --> ", so anyone who know the file URL..."
- "adds overhead" also is maybe a bit vague? not sure what would be better here... but what kind of overhead?
otherwise looks good
Comment #17
jhodgdon- I'm OK with "either".
- I'm OK with "anyone who knows the file URL..." [note: should be knows not know]
- Regarding overhead... what happens is that instead of the browser just sending a request for the file and getting it directly from Apache, a request is sent to a Drupal path, so Drupal has to load (with all its modules, includes, etc.), resolve the path, check permissions, read the file in, and then send it to Apache to send to the browser.
Comment #18
arianek commentedhmm... so maybe like "adds to the server load"?
Comment #19
jhodgdonBesides adding to the server load, the request will be slower for the user.
We should probably change the status while this is debated. :)
Comment #20
jhodgdonOK, here's a new version of the patch, with above comments (hopefully) addressed. The section on managing files is now:
Thoughts?
Comment #21
jhodgdonTypo: doc header should say "Implements hook_help()." not Implement.
Comment #22
jhodgdonGracious. Try this one. Sigh.
Comment #23
arianek commentedLooks good to me.
Comment #24
webchickCommitted to HEAD! Thanks!