Ok, I am moving my original question and the answer here in order not to continue off top in another thread.
dmitry70: Hello, I hope you don't mind me posting here, because what I am trying to do is mentioned in this thread as well. I am trying to change the layout of the submitted form or find a way to display the information submitted in the form in the format I specify. So, for example, a picture, which is submitted as an attached file in a form will be displayed in the left top corner of the page and other fields are not just positioned one behind the other, but make it to the title, content, footer, etc. of the page. So far I played with form css, but it doesn't do what I want. I also want to display text within the textfields of the form not as text fields, but as text positioned in some particular place on the page. Any help would be very much appreciated.
marcvangend: The topic here is not styling the submitted content, but styling the submission form. Those are two different things. So: your question is a little off-topic in the context of this thread... but I'll answer anyway.
In fact the answer to your problem is quite simple: you need the contemplate module. (http://drupal.org/project/contemplate) This module allows you to use all variables available in a node and mix them with html (and php if you need it) to create exactly the output you need.
dmitry70: I've tried your advice and it did exactly the opposite to what I wanted to achieve. The output information is still in the same format for each of the already submitted forms, but the submission form is now modified to follow the template. I actually wanted it way around, the submission webform format is fine, but once submitted I would preffer to have the submitted data displayed in the format I want. The submission page should stay as it was originally. Thanks anyway for pointing to contemplate, if not for this purpose, I might be able to use it in a future.
Comments
Please see
Please see this:
http://api.drupal.org/api/file/developer/topics/forms_api.html/6
----------------------------------------------------------------------
http://music.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
Thanks
Thank you, I'll have a look and post the findings.
Thanks for creating a new
Thanks for creating a new topic. (It started at http://drupal.org/node/304272#comment-997599, if anyone's interested.)
Just to make sure that we're talking about the same thing here: you used the word "webform" but you're not using the webform module, are you? Contemplate is meant to create templates for nodes of a certain content type. Contemplate does not affect the node submission form (like http://drupal.org/node/add/forum) but is does change the way the submitted form values are displayed on the node page (like node/142).
Yes, indeed I've used webforms
I've used webform module and then I've created a contemplate for webform content type. Hmm, what it did- it affected the form submission type. Could it be because I've used webform module? At the same type contemplate didn't affect the way the submitted values are displayed like node/42/submission/1.
Aaahh.... Well that explains
Aaahh.... Well that explains a lot. When you view a regular node, it shows its content to the user. In case of a webform node, the submission form is the content. The webform submission is like an instance of that node. Webform's module page itself says:
So, if the presentation of submissions is important for you, maybe webform is not the best module for you.
Let's try Flexinode then!
Ok, I see now, what the problem was. I'll try Flexinode and post here what the result of it was. Thanks!
Make that CCK...
Make that CCK...
CCK is the successor of flexinode - flexinode was abandoned when Drupal 5 was first released.
CKK it is going to be...
Ok, I think I'll need to find the part of CKK, which deals with this particular issue as CKK itself is big...
Maybe, if you tell us what
Maybe, if you tell us what you want to do in more detail, we can help you find it :-)
Description...
I am trying to create a form, which will accept the information, with all necessary attributes of the form: mandatory fields, checkboxes, etc. That information then needs to be displayed in some way to the visitors of the side as separate page, which has a friendly user format, which helps users to read and understand the information provided. Then, it should be possible to provide comments to this article. So, basically, the article is something similar to the product description on this site: www.reevoo.com with potentially a scoring system for each of the articles as wel. But first of all, I need to collect the information and present it in the certain way to visitors of the website.
This module allows you to
This module allows you to display the contents of the form from which you gather data:
http://drupal.org/project/webform_report
For comments, have a look at the node comment module; I am not sure, but it might allow for interaction with the webform and/or the webform report.
----------------------------------------------------------------------
http://music.bwv810.com
http://davidhertzberg.com
I am a writer, researcher and solo drupal freelancer.
OK, so your form will be
OK, so your form will be used to add content to the site. In that case, it's definately the best option to allow users to create nodes (instead of webform submissions).
I'll describe quickly what you need to do:
- enable the comment module (in core)
- install and enable CCK (http://drupal.org/project/cck) (maybe you will need some more field types, you can download them separately)
- install and enable Contemplate (http://drupal.org/project/contemplate)
- create a new content type (enable comments for this content type)
- using CCK, add all fields you need to the content type
- create a couple of test nodes
- use contemplate and/or template files to style the appearance of the node page
- configure user permissions, so the appropriate roles have the right to create new nodes
If you have any questions, ask!
By the way, if you want an admin to approve new content, install a workflow module.