Fields are custom data that can be attached to Drupal entities.

learn more… | top users | synonyms (1)

0
votes
0answers
12 views

Print out multiple upload fields on a page

I'm trying to output 4 upload fields on a page. But the problem is that it only outputs the first one and not the rest. All works fine when uploading the files with Drupal's form api, but I just can't ...
1
vote
1answer
9 views

Import fields and field types

I am developing a Management Information System in Drupal, holding thousands of suppliers in different certification schemes. Due to the nature of these certification schemes, and because of working ...
0
votes
1answer
6 views

Get all registered Users into a Field Type List

I would like to create a content/form where an authenticated user is able to choose another registered user from a list/dropdown. I've been searching for ways to get this done but am not able to find ...
1
vote
1answer
17 views

List of images with checkbox (user registration)

This is what I would like to do: When a user registers on the website they have to give in if some options like for example if they are politically engaged, professionally engaged, an expert, ... . ...
0
votes
0answers
9 views

How To Print Taxonomy Field On Page.TPL Of A View?

Using Commerce Kickstart. I'm using a variation of the Page.TPL for a 'Collection' of products. The page is a View which lists products, but the header is a taxonomy term to which the products ...
0
votes
0answers
7 views

a stored field not shown in field list

Im using features module to export user fields settings in a production website, and it works fine ... somehow in the production website one field was deleted. so I want to get back this missing ...
1
vote
1answer
13 views

Use One Content type's field as a reference in another content type's view?

I have following requirements : Add and List of Book Add and List of Quiz related to book. I have created content type for Book with field name : book_id,book_name,price etc..,here book_id will be ...
0
votes
0answers
13 views

Show profile fields depending on the profile users role

We are using profile2 to display users listed on our site which has different member levels. Is there an easy way to hide certain fields based on the profile2 users role. We still like them to enter ...
0
votes
0answers
16 views

Can I apply more than one ajax callback to a field?

