Fields are custom data that can be attached to Drupal entities.
1
vote
0answers
7 views
D6 Views Field Theming in Module
I'm working in a custom module that displays date fields. I want to be able to change the date's timezone programmatically.
I've tried implementing hook_views_pre_render(), but that doesn't allow me ...
0
votes
1answer
13 views
How to pass taxonomy reference field data into a views reference contextual filter arguement with PHP code?
My content type has a taxonomy reference and a view reference field. I currently want to pass the Term ID as an argument into my referenced View via a Contextual filter Taxonomy Term. If someone can ...
0
votes
1answer
19 views
Set trim_length of field through UI for blog entries
I am using the Blog module, but don't like the 600 character trim length. I want 2000 char.
But, I can't find out where to change this in the admin console.
I was able to update the trim length ...
0
votes
0answers
11 views
How to repeat CCK field content in a separate CCK field
I have a user-controlled CCK field called "date" where they select a date of their choosing. I need to have that value repeated in a second, separate CCK field on that same content type, for ...
2
votes
0answers
20 views
How do I access an Entity Reference's field values?
I have 2 content types.
BaseContent:
Field1: Title
Field2: ID#
RelatedContent:
Field1: [Entity reference to a BaseContent]
Field2: **[Automatically insert the value of the referenced BaseContent ...
0
votes
1answer
12 views
Comments custom fields access by role
Ive added a custom comment field to comments of my node i.e. new fields beneath comment_body that being field_flag_reason and field_unflag_reason
I want to hide these two fields for specific roles so ...
0
votes
1answer
34 views
How can I use Rules to publish nodes depending on changing the value in a Field?
I would like to set up rule to detect if I change one specific field in the content type. For example if I choose the field "dyzury", then the rule will publish this node to the front page with the ...
0
votes
0answers
11 views
using node reference relations
created a content type department
and a content type designation
in designation content i used department field via node reference
now while adding designation i want to use first select department ...
1
vote
0answers
38 views
Right way to create Yes/No boolean fields
I want to add fields in my node which will contain boolean values only : Yes/No. Selecting boolean as field type will cause the field to show up as single check box and in the node edit form I've ...
0
votes
0answers
26 views
How to synchronize two check boxes values, upon change?
In my module, I have created a simple form with a single checkbox (A) and a submit button.
I also have a checkbox (B) boolean that i added in the user profile.
Now I would like to:
write a submit ...
0
votes
1answer
17 views
Force using specific filter text on a content type
How can I limit the text filter type upon a textarea field.
Example (the needed result would be like this) :
Authuser is a role that can change the value of textarea_1 and textarea_2 on ...
2
votes
1answer
30 views
How do I allow both kg and lbs units for a field
I want the user to be able to submit weight as either kg or lbs and do any necessary conversion on the fly. I took a look at Unit Conversion Formatters but it seems that this is designed to convert ...
0
votes
2answers
20 views
How should I store a simple, time dependent, repetitive data type in drupal
Im interested in collecting simple data series over time with Drupal. for instance, lets say a user wants to input a monetary amount the spend on a given item each day, and then track that over time. ...
0
votes
1answer
18 views
Can I add a “edit node” link as field in a node?
I need to have the "edit node" link as a field so that I can manage its display.
Can I do this?
Update:
I created the field but the token code is printed instead of its value.
The code you see in ...
1
vote
1answer
25 views
Writing image value to field_collection object
I'm creating a field collection item and saving it via entity_create, and it all works great as long as I don't have an image tied to it. As soon as I do, I get an error, and it looks like this in ...
0
votes
0answers
9 views
Taxonomy field - select multiple height (size)
I'm trying to change taxonomy field height - <select multiple="multiple"> in admin overlay area. I hadn't success, I was trying with form alter like this:
function ...
-1
votes
0answers
21 views
Payment gateway error in MIGS drupal 6
I'm facing the Following problem in drupal 6 site.
While using MIGS payment method
Payment Gateway Error
Sorry, your order (Unknown Order ID, Unknown Receipt No) couldn't be processed for the ...
2
votes
2answers
39 views
How to create a field which contains the entity created date
I need to create a field which contains the date an entity/node was created. I know some people achieve this by using a bit of code in their template, but I need this to be a real, accessible field I ...
1
vote
2answers
16 views
list field type
I'm trying to add a new field to a product to the Drupal Commerce module. The field should be a select dropdown but the only field type I could find that would do that was term reference. So I googled ...
3
votes
1answer
44 views
Question regarding rendering fields in node.tpl.php
I'm confused in how the fields can be rendered.
There are 2 variables in node.tpl.php $node and $content, both of which contain fields.
My task was to render all fields separately, to surround them ...
2
votes
1answer
29 views
Best practice for template theming - #markup vs safe_value
When doing complex display logic and breaking apart a renderable array in a field collection template, what's the best string output to use from the array: #markup, or safe_value? Presumably #markup ...
-1
votes
0answers
10 views
Provide value restriction and default field for content from user field [closed]
I am creating a new schools website. Parents and children get separate accounts, and parents should be able to inform the school if the child is not able to attend class, e.g. because of illness or a ...
0
votes
1answer
17 views
Can I theme fields depending on view or block that contains them?
Let's say I have a contact content type with fields address, tel, fax, etc. My task is to create 2 views - with following markup:
First view
<ul>
<li>[address]</li>
...
1
vote
2answers
51 views
Get field value directly from inside views-view-list.tpl.php
Inside views-view-list.tpl.php there is a loop like this:
<?php foreach ($rows as $id => $row): ?>
<li class="<?php print $classes_array[$id]; ?>"><?php print $row; ...
0
votes
0answers
40 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
39 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
22 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
57 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
27 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
27 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
22 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
97 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
51 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
3answers
30 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
22 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
53 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
17 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
18 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
55 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
16 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
39 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
23 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
35 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
11 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
25 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
16 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
37 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
22 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
28 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 ...