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

learn more… | top users | synonyms (1)

0
votes
0answers
9 views

scandir error with quote inside $field->original_value

Can you explain why in my views-view-field--path-1.tpl.php this code: $dir="sites/default/files/calibre_server/".$field->original_value; $files=array_diff(scandir($dir), array('..', '.','')); ...
0
votes
2answers
13 views

block only visible if 'field_date_value' is in the past

On D7 website. What code to use if I want a block only visible if the 'field_date_value' of a date node lies in the past?
-1
votes
1answer
20 views

Is there a module provides UI to create field index?

My views are quite slow in some cases, needs create indexes on field tables. Is there a module for that?
1
vote
1answer
21 views

Do I need a custom content type, entity, module or field?

I'm working on a product information manager, and I have a content type of product which needs to reference stock and price levels for each supplier from a different database - these are stored as ...
0
votes
1answer
18 views

Add value to every user in data field

I'd like to do simple thing, but because of drupal serialized data field don't know how to. I'd like to set for every user a variable in "data" field, I do it manually when user edits its profile, ...
0
votes
0answers
15 views

How to add multiple fields in field group module?

I'm using Field group multiple module with drupal 7. I have added my field group, then added all fields as shown in the image bellow: But I didn't find the possibility to add the button "Add another ...
0
votes
1answer
21 views

Drupal 7 - How to loop foreach in multiple value in custom view

I'm customizing a view (in views-view--myview.tpl.php) based on a node which has a field with multiple value (field_galerie_image). I'm trying to list in a foreach loop that particular field, and I ...
0
votes
0answers
14 views

Correct way to extended Field Settings

I'm doing something that works fine but I get the feeling there is a better way. I have managed to extend the field settings in the field's manage page to add two new checkboxes. The checkboxes in ...
0
votes
1answer
10 views

Role to edit user profiels but not administer accounts

As far as i can tell drupal allows me to make a user role able to edit other user profiles(edit the profile fields) only if the role they have includes "Administer users." When this is set a role can ...
0
votes
0answers
12 views

Entity Reference - adding fields to reference?

I'm using taxonomy and nodes to create a tree structure. Inside the taxonomy term I created an Entity Reference (referencing to nodes). I know this looks like the world upside-down, but for this time ...
0
votes
1answer
19 views

Add a signature and date line to node print template?

I am trying to find the cleanest way to create a signature (your written signature, not forum signatures) and date line on printable pages. I would like to do it without actually changing template ...
0
votes
1answer
17 views

preserve format of node body

for output display I used http://foundation.zurb.com/docs/components/accordion.html I have the following code: <section id="main-content"> <dl class="row accordion" data-accordion> ...
0
votes
0answers
11 views

Hide/Show certain fields with rules based on userpoints

Is there a way to show/hide certain fields using rules and only show those fields by spending userpoints?
0
votes
0answers
18 views

Drupal migrating cck int_phone field (6 to 7)

I'm trying to migrate the phone field type ('int_phone') that are in CCK fields from drupal6 to drupal 7 using the CCK migrate tool but I continuously get this error, Error creating field ...
0
votes
0answers
8 views

Eck form values is not inserting in the database

I am using ECK and create 2 form but 1 forms is not working fine.. i am calling 1 function on submit of eck, calling function is work, but eck not storing values in the database, I have create 3 ...
0
votes
2answers
28 views

Alter a field by select list in entity form

I have a problem with Ajax and some fields in my entity form. i have a select list in my form and when i change the selected option i wanna increment another field. To explain better, i can create ...
0
votes
0answers
18 views

How can we show data in auto complete way in a content type 's input field [closed]

I'm new the Drupal, and I'm using Drupal 7. I've created a content type called "Travel Story", Here I've input field called visited country. I want to provide list countries name in the auto complete ...
0
votes
3answers
34 views

Display field inputs side-by-side in node edit form

I have quite a few Field Collections on my node edit form that each have three text input boxes. By default drupal displays them one on top of the other which makes for a very long page: Ideally ...
0
votes
0answers
18 views

Field Reference - context of single node with multiple entries of field

I've a problem where I have not found an example yet and my attempts to solve this by myself have not been fruitful: I have two content types where I need to reference the (multiple) entries for a ...
0
votes
1answer
15 views

Adding new fields using hook_field_schema_alter()

I have an entity whose field schema is already defined and now I am trying to add couple of fields to it. But I am not sure how to code it up using schema_alter.Below is an example on how I would ...
-1
votes
1answer
25 views
0
votes
1answer
12 views

Attaching Conditional widget on Drupal Field

