Needs Updating

Permissions in pollfield

Last modified: November 5, 2009 - 20:56

Permissions inherited from CCK

Pollfield module inherits a very rich set of permissions from CCK module. You can set those permissions in admin/user/permissions menu. Every field created in CCK module can be edited and viewed. Through this framework you can set how every user role will behave in accessing at each CCK field. For example some roles can only view a field but are not allowed to edit it. On the other hand some roles can both edit and view a certain field. You control the permissions by ckecking the check box which belongs to the desired field.

Permissions in Pollfield field

Global permission view results

Pollfield has only one permission which strictly belongs to pollfield. It is view results. This permission determines who can see results of a poll and who can not. Each field has its own permission. Basically, there is a list of all CCK fields where user can choose which poll results can be seen by each user role defined in Drupal.
Global permission effects all polls which have the same field type (for example field_poll).

Local permission view results

Create content type with poll

Last modified: October 28, 2009 - 14:48

HowTo: Create and use a poll content type build with pollfield

Pollfield usually is used to provide polls as part of nodes. But you can also use it to create a generic poll content type similar to those provided by the core poll module, Advanced poll or Decisions. So if you do not need a certain unique feature of those modules you are fine using pollfield module alone.

A. Creating a new content type
Make sure you installed and enabled pollfield module correctly before you try to do the following.

  1. Go to Administer->Content Management -> Content types -> Add Content type (system path: admin/content/types/add)
  2. Enter a name: Poll
  3. And a type: poll
  4. Submission form settings -> change "Title" field label to “Question”
  5. If you like, you can also change the label of the body field
  6. The other settings can be left as they are
  7. Save!
  8. On the next screen (system path: admin/content/types) locate the Poll content type and click on its edit link.
  9. Adding the actual pollfield: Locate the “Add” area to find “New field” -> Label: Poll, fieldname: poll, field type: pollfield, widget: leave as is-> SAVE

Trouble shooting node_gallery

Last modified: October 28, 2009 - 06:52

6.x-2.0-alpha10; Issues that have been brought up in the node_gallery issue que. Some of the fixes listed may not fix your trouble, but then again, it may very well be worth the time to try. If you have had some problem and found an answer that will help people, please add it to this page.

Back to top

Basic Drupal troubleshooting

What did you do, what were your last steps. Something is causing the trouble. A good place to have a look, Troubleshooting-FAQ and How to troubleshoot Drupal.

Make sure that JOIN columns both carry indexes of the same type

Last modified: August 26, 2009 - 13:00

Running a JOIN on two columns of different types may force a sequential scan.

Example:

SELECT *
FROM foo
INNER JOIN bar ON foo.a = bar.b

If foo.a and bar.b are not of same type, the query planner will need to cast the data of each foo.a and bar.b entry. This happens using any database, incuding MySQL and PostgreSQL.

Even if the cast happens on memory only, it will consume CPU time, at least one cycle per row and hence will be very slow. On very large tables, this should be avoided.

More examples soon.

Design and Development

Last modified: August 19, 2009 - 17:24
Syndicate content
 
 

Drupal is a registered trademark of Dries Buytaert.