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

learn more… | top users | synonyms (1)

0
votes
0answers
23 views

Print Custom Terms Fields of Taxonomy in page.tpl.php

Hi I am not an Expert in Drupal. I am facing a problem displaying value of taxonomy terms custom fields in page.tpl.php. What i have already done for this: Firstly i created a custom field in ...
2
votes
0answers
17 views

Override Drupal views fields module with custom module

In Drupal 7.22, I want to override 'views-view-fields.tpl.php' views module with custom 'coutforum' module. The steps I've followed include: 1- renaming the 'views-view-fields.tpl.php' to ...
0
votes
0answers
16 views

Create a wrapper div within field groups on node displays

For ease of formatting I would like to add an inner wrapper div inside of field groups displaying on content nodes and node forms. I'm using the Field Group module to display groups in div format. ...
1
vote
2answers
30 views

How to show a view inside another view on only first row?

I need to display a view inside another view and I'm using Views field views module, It works well, but I need the field (view) only appears in the first row result of the view page, like the ...
1
vote
2answers
20 views

Need help styling a field in a view

I am using D7 and subtheming the commerce kickstart theme. There is a view named Collection Products. I have added a field to the view called Product category: Description (indexed) that pulls in the ...
1
vote
1answer
23 views

How do I change value of a boolean field on a node when a user clicks a button?

I am building a small site for a friend who is getting married and they have their gift list online. Each gift is a node which I am thinking will have a boolean field called something like "bought". ...
0
votes
1answer
19 views

Attribute about not allowed on element article at this point

While i checked the markup of my drupal-7 site in http://validator.w3.org/check it shows me a error: error Details: Attribute about not allowed on element article at this point. I have ...
3
votes
4answers
69 views

Designing different content types with the same fields' name (shared fields)

For my website I need several content types (at least five), but all that have some fields' name in common as title, subtitle, body, teaser, image and so on. Shall I use the same field (machine name) ...
2
votes
3answers
43 views

How can I have a field value that is the sum of other (decimal) field values?

I have created a custom content type with three decimal fields. I need to tally these three fields and then wrap the output of each one with a specific data attribute, stating their respective value ...
1
vote
2answers
25 views

How to add fields with number values

I need to add some fields than can take numeric values and enable Drupal to calculate it. I chose an integer field, tried to do some simple math, but Drupal 7 treats values of integer field as text. ...
0
votes
0answers
15 views

Boolean field; If true in one entity place everywhere else false

I'm looking for an easy way to build the following: I have the following terms: Term1 Term2 Term3 Now I have an field called field_process which is just a checkbox. Term2 has it enabled, every ...
1
vote
3answers
38 views

How to convert an existing field from Text to Link in Drupal 7

If I have a field in Drupal which of type Text, how do I convert it to to allow a link if the field is already being used on the site without losing data?
0
votes
1answer
14 views

How should I implement an alternative file upload?

I want to write a module for Drupal 7 to integrate http://filepicker.io's awesome functionality. It's a simple JS widget that returns a URL of where the file is hosted. I've never written a D7 module ...
1
vote
2answers
14 views

Can't choose checkboxes as field widget in d7

I recall in previous versions (Or maybe even this version and mine is just bugging) you could take text or int fields and supply a list of key|values and make checkboxes or a selectbox from it. The ...
-1
votes
0answers
29 views

How to embed a Google Street View map using a iframe? [closed]

I'm trying to embed a Google Street View map using a iframe (the map) I just copied the iframe (from google map) code into a text area in a node. The text are is set to Full Html. iframe code: ...
0
votes
2answers
14 views

View with nodes but pull only one field from collection

I have a node type of photo-gallery. Each node has a field collection which contains multiple photo fields and caption fields. I want to create a view showing the 5 most recent photo-gallery nodes ...
0
votes
2answers
38 views

How can I recalculate field values of a rendered node?

For example on a recipe node, exposing a "yield" field on a rendered node to recalculate ingredient quantity values
0
votes
0answers
18 views

Drupal 7 - display some node fields only if node is sticky

Is there a module which can manage the node display fields ? I would like to display some node fields, only if the node is sticky I could do this with php but if there is some module doing this will ...
1
vote
2answers
33 views

How to grey out fields with non editable permission upon node editing?

I need the ability to grey out fields with non editable permission i.e. to show certain field values to the user but forbid him/her to edit them, upon node editing. How can i achieve this?
0
votes
1answer
9 views

Add a text field to OG subscription form

I would like to add a text field to the og_ui_confirm_subscribe form so that applicants can motivate their request to the owner of the group. I don't have any problem to create the field and attach ...
0
votes
1answer
24 views

Show field's help text on node page

I'd like to achieve the following: I'd like to give help text for a field in a content type, and I would like to show that help text on the node page as well. I've looked at $content in page.tpl.php ...
0
votes
0answers
15 views

Fetching referenced Wikipedia articles into node fields

I have a content type with the "Wikipedia URL" field in it. I'd like to display the actual Wikipedia article on the node page. The current plan is to add a field for Wikipedia content and implement ...
0
votes
1answer
13 views

Additional fields for Ubercart uc_order_product

