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

learn more… | top users | synonyms (1)

0
votes
0answers
6 views

Location Module fields are not available under Search api fields

I am using Search API's Default Node index. I am using Location module to store Location data. But location module fields are not available under Search API Related fields. I know this has been an ...
0
votes
0answers
11 views

biblio author initials two character

I have Drupal 7 with biblio 7.x-1.0-rc7 module. How can I set up the biblio module that the initial of an author to be more then one character. I know it is a strange request, but e.g. in Hungarian ...
0
votes
0answers
13 views

YouTube media filed without remove media button

I'm using Drupal 7. The Remove media button on youTube media entry (field) is missing. This is for a field with name: Videos, field type: Multimedia asset (deprecated), widget: Media file selector. ...
0
votes
1answer
16 views

How can I add a CSS class to a View Field programmatically?

Using template_preprocess_field doesn't work, I assume, because this is a field from a View, not a node. I've looked at this answer however that only seems to apply to the field value not the markup ...
1
vote
1answer
17 views

How to allow integer and decimal fields with default values to be saved as empty.

If I set a default value on a decimal or integer field, the user cannot delete the default value and save the node. They can set the value to another value including zero, and that is saved ...
0
votes
2answers
10 views

Disable profile field when module that created it is disabled?

I have created a module that adds a field to the user profile. When I disable the module, I want the field to no longer be shown on the user profile. I do not want to wipe it out completely, since I ...
0
votes
1answer
13 views

Hide Price by Role for a Content Type in Drupal 7

I am trying to achieve the following: 1> Hide Price Field for a Role only on a specific content type. I am using Drupal Commerce. Things I tried: 1> Field Permissions for the commerce_price field on ...
0
votes
0answers
14 views

Entities, Views and frontend creation/edit - a concept question

I'm a casual Drupal-Developer and stumbled upon this problem several times: You have any kind of entity, lets say a node, and want the user to fill in field values with a form in the frontend. I.e. ...
0
votes
1answer
9 views

Dependency fields on add people page

For a project I need to register new customers. That customer belongs to a store chain, and that store chain is connected with a store. I only want to display the store's which are linked to the ...
0
votes
2answers
18 views

How do I programatically attach fields to a node defined in hook_node_info()

I've got a module which defines a node type. I also need to attach a few fields to this node. I'm defining the node in hook_node_info(), and I'm creating fields in hook_install(). However, isn't ...
0
votes
1answer
13 views

One time change field + personal comments

I'm not very familiar with all the modules for Drupal. Therefore, let me try to explain what I'm looking for. 1) The users shall be able to create nodes with some specific fields. Some of those ...
1
vote
0answers
14 views

Postgres errors with Metatag module in combination with Drag and Drop File upload

After having migrated from a MySQL 5.5 to a Postgres 9.3 Database I encounter some issues in a Drupal OpenOutreach installation. I have a content type with a Drag & Drop Upload field to display ...
0
votes
0answers
9 views

Images title attribute is not found in Views fields

I have created content type named "Gallery". In this type a multiple image upload field named "Images". Using Views module, I try to make a block that renders latest 10 images belongs to that content ...
0
votes
1answer
11 views

How to export comment fields (or other settings) with Features?

