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

learn more… | top users | synonyms (1)

0
votes
0answers
6 views

Change Views Handler for entity schema field

I want to have a numeric value in my db treated as boolean by drupal. the field is defined in the hook_schema like this 'myfield' => array( 'type' => 'int', 'unsigned' => TRUE, ...
0
votes
0answers
6 views

Node custom property exposed as extra field

I'm trying to add custom property to node bundle, my code so far: /** * Implements hook_entity_property_info_alter(). */ function mymodule_entity_property_info_alter(&$info) { $properties = ...
0
votes
1answer
12 views

How to print the raw value of a custom user field in comments

I want to print a custom user field of the commenters. It is an Link field (https://www.drupal.org/project/link). Some users have that field completed and other not. I've read a lot of posts related ...
0
votes
2answers
15 views

Single view on multiple pages

1) I created a content type Portfolio-Item. In this type a text field Project-Url was defined. 2) I created a view containing a gallery using jQFX module displaying content of Portofolio-Item ...
0
votes
1answer
7 views

Set value for new field automatically based on another field

I want to add a new date field to an existing content type, and set the new field automatically for existing nodes to be equal to another date field from that content type. For example, if the new ...
0
votes
0answers
8 views

Migrating data from CiviCRM to OpenAid

I want to migrate data from CiviCRM to OpenAid, so basically I want to add a person to OpenAid for every CiviCRM contact. How should I go about this on the OpenAid side? I know how to deal with ...
1
vote
0answers
16 views

Reducing Number of Fields in Content Type

Context: I have a product content type on Drupal 7 with >100 fields, and there are >7000 products, all with several revisions. Our client keeps requesting that we add and remove fields, which is ...
0
votes
0answers
6 views

Webform hours/time field

How do you add a field where user can set hours when it's best to call for contacting. The Date field gives only days, months and years. In this thread Webform: Time Field - Changing Variable ...
0
votes
0answers
14 views

Sorting a multiple node reference field in view based on another field of the node

I have a view that whereby one of the fields (a node reference field) has "multiple fields settings" checked. So it has multiple values per row. I want to sort these values based on another field of ...
0
votes
0answers
9 views

Translating fields per node

