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

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

Additional fields to autofilled Commerce Addressbook

So far I've my site running the Commerce module and placing orders are fine. The autofill function is also working during checkout. The problem is, in my country a tax id number has to be provided. ...
0
votes
0answers
28 views

Add a taxonomy type to a custom field using Field API

I'm creating a new field type using hook_field_info , my custom field takes different types of data like Model , Speed , Power and Make.This my last type should be a taxonomy term , now the question ...
1
vote
1answer
18 views

Move content from field to field collection

I'm working on a site where a current content type has six image fields, six title fields & six content fields. One field from each (one image, one title & one content) all make up one group, ...
1
vote
3answers
32 views

How to create a node with extra taxonomy field

pardon the bad headline. I have a node with a autocomplete taxonomy field "categories". When a user creates a node, he can add a single term/category to that node. How would you make it possible to ...
0
votes
1answer
19 views

Echo content from a node field using ajax [on hold]

I have a node that has a link field named title_url, that consist of title and the url is some node id. Using views I extract those fields in a page. I want that when I click on one of extracted ...
0
votes
0answers
19 views

Use translated node title in views

I use the Title module together with internationalization in my Drupal setup. Everything works fine. I can translate the node titles and their translations are displayed fine on the node page when I ...
0
votes
0answers
7 views

Does Organic Groups [OG] expose any information in the JavaScript object? Can I use that information to overpopulate a form?

