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

learn more… | top users | synonyms (1)

0
votes
0answers
8 views

How can I batch edit fields?

I have a content type with lots of fields. I would like to set most of the fields to custom permissions (admin only). Is there a module for that? I can only think of a bit of imacros magic to do this. ...
1
vote
2answers
47 views

t() function doesn't render HTML

It is the t() function and the way I assigned value to a body field $my_body_content = t('!frequency new comment(s) sent to <a href="!url">!title</a>', array('!frequency ' => ...
0
votes
0answers
10 views

Missing field in teaser block

Ref: http://religiouslife.princeton.edu/ There is a Room number field in one of my events teasers that is not displaying. I do see the field in Firebug with a class of "roomtxt." The field has ...
0
votes
0answers
17 views

Get ID name from form input field and reuse

I'm trying to figure the best way to get a form id from the search block form for example. I want grab the id that's in the input field and insert that name in my label tag. For example <input ...
2
votes
1answer
28 views

hook_form_alter based on path

I don't know if this is possible but could I do something like <?php $foo = current_path(); print $foo; ?> in page--foo.tpl, then something like function ...
0
votes
1answer
19 views

Theme generic file link in node template

I want to change the text on a link to download a file in my node template. In Manage Display I have selected Generic File as the formatter which outputs this but I want to change it to this ...
0
votes
1answer
13 views

How to pass field data from custom node type to webform block?

I'm using the Webform module's block on custom content type. The webform has some text fields and I want to pass some data from my custom content type fields to webform fields. I tried to add a ...
0
votes
0answers
13 views

How to get field from Field Collection in Views template?

I have a field collection - field_video_item. I need to get the image field from this field collection in a Views template. How can I do this?
-1
votes
0answers
18 views

How to arrange fields in grid structure programmatically in drupal?

I am using field_view_value to render fields in template.tpl.php. In between I want the fields to be arranged in a grid before they're rendered in the template. How do I do this?
0
votes
1answer
34 views

Conditionaly display fields of another node on a node page

I am a Drupal beginner, have some CMS and PHP knowledge. I am strugling with a case which intuitively seems like a thing that had to be been solved many times. I have these content type: Product ...
0
votes
1answer
24 views

How to add an id element to a field in Drupal 7

I am try to find out a way that I can add in #ID element to a link field in Drupal 7. When you Edit the field it give you a chance to create a CLASS (Additional CSS Class) for it, however I want to ...
0
votes
1answer
31 views

How to add values to field collection fields within user profiles

I have a field collection that contains several other fields (text and taxonomy reference) for collecting and unlimited number of addresses. I have added this field collection to user profiles. This ...
1
vote
1answer
17 views

How are node and field tables related in MySQL?

I am working on a query that involves the field_data_body Drupal table, and I have been asked to return corresponding node ids for the relevant rows in field_data_body. However, after reaching a copy ...
0
votes
4answers
38 views

How to display the form fields of content type in a table using custom template file?

I have created a content type Article including the fields Field 1, Field 2, Field 3 ...... All these fields have multiple values. I also created the custom template for this content type. Now I ...
0
votes
1answer
11 views

Show workbench moderation comments on node view page

I use the Workbench modules suite: Users do change the state of content items (moderate) and can enter a comment about that change. This status change history can be seen in the tab ...
0
votes
1answer
29 views

Content type Images not displaying

I have created views to display images. Clicking on the image takes to content. View displays the image but when clicking on image it takes to content where image is not displaying. Please help me.
0
votes
1answer
20 views

Add an attribute to a specific tag in text body of page

I would like to add an attribute to a specific tag in the text body of a page. I was thinking in this direction: add MYTHEME_preprocess_field(&$variables) to template.php apply regular ...
0
votes
0answers
3 views

Is it possible to use use $page to render profile2 fields for every user?

I need to separate some elements from the main block, so I'd like to take them from profile2--account.tpl and place them in page--profile-account.tpl. I got it to work for one user, but then I ...
0
votes
0answers
8 views

Adding fields to Flag Lists

I'm using the Flags List module to manage user wish lists. I need to add additional fields to the lists such as "body" I go to /admin/structure/flags/manage/fl_template/fields add the required fields, ...
2
votes
2answers
31 views

Customize HTML for field in field collection

My field collection template is ds-1col--field-collection-item-field-video-item.tpl.php. I need to access the Image field so that I can customize the HTML. I've tried the following by neither work: ...
0
votes
1answer
23 views

Conditional statement in custom template file using Display Suite

I've been searching and scratching my head for a while on this one. I'm working on a blog page where the user can tag posts, but it is not required. I only want to output the label 'Category' if tags ...
0
votes
1answer
15 views

Show Field Collection fields together in same field item

I have a field collection with two fields - Image and Caption. How do I get the two fields to display in the same field item? Right now the HTML is: <div class="ds-1col entity ...
0
votes
0answers
9 views

Extra fields with DisplaySuite are always visible

Using DisplaySuite module, it's no more possible to use field_extra_fields_get_display() to get informations about extra field visibility state because its result is always visible. I need to write a ...
0
votes
1answer
30 views

Taxonomy terms with conditional field

50 terms and each term needs to have radiobuttons or "other". Food - o in price - o extra price Drinks - o in price - o extra price WiFi - o in price - o extra price So "in price" and "extra ...
0
votes
0answers
10 views

Adding possibility in checkout: include VAT in price but don't show on invoice

When filling-in billing information, i would like the customer to have the possibility to choose between a normal invoice and a so called "private" invoice; the latter means, VAT will be calculated ...
1
vote
2answers
25 views

A button to delete multi images on one click from imagefield [duplicate]

In a content type I have an image field. For the upload I use Multiupload Imagefield Widget. So now it is easy to upload 10 images into one field of the content type. If I want to remove this 10 ...
0
votes
0answers
17 views

How to store fields of a particular content type in database using serialize()? [closed]

I have a content type list. For each Content type, I have it's own fields. I stored selected content type value in database. Now I want to store it's fields also in database. This is giving me ...
0
votes
1answer
29 views

Syntax for getting plain field value in computed field

I have a couple of simple computed fields that combine other fields (such as first name and last name) but I'm not getting the right values from the fields. I sometimes get only the first letter of a ...
0
votes
4answers
18 views

Adding Drupal field “subtitle” to page template

I have created a Content Type called "Happy Days". I have created a field in that called "subtitle". In my template "page--happy-days.tpl.php", I want the field "subtitle" to show wrapped in an ...
0
votes
0answers
18 views

How to rearrange View fields in different order

I have a View with 4 rows & 2 columns. Each item is composed of an image & title. The left column needs an image on top & title on bottom, the right column needs to invert that order. How ...
0
votes
1answer
18 views

Get delta value of Multifield

How do I get the delta value of a multifield in a View template? I need to get the delta value in the Row output View template.
1
vote
3answers
50 views

Naming conventions for fields machine name

There is a naming convention for the fields machine name such as: entity_name_field_name for not shared fields or field_name for shared fields When I go to start a project which should be the ...
0
votes
2answers
28 views

How to safely remove fields from create content - project

I am customizing the Project Management (pm) module. When I create a new Project content type I do not need some of the fields such as price and currency for my particular application. I am concerned ...
0
votes
0answers
9 views

Undefined index: comment_node_quiz in Field List report after uninstalling Quiz module

After uninstalling Quiz module, my Field List report displays about 40 red notices about undefined index. They look similar to this: Notice: Undefined index: comment_node_quiz in ...
-1
votes
1answer
17 views

Date selection with price - without commerce

I need a option to let users set up dates and price when creating node with unlimited number of entries. For example: "from: 15/01/2015 to 20/02/2015 - Price = 50 USD" from: 21/02/2015 to ...
0
votes
0answers
13 views

Go to Checkout Complete without checkout payment

I created a field field_cel_ck_scholar. It's a boolean. I created this field in a customer profile type. My customer profile type is added in a pane in my checkout. When this field is equal TRUE, I ...
0
votes
0answers
7 views

By Pass Payment in Checkout via Rules

I do not know much Rules. You would know a configuration that allows to check a field of checkout and if this one is checked (eg field_ckeck), we pass the milestone and end up on stage Complete? ...
0
votes
1answer
36 views

how to modify field of a node?

I have a custom text field which I use to display some voucher code to users. I have it in a custom content type named (machine name) : 'add_deal'. What I want to do is to style the field when the ...
0
votes
1answer
20 views

Programmatically show field in different regions depending on content

I'm creating an Omega sub theme & three regions ("Sidebar 1", "Content" & "Sidebar 2") inside of the "Content zone". "Sidebar 1" & "Content" are both set to always show, "Sidebar 2" ...
0
votes
1answer
30 views

How to auto generate the age using DOB field?

How to auto calculate the age using DOB field (Date field, DOB = 'Date Of Birth') in drupal7 site. Can any one help on this?
1
vote
1answer
20 views

Custom fileds are not visible on user profile page

I am fetching those value of this fields from database. But somehow, I couldn't be able to see it on user profile view page. Can anyone help me to solve it out.
1
vote
1answer
30 views

How to order multiple values in a field collection

I have an Content type which includes a field of type Field collection, of which there can be an unlimited number of values. I can't work out how to order the rows of data that are displayed by this ...
1
vote
1answer
37 views

Controlling node's content using field setting

In a module I am developing I wish to control display of a link in node's content depending on user's choice. I want to display this option to user(whether he wants to display the link on particular ...
0
votes
0answers
10 views

Entity reference item list with preview images?

In a node type 'album' I have an entity reference field 'photo' that can be used to reference nodes of the type 'single_photo'. This works fine – using the module Entityreference view widget lets the ...
0
votes
0answers
17 views

Efficient/Correct way of accessing a field of a referenced node

I have an Article node with a field_recipe field which references multiple Recipe nodes which has a field field_image. In the Article node template I have this in my code: $recipes_raw = ...
0
votes
0answers
21 views

How to get all taxonamy terms related to a node [duplicate]

I created a content type event with three Term reference fields. I created nodes using event content type with Term reference fields. Now i need to get all the terms related to that node in an array ...
0
votes
1answer
11 views

Listing profile fields in tableselect

I'm attempting to list out all the fields a user profile object would have into a tableselect. This will be displayed on the configuration screen of a module that I have been building. I have managed ...
0
votes
0answers
27 views

Fields not being deleted

I am having problems on an installation I have got from a new client. I have updated to 7.38 hoping for a fix, but it hasnt helped. Trying to delete fields manually by enabling them on a content type ...
1
vote
1answer
37 views

How to display the translated value of a boolean field when viewing a translated page?

I have this problem with translation of a custom checkbox (boolean) field. To be specific, I'm able to translate everything but the options (Yes / No) that are showed on node view page. I have ...
0
votes
1answer
18 views

Field Formatter: how to know where “i'm”

I have a node type called fotogallery. In this node type there is a field of type "field collection". With hook_field_formatter_view() I create a custom output for this field. Now, the same node ...