I have extended drupal user registration form by attaching fields to user entity. One of the field is to let user select duration. I have set it up as radio button. Form: When you started: (radio ...
0
votes
2answers
18 views

Safe change of field type from text to email or link

I have some field types that are in text and have data and I need them to be a link or email type (ie. email module.) I realize there are several approaches: change in D7 database. Use the migration ...
0
votes
3answers
27 views

How do I get a form to allow additional values for a field?

I need to have a way to allow for multiple values to be used for a field. For example, Someone has school name(s), and the form description says, "Add your schools here." I add a school, press a ...
0
votes
1answer
17 views

Key / Value fields module where you can choose the type?

Is there a module which creates a field where you can choose the field type of the key and also the value during content type creation?
0
votes
0answers
26 views

field_data_field missing table

I'm rebuilding (after Drupalgeddon) and I have a table that's gone missing... somehow. It's being used to build Views displays for the homepage and so the homepage isn't loading at all. Which is ...
1
vote
0answers
8 views

Language dependent fields

Is there a module that will allow me to display a field dependent on what language is selected? I have a field that I'd only like to show for Swiss pages. I tried the Conditional Fields module but it ...
1
vote
1answer
22 views

Set entity reference field in form to readonly

I am building a custom module to set default values for entity reference fields. To avoid overwriting these defaults, i would like to set the field readonly. While I got the defaults to work, setting ...
0
votes
1answer
9 views

Faceted Search Block displays values from other facet blocks

I'm using the Faceted Search API (drupal 7) and followed this Tutorial: Part 1 and Part 2 All worked fine but there's a little Problem with the Values each Block displays "Kategorie" and "Serie" ...
0
votes
1answer
23 views

How to remove title field from content edit page?

i want remove field title in any content type on drupal 7. i use module display suite and hidden title but when i add new content that "title is required .......................................... ". ...
0
votes
0answers
22 views

Display json data as a tree

Is there a module which exists which adds a field which can contain json data and display it as a foldable tree? Everything I've found seems to want to show array data as json, and not really the ...
0
votes
1answer
22 views

Responsive images with multiple fields

I'm working on a site that has (and must have) three image fields for out three breakpoints. We could call them field_img_mobile, field_img_tablet and field_img_desktop Is there a way (a module?) ...
0
votes
1answer
33 views

How do I set a value based upon other values?

I have a content type of product, and want to set the postage cost for the item which is dependent upon length,width,height, weight but also product kind - e.g. hazardous items needing special courier ...
1
vote
2answers
33 views

Drupal views show a field in table if current user is node author

I want to create a view block that shows all published nodes of a certain content type. I've included an image below. However the trick here is to only show the link Print Report if the logged in ...
2
votes
2answers
25 views

Is there a way to do text substitution within fields in Views?

I usually find what I need in here without asking question but this time couldn't find anything. I have a view which lists documents from a file field of one of the content types. This content type ...
0
votes
0answers
21 views

Add to cart form with ability to buy two same products with line item fields

I'm looking for a solution to make add to cart form for contact lenses. For choosing vision defect parameters I use line item fields. The problem is that user needs ability to buy second product if he ...
0
votes
0answers
20 views

How to use Entity Metadata wrappers for fields of a bundle?

I am not able to access the fields of a bundle using entity metadata wrappers.Here is what I am doing. //Entity Obj is the loaded entity object which contains a bundle whose fields I am trying to ...
0
votes
0answers
10 views

How to get field data for Panels style plugin? (ctools context?)

I think this is a Ctools context question. I'm writing my first Panels style plugin and am having trouble getting field values from nodes inside the pane. I'm basically trying to recreate the plugin ...
0
votes
0answers
11 views

Content Type Fields Aren't Showing

PROBLEM: I'm trying to create another field for a content type but it won't for life of me show up on the front end. I've got a table that echoes out individual series products here: It's ...
0
votes
1answer
9 views

Ubercart change product image thumbnail in cart view to a different field

When you install ubercart, there is a product image field that is used by default. The field is labeled uc_product_image. I decided not to use this field for different reasons, but now I notice that ...
0
votes
1answer
28 views

File browse CCK field

Is there a CCK field where I can add a link to a file, not an upload but something that will save the link as a URI.
0
votes
0answers
12 views

Drupal Fields Issue - Not displaying [closed]

I have added a new field and set it to display under the category "Woofers" as a text field widget It's showing up under Products to be able to add something to the field: However, it's not ...
0
votes
0answers
19 views

Optional profiles on user registration

I am using profile 2 module to add different profiles on registration page, site have 3 type of users Members Experts Students I have added 3 profiles Member profile Expert profile Student ...
0
votes
1answer
22 views

Hash method not providing password that is stored in database

I created a custom form for the registration in drupal... but i am not getting how to store the password in hash format in database ... AFtere research i have got this : require_once DRUPAL_ROOT . ...
0
votes
1answer
30 views

Can´t create more than one content type group

I am using Drupal commons for a community social network. I am trying to create a second group based on a content type named Leagues. In order to create that group I went to: ...
0
votes
0answers
19 views

Deleted Fields PDOException Error [duplicate]

I removed some fields from phpmyadmin; now I get the following error from Drupal: PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table ...
3
votes
1answer
48 views

Is it OK to programatically access fields defined through the UI?

This is a question about "best practise". I've taken over a project which I'm working on right now, and the custom modules this project comes with all access fields defined through the UI. In other ...
0
votes
0answers
27 views

Override the display of a default image - Drupal 7

I have a custom content type (my_content_type) with a an image field called featured_image. featured_image has a default value which is displayed when a specific image is not provided. For certain ...
1
vote
0answers
62 views

Drupal 7 - how to add custom field token to webform default value?

I want to add node-field data into the web from block via tokes as with Webform 7.x-4.1 this should work. But tokens from custom fields are not available in a webform(block) ? [node:title] and ...
0
votes
0answers
28 views

How to hide empty column during csv export in a view?

I want to hide the empty column from csv file which is generated using view data export module. I have try change in "No results behavior" options but still empty column header display in csv files. ...