Fields are custom data that can be attached to Drupal entities.
1
vote
1answer
19 views
How to handle large select lists in content types?
I need to add a city field for a content type in D7. I'm getting it from a federal census table and it's going to be around 35K+ records. Any thoughts on filtering this list down by state and/or ...
1
vote
1answer
22 views
Custom template for content type, How to print a link field as a hyperlinked image
I am making a site for a music festival. I have one content type for attending artists, which includes the following fields of the fields type Link: soundcloud, youtube etc.
I would like to print ...
1
vote
0answers
23 views
hide a field using custom php in rules
Drupal 6 only: I have a button field on a petition node for users to sign that petition. I have custom php in a rule to check if they've signed it before. If they have, I need to hide the button.
So ...
0
votes
1answer
13 views
Forms api validate float
when using the Drupal FAPI and needing a float number field you have to use type textfield. What's the best way to validate that this data is a float during hook_form_validate9)? Is there a built in ...
1
vote
1answer
38 views
Creating programatically a node that has a programtically created image field that should stay empty
I'm dealing building several modules that should cope with automatic creation of content synchronized with external sources.
The whole process is automatized, e.g. everything had been created ...
2
votes
1answer
37 views
How do I programmatically change the body text format on the page content type to full HTML?
I have a custom install profile and I must programmatically change the body text format on the page content type to full HTML. However, I didn't manage to find how to do it.
How can I do it?
0
votes
2answers
45 views
Creating complex tables in views in Drupal 7
I was trying to make a report via views in Drupal 7. It's quite easy to generate a table with the headers being the labels of the fields, like the following (being very straightforward):
...
1
vote
2answers
40 views
Make drupal cck field behave as “an add more button”?
Is it a way to make a Drupal 7 entity field behave as 'an add more button', but with finite number of values?
For example, initially there is only one form field for inputting the value showing, then ...
0
votes
0answers
16 views
How does the deleted column get set for field_data_field_x tables?
I am having an issue where field data is being purged every time cron runs. This is normal behavior for data that has been marked for deletion (The deleted column in the field_data_field_x table set ...
0
votes
0answers
7 views
Create a %get- based url as a field in a webform that draws %get values from the same webform
ok, so my staff fill in a form with client details. then submit.
i'm using the webform report module. i want to create a field type like so:
...
0
votes
1answer
11 views
How do I associate a field value with another value of a multi-value field?
I've run into a situation with a project in regards to field organization. I've got 3 data types, a price, a date range and a quantity. I've currently got 4 prices and a date grouped with it using ...
1
vote
0answers
18 views
Get a field value from an nid [duplicate]
I have the nid of a node and I want to get one of its fields' value. Right now I am doing a node_load on the nid and then using field_get_items to get the value. Is this the right way? It seems kind ...
0
votes
0answers
11 views
Modules/Methods for Faster Data Entry
I have an unlimited-cardinality text field on a node that users need to enter 50-100 values on. Right now, the user has to type in one value, click "add another item", and then click inside the text ...
0
votes
0answers
8 views
How to represent and edit the status of node relations with per-relationship modifiers or taxonomy?
I have two custom content types, call them Location and Goal. I'd like to use something like "node reference" to link all Locations to all Goals with a status. Ideally a matrix of radio buttons, like ...
1
vote
1answer
23 views
Saving custom field value leads to mysql error
I created a custom field as in field_example described, using text_format as type and it shows up a multi line editor without any problems.
But I'm facing a mysql error when trying to save a node:
...