With the help of Advanced Form Block, Automatic Nodetitles, and [Views Autorefresh, I've embedded an node add form into a block which in turn is embedded to an OG's page. I'd like to automatically ...
1
vote
2answers
15 views

Editting field collections with service api

I am trying to build an phonegap app which uses data of a drupal site. I need to update some informations with using app. For example I have nodes and users need to update field_collections of a node. ...
0
votes
0answers
26 views

Modules similar to arrange fields [on hold]

Is there anything available to arrange fields once the content type is saved, similar to Arrange Fields module for Webform.
0
votes
1answer
13 views

Views: Display a key from unserialized data field

I really don't understand how the "User: Data" field works. Couldn't find any documentation of this. I want to set the Display format to "A certain key" to output the identifier value from this ...
0
votes
0answers
15 views

Can not Add 'New Field' on any Content Type [on hold]

I tried adding a new field called 'Clock' with a Field Type as text on a basic page. However each time i click 'Save' the page reloads but the new field is not saved. This issue happen regardless of ...
0
votes
1answer
13 views

How to create one entity and assign the same entity as field to new entity programatically

-I need to create one entity (need to do coding)- that I created already, now want to create another entity, lets say "Entity 2"( term(taxonomy, param1, param2, description( it will have multiple ...
0
votes
2answers
30 views

How to read the field collection data

I have a field collection with name as 'TELEPHONE NUMBERS AND DETAILS' and the machine key as 'field_telephone_numbers'. When I use node_load getting the output as [field_orgs_number_details] => ...
0
votes
1answer
8 views

Sort terms in taxonomy field by weight

I'm using a node that displays a reference field with related terms, pretty basic and it works fine, but: they're being sorted alphabetically by Drupal's default. I'm looking for a way to display ...
0
votes
0answers
4 views

D7 How to sync Manage Fields and Manage Display field order?

I noticed that when I add a field in Manage Fields, the order is not replicated in the Manage Display tab. Are there any modules that keep these orders in sync?
1
vote
1answer
37 views

Is there a module which allows users to edit text together?

I am building a site which allows users to upload handwritten images and transcribe them. Ideally, I would like if there were a text box type of module which updated the default value of the box each ...
0
votes
1answer
28 views

How to add custom settings / attributes to a field

I want to be able to add custom settings / attirbutes to field instances. I can create a custom field with custom settings no probs, but is it possible to get rid of the custom field and just add the ...
0
votes
1answer
15 views

Field shows nulls as zeros

I defined the hook_views_data in order to display some data from a custom table in the database. One field is a nullable decimal(5,1). The value of this field is displayed correctly in the view but ...
1
vote
0answers
22 views

How to add value to a field in a node through code? [duplicate]

I have a field that I need a value assigned to, I want this field to be populated with a particular value when the node is being saved. Where should the code be placed? And how would I go about ...
0
votes
0answers
10 views

Remove title from Rendered Entity when using Taxonomy Tokens?

I've got a taxonomy called "Colours" that has fields for Title, Hexadecimal Colour, and Image. I've set up a custom display for Tokens that should only be providing Tokens with the Image, as seen ...
0
votes
1answer
16 views

Drupal Fields Ajax not working

I have added fields to my entity via Field UI and trying to fire an ajax callback but it is not working. This works $form['customField'] = array( '#type' => 'textfield', ); ...
0
votes
0answers
10 views

How i can add folder in filedepot using a custom module (without rules)

I want to create a module that adds a FileDepot folder, in this module I want the user chooses a name for the folder and I want the Parent Folder will by default "Top Level Root", I began to create ...
0
votes
2answers
12 views

Adding a specific field of a content type in the display of another content type

Sorry I didn't know how to put my question easily, so I detail my problem here. I use Entity Reference to reference various fields in my contents, and it works good. Now, I have a "Fruits" content ...
0
votes
1answer
18 views

Display if and when a particular field exists

[I have been on D6 for ages, and just shifting to D7.] In D6, I was using the following in the node.tpl.php: <?php if (content_format('field_occupation', $field_occupation[0]) != '') : ?> ...
1
vote
1answer
17 views

Views - group/aggregate by field with multiple content types

I currently have a block view that I am using as an index. I have 2 content types that I am displaying in this block, and these are grouped together by their type, as an unformatted list of fields. ...
0
votes
0answers
8 views

Private fields not able to access in draft mode

Private fields attached to old revisions are not accessible to download when the new revision(Latest revision) of the node is in draft. How to make it to download the files.
0
votes
0answers
15 views

Display Text using flags on user profile?

I'm running a D7 site and want to use a flag to display message/text on user profiles. I'm currently using 'Form' to capture message when user flags himself/herself but cannot find a way to display ...
0
votes
0answers
26 views

Issues with New Drafts of Published Nodes with a field

When a user trying to download a document which is attached to a field is getting access denied if the new version of the node is in draft mode. If i publish that node , the user can able to ...
0
votes
0answers
7 views

Feed import mapping - time field not available

I'm trying to set up a CSV import to create nodes. On the Mapping page for the feed import, several of the fields in my target node type are not listed in the dropdown box to select as a target field. ...
0
votes
2answers
24 views

How to edit image field output from template

My goal is to edit the output of a specific field in a view. There is an image field, and I would like to specify how it is output. So that instead of <img typeof="foaf:Image" ...
0
votes
1answer
27 views

Editable fields in views

I am hiding a field using hook_form_alter, because I only want to be able to edit this field in views. I then use the Editable Views Module to display these fields. My problem now is that when I ...
0
votes
0answers
17 views

How to duplicate a config entity via EForm

I am working with the EForm module and I have created an entity form using the UI, let's call it test_form. Now what I want to do is be able to duplicate this test_form into test_form_duplicate and ...
0
votes
0answers
11 views

How can I escape the brackets so they are seen as literal characters

I am using clientside validation along with the field UI module in a Drupal 7 site to request some custom input fields on user registration. I need to set some custom error messages using the ...
0
votes
0answers
14 views

Cannot alter clientside validation error messages for fields added with the field UI module

I am adding some custom fields to a registration page using the field UI module. I'm also using the clientside validation module to display error messages on required fields. I am able to change the ...
0
votes
0answers
10 views

using rules module : how i can adding page with the name of text field form when i click in the button

I want to automatically create a page had like name the one that I put in the fields: title of the node, here is the image: the steps that I want: 1 . enter a name of the node (example: Name of ...
0
votes
1answer
13 views

Multiple field value amount based on role

I am looking to add a single image field to a content type, and allow a different amount of images based on a users role. Business Free User can upload 1 image (as profile pic) Business Silver User ...
1
vote
1answer
17 views

Can't access custom field through entity_metadata_wrapper

I've created a custom field and widget with the Field API. I've added this custom field to one of my node entities by using the Field UI and named it field_pec_uuid. However, when i try to access the ...
0
votes
0answers
13 views

Contextual filter on one specific field within view

I'm having a view with 2 fields, both displaying pictures. I'm having 2 contextual filters as well. These contextual filters work well separately, but as it is, I'll have to use them both to get all ...
0
votes
0answers
6 views

When is data field 'save_value' set and when not?

I am printing a node using the following code: $node = node_load(arg(1)); $output = field_view_field('node', $node, 'body'); dpm($output); And I saw that sometimes the data field ...
0
votes
1answer
19 views

How do I override/theme Views REST Export display field?

I have a REST Export view display setup in Drupal 8, delivering node fields. The challenge: I want to theme/tweak/alter the output of JSON or HAL_JSON for and image field. Currently, it's rendering ...
0
votes
2answers
24 views

Show different fields when adding a content depends on the language

i have a question about a multilanguage feature which i don't find. I have contenttype with many fields (about 20 fields). Now i want to translate this page in a few languages. My problem is that some ...
1
vote
1answer
13 views

Search API module causes server error when saving index fields

I am very new to Drupal, so please let me know if I'm doing something wrong. Using the Search API module, I would like to go change some fields of my Node Index. For example, I would like to uncheck ...
0
votes
2answers
38 views

How to relate a field to another field in content type like a foregn key?

Can anyone guide my to the best method or module to connect 2 fields together? I want to create a field called (Author) in a content type book, which will refer to a field called (name) in a content ...
0
votes
0answers
12 views

How to access node field from field template?

Afternoon all, I have a node of type X. This node has a list field and a field collection. I've created a node template for node type X and a field template for the field collection. From within ...
2
votes
1answer
88 views

Move required span of fields outside the label

Normally in Drupal if a field is required, the Asterisk sign would render inside the <label> tag in a <span>. for some reasons I'd like to move the span outside the <label> and ...
0
votes
1answer
23 views

“Undefined index” error for field which is defined

I'm getting a strange error on a Views page, even though the page works. I get ten instances of this error: Notice: Undefined index: field_video in include() (line 28 of ...
2
votes
1answer
86 views

Use a Custom Field in page.tpl.php

I have a custom field called site_category that I am using in a few different content types. The field site_category is an entity reference to a content type which has only one field defined: Title. ...
0
votes
1answer
26 views

How to restrict field formatter to selected fields?

I created new field field_csob_srcode in my custom code: <?php $field = array( 'field_name' => 'field_csob_srcode', 'type' => 'text', 'settings' => array( 'max_length' => 4, ), ); ...
2
votes
2answers
34 views

Categorizing Content

I want to have a drop down field available so that when a content author (user) creates a new page, they can select which section of the website this new content should get placed. For example, my ...
0
votes
0answers
23 views

How content type field can get a value from a view

I need a field in my OG content type to get a numerical value from an existing view (OG members base table), so that I can use Computed Field module to run a simple calculation against the value of ...