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

learn more… | top users | synonyms (1)

0
votes
0answers
16 views

How to render views field without executing a view?

My task is to update field content via AJAX on node page and on view page both. On node page I can get rendered content of any field by calling field_view_field('node', $node, $field_name, ...
0
votes
2answers
23 views

Create many to many Relationship with a specific fields in a Content type to taxonomy

I am currently encounter a problem, I have one content type (Type) and two taxonomy needed to be link up, in that content type, I need to apply a many to many relationship among a field (Name: Core) ...
0
votes
0answers
15 views

Inherit some fields from referenced Nodes?

I need to link one content type to another via inheriting certain fields, similar to this guy, but automated. I have a content type called 'Session', under which you can assign 'Classes' via Node ...
3
votes
1answer
41 views

What is the correct way to render content from custom content type?

I am new to Drupal and am realising that there are a number of ways to perform even the most basic task but it is hard to know which way is right. When rendering fields from a custom content type ...
0
votes
0answers
15 views

Render array from custom field formatter not displaying

I'm attempting to create a custom formatter for a Multifield that takes a couple path values from two text fields in the multifield and creates some simple markup, and I'll then attach a jquery ...
0
votes
0answers
14 views

hook_views_data without any join

i have a custom table created using .install file and in views.inc i am writing code to expose fields to views but i dont want to join that table with node. my code is as follow function ...
0
votes
1answer
6 views

Add Additional (Term Reference) Field to repeating Date & Time Field for Locations

So I have a question that I am not quite sure how to handle in Drupal. (I come from a Wordpress background). So I have an Event Content Type. In this event CT I have a repeating Date/time field and ...
1
vote
1answer
21 views

Comment ID in Comment field

I've added a custom static field to comments. This static field is custom php code but I need to access the specific comment ID using php code in it. So how can I get the comment ID for every comment ...
0
votes
1answer
5 views

What permissions affect fields attached to taxonomies that don't affect fields attached to content types?

On a D7 site, I created a Description field (using filtered text with ckeditor) and a Geolocation field using a Googlemap widget. I attached them to a content type called Accommodation, and they ...
0
votes
0answers
10 views

Expose fileds to views using hook_data

.module file /** * Implements hook_views_api(). */ function core_sms_views_api() { watchdog("test","<pre>".print_r('imhere',TRUE)."</pre>"); return array("version" => "3.0"); } ...
-1
votes
0answers
18 views

Can I safely delete auto-created Postgres Indexes?

Running Drupal 7.X with a Postgres 9.3 database. When adding new fields, 8 database indexes appear to be created for each new field. Running the query "select * from pg_stat_all_indexes;" shows that ...
0
votes
0answers
23 views

correct usage of token in href link text

I have a content type with a text field and want to use that text field as the text in the href link in a block on that page. The block appears as a button and I want to use the text field as the text ...
1
vote
1answer
21 views

Views field: & content: different

What is the difference between the 2 fields as follows: Content: Abbreviation This is an alias of Field: Abbreviation. Field: Abbreviation And if they are the exactly the same, why is Drupal ...
0
votes
1answer
13 views

Registration field not to be saved

After a lot of searching, I've been unable to find the answer by myself, so here's my problem (with Drupal 7) : I've been able to add new fields to my user registration form ...
0
votes
1answer
23 views

Show special roles on user profile

I have a little issue on drupal 7. I want a little object/field on the userprofile. This object/field shoud show special roles of the user (special = "admin, moderator ..."). And is it possible that ...
0
votes
1answer
19 views

How do I programmatically add a field to an existing fieldset that's part of the user entity?

I'd like to know how to add a field to an existing fieldset in a user entity I've seen this example: Add Fields to Field Group programatically http://drupal.stackexchange.com/a/71902/1082 $groups = ...
0
votes
1answer
12 views

Get value of field attached to the file entity in a view

I extended the file entity of type video, which ships with the media/file_entity module, with an extra field "tags". How can i get the values of this attached field in views?
1
vote
5answers
76 views

Best way to add a wrapper <div> to selected fields in a content type

I have a content type called resources which has a bunch of fields including a screenshot image field. When I order the items the screenshot shows at the bottom (or at whatever weight I set it). But ...
0
votes
2answers
14 views

How can a field definiton be imported, either via the admin or in code?

In my admin one of the modules I have installed (I am not sure which) has the ability to export a field definition in code, but I can't see any place where I can import the field. I thought that the ...
1
vote
0answers
31 views

“Remove All” button for unlimited fields in Drupal 7

I've written a custom module for this functionality where my below code is able to delete the files but I think there should be a better way for doing that! <?php /** * Implements ...
0
votes
0answers
18 views

Enter custom/new values in checkbox widget

After having perused widgets, it looks like there's great scope for persisting textfield-type values but not for allowing entry of new values in a checkbox-style display. Is there something about the ...
0
votes
1answer
15 views

Count entitys dependent om field value and as entity reference

I have two node types, Apartment and Building. Apartment has two fields: - "Building" a Entity Reference field that reference to the node type Building - "Rooms" a Text List with values 1 room, 2 ...
0
votes
1answer
23 views

Allowed strings for the text field

I have the form which is created through Webform module and now I need to add one more text field but its value has to be unique and can be only the value from some predefined list of allowed values. ...
0
votes
0answers
9 views

Attempt to create an instance of field forbidden

I am trying to create a field collection that contains a user reference(reference to user entities). I want to assign the collection to my custom entity. When I try to create the field collection I ...
1
vote
1answer
28 views

Is there a module that displays a field only when a condition is met?

I am looking a module that will only display some fields if a condition is met. Basically only administrators or editors should be able to see those fields in the display. In editing mode it should be ...
0
votes
0answers
17 views

add fields to a node mapped to date input.The fields value should be mapped to date value

I want to add fields to the a content type. The user should be able input text values that are mapped to a particular date. Ex: for july 1, a particular field can have a value of 145, for july 13 ...
0
votes
0answers
8 views

can i change the value of comment settings in Drupal 6?

I have a default value of comment settings as 'read-write' but i want to set it to disable. I change this in administer >> content >> content types. But when i wanna create a node, the bloc of comment ...
0
votes
1answer
11 views

Define available default colors for Color Field programatically

I use the Color Field as a field in a custom module from where I create the content type programatically. By default the available colors are defined at this hook: color_field_field_settings_form in ...
0
votes
0answers
7 views

Use flag fields in or as nodes

I love flag fields. Use of flag+fields produce an elevated level of flexibility and are great for some custom functions out of the box. I have a text field added with a flag that I use. However, I ...
0
votes
1answer
8 views

Autocalculated price field depending on language

I need field for my own content type that will show price in currency depending on chosen language (from i18n module) calculated by currency exchange rate from currency module. I've installed money ...
0
votes
1answer
24 views

Field template not being rendered

On our company website we have a people page which amongst others has an image field called 'field_photo' This is being rendered using the following: <?php print render($content['field_photo']); ...
0
votes
0answers
9 views

Alter fields from Search API Views

I want to alter a value from a field return by a Search API View. All that fields are exclude from display except the last one who contain : <h4>[title]</h4> [search_api_excerpt] ...
0
votes
0answers
4 views

Update Drupal 6 CCK fields through another tool

I am looking to update the fields of Drupal 6 CCK through a mini panel where some certain users can only change their information. I am choosing to update out to be an area that customers already ...
0
votes
4answers
87 views

Print Drupal 7 Field in node.tpl.php without labels or markup

In Drupal 7, you can render a field in a tlp.php file like this: But that prints it out with it's label and HTML. Is there a way to get just the raw value of the field. I know you can do the ...
0
votes
0answers
23 views

Unable to remove field wrappers on product page

I'm using drupal-commerce - the kickstart 2 -, semantic-fields and custom field template in my theme. I'm trying to implement this kind of display from semantic-UI. This is the formatter I created ...
0
votes
0answers
34 views

How to use preprocess field to style radio buttons

Trying to set up a preprocess_field.I have list field by radio buttons and I want to override the output like this: <div class="field field-name-field-event-status field-type-list-text ...
0
votes
0answers
22 views

How to create a Workflow field instance in a node?

I want to add programatically an instance of a workflow field into the article content type. This is how far I got: <?php // Create the field singleton $field = array( 'field_name' => ...
1
vote
1answer
17 views

field is Integer and I am getting PDOException error thrown

I have a field called "blog_post_guid" and it is set as Integer. Recently, it is throwing this error: PDOException: SQLSTATE[22003]: Numeric value out of range: 1264 Out of range value for ...
0
votes
0answers
12 views

How can I get Node tokens to be available for my fields

I am currently using Background Field module to set a background image and I want to set the css selector to incorporate node->nid. However it seems to not be available for me to use in my field but ...
1
vote
1answer
14 views

field.tpl.php available variables

According to the documentation, these are the available variables: $items: An array of field values. Use render() to output them. $label: The item label. $label_hidden: Whether the label display is ...
4
votes
4answers
225 views

A better solution to make image field into div background?

In Drupal 7, I want to turn my image field in Views to looks something like <div style="background-image:url([field_someimgefield_image]);"></div> so I can apply the JQuery Parallax ...
0
votes
1answer
34 views

Display field from referenced entity using Display Suite and Views

I have a view which displays some products (node) teasers. In the products, I can select a producer (taxonomy term). Now... In the products teasers I want to display the country, which is a field ...
0
votes
1answer
13 views

Allow user to translate specific field?

I have a content type called profile where a user can enter data and thereby create an own profile. Now, most of the profile fields are numeric but two of them are text areas. As my site is in German ...
0
votes
0answers
6 views

Random Array Unset When using drupal plugin fileds collections

I have installed fields collections in drupal to create TV Show Schedule. when i try to get Schedule details for current date in that randomly an array get's unset Eg : i have custom field in the ...
0
votes
0answers
11 views

Adding a field to choose others items of content

Using the Field module, I want to add a custom field which list content (of many different types) so that I can select some. This is so that I can add related content to an item... any ideas? Connor ...
0
votes
1answer
6 views

User listing not showing up with user reference when create programmatically

I am using the References module to create a User Reference programmatically. However, when I use the field that is created, there is no listing of the users to choose from. The User Reference works ...
0
votes
0answers
17 views

How to store replacement patterns in a field and get them to be replaced in a view?

I have two product types: Online Store and Product. The Online Store content type contains information such as name, URL, etc along with a Product URL template text field. What I mean by that is the ...
0
votes
2answers
21 views

Change Views Handler for entity schema field

I want to have a numeric value in my db treated as boolean by drupal. the field is defined in the hook_schema like this 'myfield' => array( 'type' => 'int', 'unsigned' => TRUE, ...
0
votes
1answer
91 views

Node custom property exposed as extra field

I'm trying to add custom property to node bundle, my code so far: /** * Implements hook_entity_property_info_alter(). */ function mymodule_entity_property_info_alter(&$info) { $properties = ...
0
votes
1answer
34 views

How to print the raw value of a custom user field in comments

I want to print a custom user field of the commenters. It is an Link field (https://www.drupal.org/project/link). Some users have that field completed and other not. I've read a lot of posts related ...