I have a content type which the editors (who don't have an administrator role), needs to set the idioms that the field is translatable. For example, he can say the title and the body are ...
0
votes
0answers
7 views

Entity Reference JOIN value

I'm importing hundreds of nodes from SalesForce but one field from SF imports a ID value like a0KG0000001jLrwMPT. That value refers to another SF Objet. Then I imported the other object entries but I ...
0
votes
1answer
38 views

dynamically populate a select field based on the selection in another field works only the first time

I am trying to dynamically populate a select field (chamiponship) based on the selection in another field (country). It works fine when I load the page but just the first time, the second time I ...
0
votes
0answers
18 views

Drupal Computed field alexa [closed]

I do not know English. Google translator I am writing provinces. Enter a domain I as filed. alex with drupal ComputED field I want to show the world rankings and turkey.   How do I make. For example, ...
0
votes
0answers
24 views

How to dynamically remove field in custom form using AJAX

Based on the "Add-more button (with graceful degradation)" example available in Drupal examples module I have created a form that can add fields dynamically using AJAX, and now i want to add a ...
0
votes
1answer
5 views

field label as node reference link

If I have field label as Links and type is a node reference link to Page Title. And its displayed like this Links: Page Title how to make the label is the link to the node without showing Page ...
0
votes
0answers
17 views

Different product prices per line item options

I'm working with Drupal Commerce, and i have a node type called "travel" with a product entity. This product have some static fields types like "city" which are used to define different prices ...
0
votes
2answers
25 views

Structure for a list of links

What I’m looking to do: Content type has an field (addable; unlimited entries to this field) In that field you select from a list of (mostly external) links. Each link is a sentence - has a title ...
0
votes
0answers
16 views

Own Field Type is not saving the value [closed]

I'm trying to write a own field type, so far so good, but the value isn't saved. Only NULL is written into the db. I'm probably doing something wrong, but I can't figure out what. I've started with ...
0
votes
1answer
8 views

Get node ID that field belongs, in field.tpl.php being displayed in a block on any page

I have a 'Gallery' content type that has an entity reference field, which I use to reference other nodes of the 'Gallery Item' content type. When creating a 'Gallery' I use the nodeblock module to ...
0
votes
0answers
13 views

Add fields from a second table in drupal views

I have created a custom module that I am trying to integrate into views. However every time I try to display fields from a second table, they either dont show up, or i get an error saying that its an ...
-1
votes
1answer
18 views

Sum a field from another content type

as this title, i have a pic below: That it's all. Thank you!
0
votes
1answer
29 views

Custom node field type should also support content blocks in D8 - what to do?

I'm using https://www.drupal.org/project/paragraphs for nodes. "Paragraphs module comes with a new "paragraphs" field type that works like Entity Reference's. Simply add a new paragraphs field on any ...
0
votes
3answers
42 views

How to problematically display an image field in Drupal 7 + default value when needed

I've used field_view_field to display an image field for a specific entity in Drupal. The problem is when that entity doesn't have any value for field. I expect field_view_field to display the default ...
0
votes
1answer
26 views

how to print google map field value in a page tpl

I am trying to print a value of submitted for a google map field in a page.tpl.php file. I used below code to print but got a error message. I am able to print other field types using similar code but ...
0
votes
1answer
15 views

Custom Field Type is missing in Feeds Importer

I've got a problem with feeds importer. I've created a custom field type, and added a field with this field type to my content. If I try to import data via feeds importer, in mapping, this field is ...
0
votes
0answers
17 views

Rules: Getting values from within a field

im am using rules and rules conditional and id like to limit the amount of fields i have - so i am trying to reuse fields where i can. is there a way to get data from within a field? i know there i ...
0
votes
0answers
33 views

Programmatically create “add more” fields

I have a dropdown filled with numbers (1,2,3,4,etc), this dropdown has an ajax callback. I also have a field collection (has some text fields in it) with unlimited amount or "add more". When a number ...
0
votes
0answers
66 views

Re use link field (of link module) in custom module to save custom data with it

Here goes background of my issue & question related to it: I am calling link_field_info() & changing some properties of field to use it with custom name. Code - function custom_field_info() ...
0
votes
1answer
21 views

Add help text to title D7

How can I add Help text to the Title in D7? Perhaps adding an 'edit' button similar to the other normal fields. Ideally the solution integrates with Label Help.
1
vote
0answers
13 views

Any benefits for using fields as opposed to properties

I have a module that pulls data constantly from an external source, from up to thousands of different items with over 50 properties. The data is being collected every 15 minutes. The problem is that ...
0
votes
0answers
7 views

Image field - Maximum image resolution setting not functioning properly

In Drupal 7, I have a content type contain a "Image" field with "image" widget. Under "Maximum image resolution" setting, I inserted "1 MB"(see below screenshot). However, after setting saved, it ...
6
votes
1answer
44 views

Delete multiple images at once from one node in Drupal 7

I'm having an image field with option set as UNLIMITED to accept infinite images, basically deleting images in single manner is possible, but how it can be possible to delete multiple images at once ...
0
votes
2answers
15 views

Add rows inside added row

I'm trying to create content type which can be used to add Workouts. Content type has fields: Exercise, Set and Reps. First user chooses Exercise (this is autocomplete field). Then he can add Set(s) ...
0
votes
2answers
28 views

Load single value from multiple value image field in View

I am trying to load a single value from a multiple value image field in View. I am adding the field with a restriction to print only a single file. I am also filtering by delta(=0). Check the settings ...
0
votes
1answer
15 views

Make field editable after date

Is it possible to make a field either editable or appear after a date? I have a content type with a Title, Date and 'Winning Numbers' field. The winning numbers field should only be fillable/editable ...
1
vote
1answer
20 views

How do I load all images and thumbnail for a multivalued image field in node view?

I have a content type with a multivalued image field. I want to make the image field render with one main image and all the thumbnail. When any of the thumbnail is clicked then it's respective image ...
0
votes
0answers
7 views

collapsible the different values of a field

I have a content type with many fields. One field of them (it is called-Background), has field-type "Long text and summary", and the Number of values is set to "Unlimited". When the content of this ...
1
vote
1answer
32 views

print value of email field from a node

I am using the below code to get the value of email. It works fine if the field type is "Text". But the field type used is "Email" <?php $node=node_load(14); print ...
0
votes
2answers
21 views

PHP snippet: why comparing the term id with a number keeps getting the wrong result?

I have a Drupal 7 site. I have this taxonomy field that I get printed out using tokens and Display Suite Module. So, if I create a "code field" at /admin/structure/ds/fields, I can type: ...
0
votes
1answer
22 views

Trim whitespace from Float fields before validation

I have a content type with a Float field. When my users accidentally enter (or copy/paste) a value with trailing whitespace (e.g. "11 "), drupal gives them the ugly error message: Only numbers and ...
0
votes
0answers
28 views

validate field using regular expression in Field validation module

I have added a text field in a content type. I'm looking to validate that field by adding a Rule using "Field Validation" module. I found few options in this module like regular expression ( Regular ...
0
votes
0answers
16 views

Printing profile2 fields in custom user-profile.tpl.php

I created a custom user-profile.tpl.php template and im trying to print Profile2 fields as suggested in Theming with Profile2, however i have no luck since the Profile2 fields are not being printed. I ...
0
votes
1answer
40 views

Exposed sort and filter for multiple value field

I came across a problem when I added some multiple value fields to my view (integer and text fields). I tried it on a fresh install to be sure that non of my other modules is causing the problem. An ...
-1
votes
1answer
19 views

How to enable boolean fields?

I installed the minimal setup when installing Drupal, and I want a boolean field in one of my Content Types. But this is not enabled. I found this Boolean module, but it only has 859 installs (as of ...
0
votes
2answers
32 views

add a new field in a view that uses a teaser view mode fomat

I have a view that extarct a specific content type, this view shows the teaser view mode for rendering fields and not fields format : the teaser view mode is managed with display suite module to ...
0
votes
0answers
7 views

Gobal Download field in header

I have to create a couple of file fields that need to sit in the global header. My idea is to create a content type called downloads and then use views to extract the fields and somehow (don't know ...
2
votes
1answer
22 views

Add additional fields to select list on Webforms

In Webforms type field of Select options looks something like this: But what if I need to add extra fields per each select option? Fields that are drop-down and you can select amount (number) of ...
0
votes
2answers
34 views

drupal image field the image doesn't show?

My drupal site has a content type called Published which has a image field.When I migrate the site from Win2003 server to CentOS , all the Published node's image field doesn't show. It appears like ...
0
votes
0answers
8 views

My module's custom fields are not picked up by entity_metadata_wrapper and thus Rules

The problem I have is that I am using a module called Trackfield that defined a CCK field for D6, I (inexpertly) ported the module to D7 to use the Field API. My port works great and I have been using ...
0
votes
0answers
14 views

THEME_preprocess_field() not recognised in template.php

Mail (password reset, user blocked etc..) from admin sends messages without preserving linebreaks. Then I came across https://www.drupal.org/node/1095838 to fix this issue. In turn ...