Fields are custom data that can be attached to Drupal entities.
0
votes
1answer
15 views
Drupal 7 - how to append text to a URL as a node is created
I am using a content type called 'Feed URLs' to store RSS feed URLS. So for example, I create a node for Google's blog then add their RSS feed URL:
feeds.feedburner.com/blogspot/ATHs
However, I ...
1
vote
0answers
18 views
Programmatically create node with select List
I'm trying to add nodes via a JSON feed. However, I'm having trouble setting the value of a select list field.
I have this at the moment:
$node->field_name[0]['nid'] = ...
0
votes
1answer
23 views
How to save autocomplete and date type fields while adding node programmatically?
I am creating a node programmatically and I have a field which is autocomplete and has number of values set to unlimited.
In the code for adding the node programmatically ,the code is as given below
...
0
votes
1answer
35 views
Replacement Pattern to get current node url
I'm looking for a valid replacement pattern, to get the url of the current node for a custom text in a list of filtered nodes.
Example markup for custom text field:
<a ...
1
vote
1answer
30 views
User's field autocomplete/autosuggest widget [on hold]
I have a user field where multiple users can be added. Currently, I am using the auto-complete widget.
Is there a module that allows you to customize what can be additionally shown on autocomplete? I ...
0
votes
1answer
16 views
Conditional Fields Changed Answer Problem
I have three fields on an entityform the third is hidden unless the second one is answered with yes.
The problem I have is that if a user makes three visible by answering "yes" and then answers ...
0
votes
1answer
11 views
How to translate Boolean field labels?
I have created Boolean fields. I have set values 0/1 in database and No/Yes as labels to display in UI. But I cannot translate these labels. I have translated strings "Yes" and "No" using UI on link ...
4
votes
1answer
35 views
Where in the database does fieldset and field instance info live?
Background: I'm writing a module that will hopefully make reverse-engineering specs for site audits easier. (If you're interested, you can see the Topograph module-in-progress on my Github account.)
...
-1
votes
2answers
27 views
Change a label element to an <h2>? [on hold]
I'd like to be able to set the field label as an <h2>. How can I do?
I'm editing the features definition for a field collection directly so if it's possible to set it in there that would be ...
3
votes
1answer
26 views
Empty Integer fields throwing invalid data value in Form API
Problem
When I submit a form with no value in a textfield input, which submits to an integer field the following error throws.
EntityMetadataWrapperException: Invalid data value given. Be sure it ...
0
votes
0answers
15 views
No teaser view in viewfield [on hold]
Drupal 7.
I have a node type with a few common fields, an one viewfield.
This field is supposed to show a view as a teaser.
In views, the preview looks great and comes out as teaser.
In the viewfield ...
0
votes
1answer
27 views
how to save uploaded file in a custom user registration webform in D7?
I implement the myModule_webform_submission_insert($node, $submission) {...} function in my Module.
It's a regestration webform so I want to save all the data from the webform into a the new user. The ...
-2
votes
0answers
29 views
add ID to different image fields of same content type
To start, I am a beginner with Drupal.
I have created a content type, which has 2 image fields. The second image field can upload unlimited images and the display of this field is hidden.
I'd like ...
-1
votes
1answer
18 views
unable to add configure field to drupal view
i added new field to existing content type but when i try to add same field or any other field to view i don't find it in the list except few .
eg: i added image field to content type then
i clicked ...
1
vote
1answer
32 views
Is there a module/Drush command for updating multiple field settings at once?
Just for convenience I wish I could change all required fields to optional at once.
Is there module or even better, a Drush supporting module to do so?