This tag is for questions about the usage of Drupal content types: managing, creating, filtering, displaying, and designing content types.

learn more… | top users | synonyms

1
vote
1answer
5 views

Fivestar Field Not Showing

I've enabled Fivestar and added it to the comments field and made sure its in the comment display as well. I've allowed anonymous and other users the ability to use Fivestar in Permissions. I've ...
0
votes
1answer
7 views

Sending Auto-filled Email from Content Type Profiles

I have 'resource' content types. There are hundreds. I want each profile to contain an individualized link to a 'feedback form', or some mechanism to report an error with the profile, by email...to ...
0
votes
1answer
8 views

add content reference to product in drupal commerce

how can I add content reference to commerce product? consider your product is mobile phone, and you don't want to enter add specifications of the phone, just make content type of phone, make phone ...
0
votes
1answer
27 views

Add content type to a taxonomy - Drupal 7

Hello everyone I have content type named contact where I have many fields like name, email, phone, country... and a taxonomy named organization with fields name, acronym and contact. What I try to do ...
0
votes
2answers
25 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
1answer
17 views

how to identify first element in array of node objects?

hook_node_load($nodes, $types) in Drupal 7 takes two arrays as parameters. In the module I'm working on (Drupal 7 port from Drupal 6), just one node of one type is being loaded. I tried $node[0] to ...
0
votes
1answer
21 views

Best practice: content types with unique machine names

We have a module install script that auto-generates content types. The content type machine names are based on text field data inputted by a user using a custom form. For example: User title = ...
0
votes
2answers
20 views

how to add posting options to content types?

I'm porting a Drupal 6 module to Drupal 7. In Drupal 5 & Drupal 6, there was a Workflow section in the Content Types area and the additional fields went there. This is gone in Drupal 7. I tried to ...
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 ...
0
votes
0answers
13 views

How to configure Views Isotope to display thumbnail grid on page?

Drupal 7, how to configure Views Isotope module to display thumbnail grid on the page? I created new View, but I don't know how to correctly configure it, didn't find detailed example of such simple ...
0
votes
1answer
10 views

Change Log in or register to post comments for content type

We are using the comments for a particular content type to post reviews for that content type. I have searched the web but can't find a proper solution how to change the text "Log in or Register to ...
0
votes
0answers
6 views

Drupal 6 url alias and full article view template

I am having the toughest time. Not sure if it is a permissions issue or just me. ( prob. just the user - ha ) Using Drupal 6 - I created a content type and a "view" for these "articles". My view ...
0
votes
1answer
22 views

How to convert Content Type Title into Term reference?

I would like to make a content type node title into a Term of reference. The titles need to be limited by some taxonomies. How to convert Content Type Title into Term reference?
0
votes
0answers
7 views

Can't edit/add a specific content type sometimes - SQL has gone away [duplicate]