I have the following code in hook_form_alter() $form['field_sector']['und']['#ajax'] = array( 'event' => 'change', 'wrapper' => 'sub-sector-wrapper', 'callback' => ...
0
votes
0answers
9 views

Prepopulate a field in a Reference Dialog Box

I have 2 content types named Incident and Migrant. Both of them have fields that reference each other. My question is how to prepopulate a field in a reference dialog box while the node is being ...
0
votes
1answer
9 views

how to create a link field which validates to a set of nodes?

Is there a way to set the Validation for a Link field so that authors are only allowed to link to a pre-determined certain set of nodes? IOW: when authors add a link field to a Node I want them to be ...
1
vote
2answers
38 views

How to modify a term reference autocomplete field

I am using a term reference field but the widget type is autocomplete term widget. This term consist of many levels as parents and child. In the form I need to display only the child terms(only the ...
0
votes
2answers
20 views

Drupal 7 controlled field

I have 2 content types [Content 1 - Content 2] and in the content type 2 form of node add i have field list of entity reference of content type 1, and i also have field in the content type 2 lets say ...
0
votes
2answers
21 views

Fetch node value in Rules

I am trying to get option value from node in drupal rules. I have a form-group which consists of fields. The field in question is a select list - it consists of different names, with every option ...
0
votes
1answer
15 views

How to make existing fields available to be created as instances on other content types etc.?

I have created a custom module that simply creates a set of standard fields via a .install file. It's very simple, basically: foreach (my_fields_fields() as $field) { if ...
1
vote
1answer
35 views

Copy values from taxonomy term field to new text field in content-type

I have a content-type with a certain taxonomy term field that allows multiple values. I don't need this field to be a taxonomy term field anymore, but just a simple text field. So, I want to ...
0
votes
0answers
15 views

Editing Fields on a Content Type

I am trying to get edits in a content type's fields to be displayed and reflected in the view. Here is a picture of the settings followed by how they are being displayed. There is no book type ...
0
votes
1answer
25 views

Adding content type field value to a taxonomy term?

What I'm trying to say at the title is, I have this Select List field that gets its values from a taxonomy called "Thing". The taxonomy term are (Thing-1,Thing-2,Other). When "Other" is selected a ...
1
vote
2answers
39 views

How to print a custom user field in comment.tpl.php?

I'm trying to print a custom user field (field_avatar) image as a replacement for the user picture. Why? user picture file directory would not accept tokens. This mean, I could run into a scenario ...
0
votes
1answer
27 views

Menu link on hover is showing & instead of &

I have a Webform that provides a menu link. The webform is available in three languages (dutch, french, english). For the dutch version I have a menu title of Informatie and description Vragen & ...
2
votes
2answers
35 views

How to load XML to SWF on each node?

Here is my problem: I have 2 SWF files for a crossword puzzle: first one is for creating puzzles and outputting XML files upon clicking the "Save" button and second SWF is displaying those puzzles to ...
0
votes
0answers
13 views

Drupal alter country list generated by location module [duplicate]

I want to remove some countries from the drop down field provided by location module, is there any admin way to remove the fields or hook_form_alter is the only way to limit them, thanks in advance
0
votes
1answer
18 views

Relate number of values to an integer field

I was wondering how to do this with drupal. You probably wonder why I don't just use the unlimited amount of values setting. That's because I want to require the user to fill in the amount of values ...
0
votes
1answer
21 views

Content Type: Is it possible to have Term reference on Parent Term instead of Vocabulary?

I have many Parent Terms with child terms on a Vocabulary. I wanna use one of the parent terms on a content type as option. Is it possible to have a Term Reference field on a Parent Term instead of a ...
0
votes
0answers
7 views

Create a names and email field on comments in D6

I am trying to add extra fields onto the comments box in d6. Have tried this in my template.php file function mythemename_form_alter(&$form, &$form_state, $form_id) { if ($form_id == ...
2
votes
1answer
44 views

Views: how to remove ending zeros from decimal field

Suppose, we have a view with a decimal field: It is output like this: 5 000.000 Is it possible to remove the ending zeros, so it looked like this: 5 000 But if there are meaningful values in ...
0
votes
1answer
12 views

Hide fields on content creation

I have added my own content type with many fields to enter, I want to hide some fields when adding a content according to radio button selection. I explain, in the add content page, i have two radio ...
0
votes
0answers
8 views

Editable fields save all instead of onchange update?

I have a panel with a view that contains a table of data. With the editable fields I can edit these values. The problem is, that everytime I change such a field it is firing an ajax call to update the ...
2
votes
1answer
23 views

3-rd decimal digit has disappeared in the output

I created a field, attached it to the entity: coefficient_to_second_side. Type in the database is decimal(10,3). Then I added a value: 1.001. When I select this field manually from the database, the ...
0
votes
0answers
10 views

theming user profile with “User Field Privacy” - but no “Privacy” available

My setup is like this: multiple additional user fields (not using profile2) and the module "User Field Privacy" is enabled. I am currently theming user profile pages through a preprocess function and ...
0
votes
3answers
29 views

Is it possible to divide a field into fields?

I think this is impossible. However, is it possible to change a field into fields on Drupal 7? I have a content type of author. We used the "Title" field for user full name with their title. Is it ...
0
votes
3answers
33 views

Show a default value when user doesn't fill in a field

I would like to show a default value if the user doesn't fill in a field in the user profile. For example: I have a Hair type field. If the user fills it in, i would like the following output: ...
0
votes
0answers
9 views

Poll field options getting duplicated

I am using a Poll Content type. I am using a client/Server architecture where i am importing content from the server side using Services module. During first import i am able to get the node values ...
-1
votes
0answers
19 views

Is it working if i place field.tpl.php file inside module folder?

When i place custom field.tpl.php file in theme folder it's working fine. I just wants to put my custom field.tpl.php file inside custom module folder. which is created by using ...
0
votes
1answer
18 views

How to remove width and height from image field images in Views?

I'm using Views to generate some HTML, and this includes a field from a Views field. My problem is, the layout needs the images to be reponsive (height and width based on the parent element), but ...
0
votes
0answers
27 views

how to request multiple public image sizes from a field's filename?

my json Service returns... field_photo: { und: [ { fid: "810", uid: "1", filename: "dxb-airport_1.jpg", uri: "public://dxb-airport_1.jpg", filemime: "image/jpeg", filesize: "64389", status: "1", ...
1
vote
0answers
19 views

Injecting field data in a custom entity

I have created a custom fieldable entity. Now I want to inject the field data into the entity and render the complete entity with the fields. The following code is working for text fields and ...
0
votes
0answers
18 views

Allow timestamp published/updated dates for certains fields?

Is there a module to enable or disable the created and updated dates to certain fields? The goal is to have a timestamp of the date of creation/modification date of a field (of type text) has ...
0
votes
1answer
30 views

Migrating a field collection with a field that has multiple values

I have a field collection migration that is taking nodes of type Map List from a D6 site which have two fields, a title, and a node reference to entity of type Venue. There anywhere between 1-10 node ...
0
votes
0answers
12 views

Trouble with module “node compare”

I have installed the module node compare. You can compare fields of every node type with this module. I selected about 19 fields to the comparison table but only twelve appear. I posted an issue but ...
0
votes
0answers
26 views

Hiding Time Field if Date is Expired

My time field shows after an expired date. My client wants to have the time hidden after the expired date. But still have the date show. Is this possible?
0
votes
2answers
37 views

Views fields configuration is not working

I set a few fields as FIELDS section of a view. the problem is when I click on the fields the Style settings ,No results behavior , Rewrite results and More links are not collapsible . this is the ...
1
vote
1answer
25 views

Issues with the entity field output

Suppose, we have an entity "song", that has a required field, called "authors": In the list of songs in the admin panel I want to output the list of all the authors in the search block: //search ...
1
vote
2answers
24 views

How can I hide the label saying “URL*” from content creation form when using the link module?

I'm using the link module to ask the user for a link. I have disabled the link text (I.E> the text that would be inside the anchor tag) so the user wouldn't be asked for a title. What I would expect ...
0
votes
0answers
12 views

How can I make CCK field labels display differently on the node display page as opposed to the node add page?

I have a custom content type with form labels like this: "Would you like to upload photos?" That's appropriate for uploading data, but when displaying data to the world I'd just rather have: ...
0
votes
0answers
28 views

Bean bundle type

I want to use hook_field_enable() to enable required fields when I enable my bean. In order to do so I need to know the bundle type in order to create the instance $instance = array( ...
0
votes
1answer
44 views

Schema.org itemprop=“url” inside anchor object (link)

I'm trying to use the preprocess function to change the default outpot of links <a href> to include Schema.org's itemprop="url" inside the anchor object, as well as adding a <span ...
1
vote
2answers
64 views

How to add another field collection instances on Add Form page load programatically

I have one field collection with unlimited values in Commerce Product Add form. After performing some action, When user redirects to Add Product form, based on some predefined values in session, I ...
0
votes
0answers
13 views

Can't get hook_field_attach_view_alter to set the value of the field

I'm using some hook code I got from Drupal 7 show empty fields in order to show all of the empty fields on my node when viewing it. I would like to put a simple - as the displayed value when the field ...
1
vote
1answer
51 views

drupal identify which content type is not used

I have a drupal existing project which is slow in performance and many irrelavent extra stuff. what aprroach is best where i can identify that which content type is used or not . Or we can say that ...