I need to add fields to the Ubercart entity uc_order_product. I was looking into the function field_create_instance, but don`t know exactly where to use it. I believe I should attach the field I want ...
2
votes
1answer
27 views

error while editing views

When I'm editing a view and I click on one of the fields to edit them I get a javascript error Error: TypeError: c.curCSS is not a function Source File: ...
0
votes
1answer
13 views

How do you display fields created via the File Entity settings configuration?

I have a question about adding fields to the file type field. Someone suggested usingthe file_entity module, and I tried it out and it lets me modify it's configuration settings, adding a few fields, ...
1
vote
1answer
23 views

How to handle large select lists in content types?

I need to add a city field for a content type in D7. I'm getting it from a federal census table and it's going to be around 35K+ records. Any thoughts on filtering this list down by state and/or ...
1
vote
1answer
27 views

Custom template for content type, How to print a link field as a hyperlinked image

I am making a site for a music festival. I have one content type for attending artists, which includes the following fields of the fields type Link: soundcloud, youtube etc. I would like to print ...
1
vote
0answers
28 views

hide a field using custom php in rules

Drupal 6 only: I have a button field on a petition node for users to sign that petition. I have custom php in a rule to check if they've signed it before. If they have, I need to hide the button. So ...
0
votes
1answer
19 views

Forms api validate float

when using the Drupal FAPI and needing a float number field you have to use type textfield. What's the best way to validate that this data is a float during hook_form_validate9)? Is there a built in ...
1
vote
1answer
42 views

Creating programatically a node that has a programtically created image field that should stay empty

I'm dealing building several modules that should cope with automatic creation of content synchronized with external sources. The whole process is automatized, e.g. everything had been created ...
2
votes
1answer
56 views

How do I programmatically change the body text format on the page content type to full HTML?

I have a custom install profile and I must programmatically change the body text format on the page content type to full HTML. However, I didn't manage to find how to do it. How can I do it?
0
votes
2answers
59 views

Creating complex tables in views in Drupal 7

I was trying to make a report via views in Drupal 7. It's quite easy to generate a table with the headers being the labels of the fields, like the following (being very straightforward): ...
1
vote
2answers
54 views

Make drupal cck field behave as “an add more button”?

Is it a way to make a Drupal 7 entity field behave as 'an add more button', but with finite number of values? For example, initially there is only one form field for inputting the value showing, then ...
0
votes
0answers
19 views

How does the deleted column get set for field_data_field_x tables?

I am having an issue where field data is being purged every time cron runs. This is normal behavior for data that has been marked for deletion (The deleted column in the field_data_field_x table set ...
0
votes
0answers
9 views

Create a %get- based url as a field in a webform that draws %get values from the same webform

ok, so my staff fill in a form with client details. then submit. i'm using the webform report module. i want to create a field type like so: ...
0
votes
1answer
11 views

How do I associate a field value with another value of a multi-value field?

I've run into a situation with a project in regards to field organization. I've got 3 data types, a price, a date range and a quantity. I've currently got 4 prices and a date grouped with it using ...
1
vote
0answers
20 views

Get a field value from an nid [duplicate]

I have the nid of a node and I want to get one of its fields' value. Right now I am doing a node_load on the nid and then using field_get_items to get the value. Is this the right way? It seems kind ...
0
votes
0answers
14 views

Modules/Methods for Faster Data Entry

I have an unlimited-cardinality text field on a node that users need to enter 50-100 values on. Right now, the user has to type in one value, click "add another item", and then click inside the text ...
0
votes
0answers
9 views

How to represent and edit the status of node relations with per-relationship modifiers or taxonomy?

I have two custom content types, call them Location and Goal. I'd like to use something like "node reference" to link all Locations to all Goals with a status. Ideally a matrix of radio buttons, like ...
1
vote
1answer
38 views

Saving custom field value leads to mysql error

I created a custom field as in field_example described, using text_format as type and it shows up a multi line editor without any problems. But I'm facing a mysql error when trying to save a node: ...
0
votes
3answers
30 views

Create node fields with values that change every week but old values are being stored

My company has about 15 oil tanks. Every week a guy checks the remaining oil in every tank and writes down the numbers. I want to create a visual representation of the remaining oil in every tank. I ...
0
votes
0answers
35 views

Keep empty values

I have the following case: I have a field (Long text) with unlimited values. Now I have the following values: Value 1 - empty value - Value 3 By default, the second value would get removed. How can ...
0
votes
1answer
24 views

Need advise to link a cck field with several values to another cck field

I am going to try to explain what I need to do. I have a content type called Goals. This content type has a cck text field. This field can has several values in order to write a goal in each value of ...
0
votes
1answer
21 views

List all users using Drupal Views

I am new to Drupal and Views. I need to list all the authors(users) in my drupal 7 page? Do I need to add relationships for this ?
-2
votes
0answers
30 views

drupal categories structure [closed]

I am trying to build a similar site with Drupal 7 However I want to know how to build the structure. I am messing with categories and structure, cant getting which modules shall do perfectly. I need ...
0
votes
1answer
35 views

Check for field values to be unique when storing into the DB

I have a content type "Research assignment" which has several fields including the field "field_user" and "field_project". I want to remove any old research assignments having the same user and ...
-1
votes
1answer
45 views

How do I hide some fields to registered users?

This is my use case: If an anonymous user completes an order, the order shows profile type A. When user completes that order, the system creates a new user, and fulfill his profile with the ...
2
votes
1answer
38 views

Rewrite labels on fields rendered via php

So I'm designing a specific node page where I'm manually inserting every field (to ensure I can customize it as the client wants) and I'm having a bit of trouble with certain areas. Essentially I'm ...
0
votes
0answers
22 views

Add user link to author contact form

I am using the Author Contact module on Drupal 7 to add a contact form on the bottom of an advert page which allows logged in users to apply for this advert and would like to add a link in the contact ...
0
votes
1answer
12 views

View To Show Tagged Comments Via Arguments

Hello i like how you can add taxonomy to comments now in D7. Im having a few problems though creating a View that will take a tid contextual filter and show the comments in the taxonomy page as a ...

1 2 3 4 5 27