Hi Can anyone help with this situation. I am on Drupal 7.12 and I am getting a white page (or if I have enabled errors to show, a SQL has gone away error when I try to add or edit a specific content ...
0
votes
0answers
25 views

custom content type VS external database

I am about to start working on a custom module in order to collect environmental informations just like the EEA does eg. here. Bearing in mind that there are a lot of fields to add for a node type ...
0
votes
1answer
6 views

Finding the Machine Name of an Module-based Field Added to $content variable

I need to edit a field added to my $content variable by a contrib module called Print, email, and PDF versions. It creates a link at the top of the content region that says 'Print PDF' and prints a ...
1
vote
5answers
77 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
3answers
57 views

How to change content type Title?

I am creating a Student portal in my project. I am adding student by using content type. That i gave title as "ADD STUDENT" as a Content name, but it shows "Create ADD STUDENT". Help me to show the ...
0
votes
1answer
39 views

how to get a field name by field label in Drupal 7

I have added a custom field with title 'play time'. How can I get the field name(internal value) using label value in my custom module. Is there any function to get the value?
0
votes
0answers
15 views

how to implement facet search api on content types feilds?

Is it necessary to build taxonomy for each field of content type to show it in search option in sidebar in facet search api ?
0
votes
0answers
25 views

Content Hierarchy in drupal

Scenario: I have several content types like history, physics etc, and each content type has articles to be attached to them, and more articles to be attached to these sub articles and this goes on.. ...
0
votes
2answers
9 views

Path to Images for Content Type

In a custom module I'm trying to display results from mysql DB based on items users selected in a form. One of the fields in the content type I'd like to display is an image associated with the node. ...
0
votes
0answers
19 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
3answers
39 views

How can I append date and time to node titles?

I want to append the date and time to node titles. For example, If the title is Test, I want to change it to Test_DDMMYY_hhmmss. How can I achieve this?
0
votes
0answers
22 views

how to assign custom values to meta tag from page--test.tpl.php

I have created "tags" field from content type. Now i have added some tags values in contents. I want to assign these tags values to meta tag values in head part for different contents. How can i ...
0
votes
1answer
13 views

Views: Single Image Per Tag

For examples purposes. Say I created a content type called ContentX with a image field and term reference field(Tag). I created 4 node(pages) of ContentX. All 4 nodes of ContentX have 1 Image to each ...
0
votes
1answer
25 views

Administration views change filter on my content type fileds

I'm using Administration views and I would like to be able to search by the last name field in my "Registration" content type. Currently, i can search by first name via the 'title' field on the ...
1
vote
2answers
83 views

Adding an existing title field to a new content-type in Drupal 7

How can i add an existing field to a new content type. I have a content type with name category and have title and an image under it. I want a select option with this category name while for my new ...
0
votes
1answer
24 views

How to add cancel button while clicking the Edit link in View?

I created a content type and a view; when I click the edit link shown in the view, it redirects to the filled content type page, which contains only the Save, Preview, and Delete buttons. I need to ...
0
votes
1answer
13 views

Set value for new field automatically based on another field

I want to add a new date field to an existing content type, and set the new field automatically for existing nodes to be equal to another date field from that content type. For example, if the new ...
0
votes
2answers
17 views

What is the best practice for showing a specific node within a specific page?

I'm using the boostrap_carousel module which creates a custom content type for a slideshow. I'd like to have a block for one of these carousels to show on the home page. I'd also like to have a ...
1
vote
3answers
143 views

Reducing Number of Fields in Content Type

Context: I have a product content type on Drupal 7 with >100 fields, and there are >7000 products, all with several revisions. Our client keeps requesting that we add and remove fields, which is ...
3
votes
2answers
84 views

How do i create complicated content type?

My apologies for bad english. I want to create educational website with user generated content. Sort of like wikipedia. The problem is content is a little bit complicated. It must have 4 tabs, which ...
0
votes
1answer
16 views

How can I use tokens in my content

I want to use tokens in my content but it seems like it doesn't let me. I've found an article about using the Token Filter module but I have not been able to configure it so that it would print. In ...
0
votes
1answer
48 views

Remove comma from unlimited items body in content type

i have a content type with multiple body fields. It's works but there is a single comma between the body fields on the rendered page. I can't for the life of me figure out how to remove that god ...
0
votes
2answers
30 views

Structure for a list of links

What I’m looking to do: Content type has an field (addable; unlimited entries to this field) In that field you select from a list of (mostly external) links. Each link is a sentence - has a title ...
0
votes
0answers
21 views

CKEditor filters the custom tags in Drupal page

I have the Drupal 7 site with CKEditor installed.(No WYSIWYG installed) Now the problem is that my contents in the Full HTML mode gets filtered by the CKEditor. Say if I have a div like <div ...
0
votes
3answers
26 views

When to use a Webform vs. simply utilizing the Add Content page

Where is the line between using the Webform module vs. simply letting users create new content of a certain content type? I am fuzzy on when each would be more appropriate. Especially after seeing ...
0
votes
1answer
25 views

Render with custom style all contents of a content-type from custom module

I am trying to create a custom module to manage a slider. After install my current-development module, I have: a slider content-type a slider view defined to show Content (Full Content) of the ...
0
votes
1answer
27 views

Add help text to title D7

How can I add Help text to the Title in D7? Perhaps adding an 'edit' button similar to the other normal fields. Ideally the solution integrates with Label Help.
1
vote
3answers
82 views

Create Content Type from code

Following this post: http://www.sitepoint.com/creating-a-new-drupal-node-type/ I have tried to create a custom content-type from code like here: Update code https://github.com/jmvelasco/drupal ...
0
votes
1answer
23 views

How to create simple 'subsites'?

I am creating a site for a company, which has multiple departments. Each department shall have a departments (sub/branch) site. Within each department site, there will be users of different roles, ...
0
votes
0answers
20 views

Node Title and Language not saved

I ran into a strange problem on several of my servers. Since a few days the title and language fields of my nodes are no longer saved. Both are in a content type called page. Other fields, let's say a ...
0
votes
1answer
16 views

Can you set an image that is part of a custom content type as the background image in a view?

Hoping someone can help me. I have a custom content type that contains a bunch of fields with one of them being an image field. I'd like to have the view display the image field as the background ...
0
votes
1answer
21 views

Automagically relating nodes of a single content type

I have a content type (e.g. Target) which has a title and body. I will have about a 1000 nodes of this content type. I want to be able to create a view that renders not not only the title and body of ...
1
vote
1answer
20 views

How do I load all images and thumbnail for a multivalued image field in node view?

I have a content type with a multivalued image field. I want to make the image field render with one main image and all the thumbnail. When any of the thumbnail is clicked then it's respective image ...
0
votes
0answers
26 views

UI widget for hierarchical select field [duplicate]

I'm building a classified website, on which users can create ads using the custom content type I've created. Each ad has a category field which a reference to a multilevel taxonomy, and uses the ...
1
vote
0answers
45 views

Image preview thumbnail does not display

Drupal 7. When adding a core image field to a content type to display an image, the preview thumbnail does not display on the edit page when uploading an image. What appears after clicking on the ...
0
votes
0answers
50 views

Missing bundle property on entity of type node

This issue happens when a user is on my comment page and selects save without adding any information. I've narrowed it down to my node--editorial.tpl.php page. when i comment everything o ut on this ...
0
votes
0answers
15 views

Link module - display icons based on file MIME

I have a Resources content type, which has a Tutorial Links field which can contain unlimited external links to tutorials. For this, I am using the Link module. Instead of displaying the URL or ...