If I export a content type that has fields specified in the comment of the content type the fields of the comment are not exported. How do I export those fields that I specified in the comment? (In ...
1
vote
0answers
19 views

How do I initially show 3 blank fields on a form when cardinality is unlimited?

I have created a field programmatically that has 'cardinality' => FIELD_CARDINALITY_UNLIMITED. This is the functionality that I want. I want users to be able to add as many items as they need to. ...
2
votes
1answer
36 views

Performances with many fields per content type

Drupal creates a new table for every new field in a content type. How much this affects the performance in fetching data when the fields of an entity are 15 or more? Is possible to store all fields ...
0
votes
0answers
19 views

Remember field values while editing the node

I have a situation where i want to get the recently added value in the field while editing the node. For example: if i have a field called name where i enter the value initially, i want the field to ...
0
votes
1answer
34 views

How to compare a field value with each title values?

I need to compare two field values. Let's say I have a content type named "Specimen". The content title is the accepted name of that specimen. A second field, named Synonyms, can be filled by users ...
0
votes
1answer
20 views

How do I add a custom class to a field based on another field value(boolean)?

I have a Commerce product and there are two price fields. (Original price and Sale price). I would like to display original price as line-through text when sale price is available. Therefore I would ...
0
votes
1answer
9 views

Alter value of field before loading

I'm just wondering if its possible to alter a field before loading. Here is the situation. Im using commerce kickstart. When I'm in a product page(inner page or product details page), I want to ...
0
votes
0answers
17 views

How to set body field display programmatically on node type install?

When hook_installing a new custom node type filled with custom fields I call field_create_instance($instance) where I also set the custom fields' display like so: 'display' => array( 'default' ...
0
votes
1answer
27 views

How to display the same node twice in one teaser?

I added some new fields to Basic page: teaser image teaser title teaser subtitle Now I want to show 2 separate blocks in teaser that point to the same node (basic page). Is it even possible? ...
0
votes
1answer
23 views

Use computed field to calculate Field collection

I have a field collection named values. It contains the fields: Amount Price Total The "Total" field calculates the Price*Amount. Now I created a new field outside the field collection called ...
1
vote
2answers
24 views

How to structure repetitive data under an entity type bundle?

I'd like to use Drupal in one of my projects but I'm wondering what's the best way to organize my content. I have a list of authors. Each author has 3 properties: name bio list of books On the ...
0
votes
1answer
7 views

Quick question: horizontal align taxonomy @ node/add?

When adding a node (node/add/article), all the fields are showing up. With module "field group" i can alter the vertical presentation to an editor. In fact, the editor sees (for example) ...
0
votes
1answer
22 views

How can I override a node's post date theme?

HTML5 provides a time element, and a lot of modern sites are using the time element for their content post dates. How can I override a node's post date theming, so I can change the rendering from a ...
1
vote
2answers
84 views

Is it possible to have multiple instances of the same field in one content type?

I understand that it is best reuse fields where possible and to avoid unnecessary duplication. So is it possible to duplicate or reuse a field (or field instance) on the same content type? For ...
0
votes
0answers
9 views

Drupal 7 : problem with newly added field language property

I have to add some new field to a content type on a Drupal 7 site. The new fields works perfectly, but when I'm saving my node, those fields language property is set to "und", while all the olders ...
0
votes
0answers
6 views

Taxonomy term description gets emptied on term save

I have a vocabulary with a description field that's of the "Long text and summary" type. Every time I edit and save a taxonomy term from that vocabulary, the description gets emptied. Did any of you ...
0
votes
1answer
19 views

How to add 'title' attributes to breadcrumbs links?

I'm currently using Crumbs module for creating breadcrumbs on my website. I added 'short title' field to nodes and show its content in breadcrumbs instead of much longer node titles. This makes ...
2
votes
1answer
21 views

Field prints twice, or not at all when added to template file

I have set my node field to 'Hidden' in the Manage Display page, and am printing the field in the corresponding tpl.php file, but the field only prints if I set the field format to 'Default' in Manage ...
0
votes
0answers
11 views

Field widget item form alter for file field

I want to alter field widget item form of a file field with cardinality > 1 so that a new form element is added to each row of the file tables. For example, in the attached image, I want to add ...
1
vote
3answers
40 views

Why does Drupal need list (integer, float AND text) and what is the difference?

Could somebody explain why Drupal needs list (integer), list (float) AND list (text). What is the difference? Values are set in key | value pairs. So: list integer - saves key in database in ...
0
votes
0answers
18 views

Drupal 7 and CKEditor edit via js

I used ckeditor without Drupal. There I can call this to configure it in js file: CKEDITOR.replace( 'myEditor', { stylesSet: [ { name: 'header', element: 'p', attributes: { class : ...
1
vote
1answer
19 views

How to get values which changed during node edit in node api?

I have a node with user entity reference field. Now I want to get newly added users id's to this node via this field in hook_node_update What is the best way?
1
vote
1answer
10 views

Importing data into specific fields from CSV - into pre-existing nodes?

I've used the Feeds module before to import nodes and users. I need to import data into new fields on pre-existing nodes - is that possible?
0
votes
3answers
39 views

Adding icons to field labels

How do I add icons next to field names, like adding a phone icon in front of the mobile phone field? i tried the patches shown in https://www.drupal.org/node/2050257, but they do not seem to work. I ...
0
votes
2answers
52 views

Add unlimited field collections in a from of drupal

I created a form in drupal for creating a new node. This content type has a field collection with 2 fields, name and amount. I use the code below in form and add 5 field collections to form, but when ...
0
votes
0answers
15 views

ApacheSolr - Create Custom Field Bias

I'm trying to create a new Field Bias with the ApacheSolr module. It's a field I've called References, and it's associated with only certain types (articles, pages, etc.). Because I'm also using the ...
0
votes
0answers
15 views

Display Product Field twice

I simply want to display Product Details twice on my page. I use Display Suite for displaying all my fields on the node (Product Display) and for displaying the field twice, I would like to use a ...
3
votes
0answers
55 views

How to make new field type visible to rules

I have installed the Examples for Developers module (https://www.drupal.org/project/examples). I have enabled the Field Example submodule. It creates a new field type called 'field_example_rgb'. I've ...
0
votes
1answer
82 views

IDs for content type fields

how can you add the ID to the content type fields (drupal 7), all I see are classes, and from my understanding seems that there is nothing in the variables. Please keep in mind I am not coder, and ...
0
votes
0answers
8 views

What is the rationale behind why the Node title is not a field in Drupal 7?

Node titles are not fields in Drupal 7, which means it cannot be translated using Entity Translation, without using the Title module. What is the rationale behind this design? What is so different ...
3
votes
3answers
44 views

Linking an individual term from a vocabulary with all terms from another vocabulary

I have two vocabularies/fields, one called Days that has all the days of the week (Mon, Tues, Wedn...) as terms, and another vocabulary/field called Time of Day that has terms (Morning, Midday, ...
0
votes
0answers
20 views

Field collection tabs on node edit form

I have a field collection field with 5 text and image fields per field collection item. On a node with lots of field collections, this makes it very difficult to navigate the node edit form. I am ...
1
vote
1answer
17 views

Changing value of a field before rendering in Drupal 7

I am trying to change the value of a field. I need to add a dynamic class on-the-fly, based on some complext context, and I need to warp the text value with the span-class-stuff. But I haven't been ...
0
votes
1answer
29 views

Storing data for every country for an interactive chart

I need to store one and possibly more values for each and every country so that I can populate an interactive SVG world map. This data will be updated often by hand by one of the content moderators. ...
0
votes
0answers
16 views

Drupal 7 - Add Custom entity to a field collection

I have a custom built using Entity API which is fieldable which is working fine till now. Now I have added a field collection using field UI, but as per project requirement we need the fields inside ...
1
vote
0answers
26 views

Cannot target <img> tag after switching to Picture module

I have a image field that I have added an 'onload' attribute to in template.php. function mytheme_preprocess_field(&$variables) { if($variables['element']['#field_name'] == 'field_images'){ ...
0
votes
0answers
15 views

Boolean fields configuration - How to enter a string in ON/OFF value bigger than allowed?

How to enter a bigger string than allowed in boolean fields? When I try to submit a string bigger than a certain value, the string is automatically cutted. I want to put this text: (4% du ...