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

learn more… | top users | synonyms (1)

0
votes
0answers
3 views

Drupal 7 Views Image Field Default Image Not Displaying

I am trying to make a view using fields to display a default image that I set in Manage Fields of the Content Type. Is there any way to do this or do I have to hack views or maybe just some workaround ...
0
votes
1answer
6 views

How to add value in to multiple value field (entity reference)?

Im inserting into user field reference to other users. This is my code, but it is overiding all values of field, i just want too add value and keep values added before. <?php global $user; ...
0
votes
0answers
3 views

Term description and field_attach_update()

When I programmaticaly change term fields and term description, I can save changes by calling taxonomy_term_save($term); But if I don't want to save the term itself, only changed fields, I want to ...
0
votes
0answers
27 views

How can i add value to multivalues field? (programatically)

is a way how can i add value into multivalue field, on the end? Exaplme: My user have multi values field whose will contain references to other users like "friendship". Now i will insert there ...
0
votes
1answer
18 views

Automatically show one selection of a field based on the selection of another field in a view

Sorry if this is a repeat question but I'm stuck! Ok, I have a content type named 'Media' that is basically a bunch of videos, pictures, podcasts as well as a small write up that explains what it is. ...
0
votes
1answer
16 views

How to display or hide a Views field based on it's length?

I have 2 fields in Views the first of which is always displayed, and the second I would like to display only if the first field has more than 70 characters. I have tried to do this using Views ...
0
votes
0answers
18 views

Is it possible to insert value in field using rules?

How can I insert data in database using rules, I created entity type job and added some fields. I want to insert values inside those field when the flag button is clicked. I tried "set a data value" ...
0
votes
0answers
6 views

Compound Field. Allow validation only on content edit

I have created a compound field following a tutorial in a book. I have also implemented validation which is working fine. I have also managed to only call the validation when content which uses this ...
0
votes
0answers
8 views

Features auto delete field

I've been using Feature to provision changes between my DEV, STAGING and LIVE sites. What I'm finding is when I make a field redundant on a node type on my DEV site, features does not automatically ...
-1
votes
0answers
27 views

how to have an option field in the view

Basically the project is to create a system for people who are want to hire people. every freelancer has a profile which is a content type. The people should be able to search for a freelancer using ...
0
votes
1answer
16 views

When Num of Values is “Unlimited”, create begins with two instances

I've created a custom module for a field in drupal that has two fields, Position and Affiliation. I add the field to my test content, and set Num of Values to "Unlimited". The Problem: When I go to ...
0
votes
1answer
22 views

How do I render multiple form fields select boxes in a single row

I am trying to render three dropdown boxes to be on the same line using a tpl file. Here is the snippit of code I am trying to work with: $form_stuff = array(); $form_stuff[]=$form['field_list_1']; ...
0
votes
2answers
28 views

Boolean single on/off field - how to make it NOT render the off option?

I'm having some issues with boolean field. I want to have few fields that can be turned on/off, which will be used to show if something is available in the content. So I thought single on/off ...
0
votes
1answer
14 views

User select filtered by taxonomy on node forms

I’m looking for something like Hierarchical select (https://www.drupal.org/project/hierarchical_select) based on the user selection filter by term (taxonomy). In a node forms, I would like a list ...
-2
votes
1answer
14 views

How to adding dynamic field by fieldset in Drupal? [closed]

In my website there are a reference text and then there are some translation of that reference text. I want to have a set of dynamic fields to add translation. for example when editor of website ...
0
votes
0answers
9 views

Drupal 8 custom entity field “datetime” [closed]

Drupal 8. Trying to do own entity and create "datetime" field, some one have examples for that ? because what i did have problem with removing after. "NestedArray::getValue() must be of the type ...
-2
votes
1answer
15 views

How to create dynamic fields in Drupal?

I am going to create a content type with daynamic fields, How to do it? for example when user clicked on add image button can add some more images.
0
votes
1answer
18 views

View: No Result = Last

I have a field 1 Name and another field 2 Year and have it sorted in Views first by Name and second by Year. If Year is empty I want it to be placed last under each letter. So lets say I have 5 James ...
0
votes
1answer
16 views

Custom field not saving updates

I've created a widget which has two textfields and a hidden uniqid. One of these fields is for the name of an item, the other is the number of people who can be involved in that item. These save ...
0
votes
1answer
14 views

Where is saved the value of the 'help text' of field of content type?

I know that you can set help text for any field in the content type, but where this text is saved in databese, because I want to access it in other way not only for tooltip? Thanks
0
votes
0answers
18 views

How do i print field collections which are a field of another field collection in node.tpl.php files?

I am using the following code to embed a field collection inside node.tpl.php files: <?php global $base_url; $wrapper = entity_metadata_wrapper('node', $node); $formtype = field_get_items('node', ...
0
votes
0answers
27 views

Copy values from one field to another

I've run into a problem where i set the maximum length of a field to short. There are 500+ nodes using this field so delete and re-write everything would be very time consuming. Is there an easy way ...
1
vote
0answers
15 views

Broken handler in views

I'm using the 'commerce funds' module, there is some default views included, one view shows transaction related to the current user. /user/%/funds/%/transactions the view shows three fields from ...
0
votes
2answers
30 views

What's the best way to create a content type with multiple fields that link to an external URL?

I have a content type named "News Clip" that has four fields; Title, Description, Image, URL. In my display, I want the Title and Image to link to the URL value. Drupal has the concept of linking ...
0
votes
0answers
16 views

new entity with entity metadata wraper and multiple collection fields, how set a first new collection field ?

I have one custom content. It contains a multiple collection field. If I create a new entity (via entity_metadata_wraper), how can I set a new multiple collection field ? by example : $new_entity ...
0
votes
0answers
10 views

See Price In Cart Feature On Certain Products - Drupal Ubercart

Is there a way that I can have certain products display a "See Price In Cart" inside the actual product node, and in the catalog "view". I only need this functionality on some of the products, not ...
0
votes
0answers
25 views

Field Relation Between Content Types and Some Questions

I have two content types (Movies and Actors), both with picture and name fields. In Movies I have a field collection with two fields: name and character. This name field is a node reference to Actors ...
1
vote
2answers
21 views

Turn off revisions for content types that contain certain types of fields (e.g. Field Collection)

The Field Collection module does not support revisions. Yes there are lots of patches which are still under review. But what I want to do is create a module that on the node edit screen, queries the ...
0
votes
1answer
24 views

How can I indent parts of a Views field?

I have a content/node View listing several node fields in an unformated list. The fields are displayed inline since they combine to make a message to users; on their own the fields don't mean much. ...
0
votes
2answers
31 views

Feeds: Is it possible to set a unique field other than the title field?

I'm trying to create a feed importer that uses a unique ID that is NOT necessarily in the title field of the content type. For example, were I using the feeds importer to import a list of contacts, ...
0
votes
1answer
21 views

Extract individual fields from rendered user

I am developing a community website for our nonprofit using Drupal 7. We have two separate types of members -- regular members and business members. Business members can access subscription options to ...
0
votes
2answers
16 views

Create 2 separated taxonomy pages with views

I have 2 nodes type "Article" and "Page", I also have 2 taxonomy for each node type are "Taxo 1" for Article and taxo 2 for "Page", is there any way to create 2 seperated views so, with ...
0
votes
2answers
19 views

Restricting the term reference field from creating a new vocabulary term

I have a term reference field in a form and it is an auto-complete term widget, it has a vocabulary that supplies the values to it. My intention is to allow users to input only the terms which are ...
1
vote
1answer
49 views

Where does field help text get filtered?

Drupal 7 fields, by default, have a nice text box beneath them for Help Text. This is set up with field_ui_field_edit_form(): $form['instance']['description'] = array( '#type' => 'textarea', ...
0
votes
0answers
10 views

Different Entity Reference List for different Roles

I have two user roles like: content creator admin And an Entity Reference Field that: Should only contain a list of the authors nodes (for role content creators) -> I solved this with an entity ...
0
votes
0answers
10 views

Using content field widget in custom block?

I'm trying to figure out an easy way to implement a content field type (image_field) with a widget (imagefield_crop) on a custom block. The block currently has an upload image feature, but I want to ...
0
votes
1answer
35 views

Enable/Disable field values based on another field's value

I am using Drupal 7 with the Entityform and Conditional Fields modules to build a form and need to see if it is possible to disable a value in one field based on the selected value of another field. ...
0
votes
1answer
24 views

How to trim a rendered item before and after specific symbols

I've created a field where I store the URL to an image. I need to display the filename of the image without the part before the slash and without the file extension. ...
0
votes
1answer
16 views

Get entities that share the Entity Reference field

Let's say that I have two content types: Article title body field_ref_term Page title body field_ref_term Those two content types are sharing the same field: "field_ref_term" wich is a ...
0
votes
0answers
10 views

Migrate comments from D6->D7, comments not working

I can't figure out why my comment migration isn't working - the page node and user are in the D7 database, but running drush mi on the page migration isn't adding the comment to the comments table: ...
0
votes
1answer
36 views

Get taxonomy term field value?

I have some taxonomy terms that have an image field in them. I am trying to get the value of the image field in my templates. How can I do this? The field's name is field_header_image. I have this so ...
0
votes
1answer
29 views

Get field from another content type in Views

I have two content types, 'user' content type where I have some info about user and then 'post' content type. Now I have a view that gets all 'posts' and shows them correctly but I would need to get ...
0
votes
1answer
16 views

Integer field radio buttons doen't save

I have integer field with 3 radio button options. When I select one of the option try to save new content it doesn't save the integer value. Field is not required and options are like this: car|Car ...
0
votes
0answers
16 views

How to set field permission on same field for different content type

I have two content type A and B and I have created a field in A by name a1, which I have used in other content type B, so A and B both have field a1. Now, I have installed Field Permission module, ...
0
votes
1answer
21 views

Rules: How to access field values by language

I have content in two languages (entity translation). If I want to use it's field values in PHP, I can access them by code like this: $node->field_name['en'][0]['value'] or ...
1
vote
2answers
59 views

Alternative to creating large number of fields via UI for a content type

We need to create a content type with large number of fields(50+). Adding fields one by one via UI is one option but it seems unnecessary that so many tables get created when adding fields via UI. ...
0
votes
0answers
38 views

7 - Render a taxonomy term in node as a view of nodes?

I have made taxonomy terms render with views withthe tvi module This works OK, but what I want is to have a taxonomy term field that would render that view inside a node. Example: In ecommerce ...
0
votes
1answer
17 views

help users to populate fields

I am making a drupal 7 site and one of the content type has multiple fields, I was wondering if there was a way to assist my users in editing the pages. I looked at the edit function but could not get ...
1
vote
2answers
50 views

Which hook to use to reorder multi-value field values before saving content

I have a multi-value field added to my content type. It is actually a field collection. The users can add unlimited items to this field, and rearrange the items using Drupal's drag-and-drop utility. ...
0
votes
1answer
36 views

Show a product field programmatically

I created some fields such as Color called field_color (taxonomy terms) in the product content type but whatever I do, when I create a product and set the field_color, the color name doesn't show up ...