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

0
votes
1answer
25 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
4answers
36 views

Content Type vs. Taxonomy | Example TV Series

as this my first post here I don't know if I do everything right. Please forgive me. So, my plan is to build a website with many categories and these than contain posts. To explain the stuff in the ...
0
votes
1answer
25 views

Displaying all fields of a custom content

I have a page.tpl.php ; where I want to display inside a <div> in it the fields of a custom content I've created before : 1)The custom content is called "Slider" 2)It have a field I've added ...
1
vote
3answers
38 views

Changing node/%/edit title

I have created custom content type for upload the details. I have used hook_form_alter to set the node title as "Upload". When I edit the node in node/%/edit the title remains "Upload". I want the ...
0
votes
0answers
21 views

How display custom block in custom content type

I have custom block: function node_to_word_block_info(){ $blocks = array(); $blocks['save_as_word'] = array( 'info' => t('Node to word'), ); return $blocks; } function ...
0
votes
1answer
29 views

How to export views after content type through code?

I am using a module that defines a content type and view. When Iinstall my module, The view is saved before the content type. So, my view stating that fields of that content type are not available. ...
0
votes
1answer
35 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
0answers
5 views

how to show content as coverflow compined with audio player source update [closed]

i have a content type(podcast) which has the following fields : Title body Image Sound source (link) Category (taxonomy) The first thing that i want is to display this content type in frontpage in ...
0
votes
1answer
77 views

When collect an end date instead of a new field?

I need make a content type with a Start Date and a End Date, I know that I can handle this in two ways: Have two separate field Have one field with a option of "collect an end date". I need to ...
1
vote
1answer
29 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 ...
0
votes
1answer
14 views

Need Help Finding Permission Needed for Entity Reference Content Type field

I've got a content type called 'resources' in my drupal 7 site. I have authors who have permission to create new resources and edit all the fields. However, I have recently added a new 'entity ...
1
vote
1answer
69 views

How to set blog post under event section in Drupal commons

I use the Drupal Commons distribution. I already created blog-post depends under group section using OG_MEMBERSHIP. Likewise, blog-post depends under content type event. How to achieve this? We also ...
0
votes
0answers
18 views

Can NOT Disable/Enable/Add/Edit any component of the site

My drupal site is acting strange. I can NOT add/disable/enable/edit any components of the site. I can't add new content types, content fields, disable/Enable modules. I just removed a module from ...
0
votes
0answers
27 views

How to get content type field value from content type select list

I have a select list in which all content type's name are populated(say: article, Basic page, etc). Now when I select "Article" from select list, all field's value of "Article" content type get ...
0
votes
0answers
24 views

Changing fields type which are already on website

Here is my case. I've created a content type with few fields (all fields had type: 'text'). I've exported this content type using feature and then used feature on PROD website for few weeks. ...
0
votes
2answers
37 views

Views, taxonomy and content type

I have a content page called Book, to which I also added an image field and a "term reference" to a Book taxonomy which has Book A, Book B, Book C, Book D, Book E as available terms in it. I created ...
0
votes
2answers
42 views

Content types with a field that get data from my custom table

as it said on the title, I've create a custom table named : writers (contains name,books..of writers) To add a book, I've created also a content type that contains a form, with many textfields (book ...
1
vote
2answers
16 views

Creating a shortcut to a listing of a specific content type or a set of specific nodes

I want to create a shortcut that acts similar as when you click the "Content" link. But I want to be able to display only a specific content-type or probably a specific set of nodes. Is this possible ...
1
vote
2answers
29 views

Content type which contains a content creation as a slip form

I'm quite new to Drupal and I've encountered a quite complicated problem. I've created a role called "Event coordinator" authorized to create a content type entitle "Events" that has a title and and ...
0
votes
2answers
27 views

Drupal content type text value

I've created a content type that contains a form. In this form, there is a textfield that i want to make only readable + a specific value on it (if user A is editing this form, he can write on all ...
1
vote
1answer
17 views

“add content” suddenly not showing on navigation block anymore

Good day, I'm having a problem of a block not showing its content! the block is stock and called navigation, which has "add content" in its links. but just recently, it has not been working on other ...
2
votes
3answers
85 views

pass argument as a wildcard to node/add/Article/560012

Case : I do have a Article-share content type , it does contain a node reference to type "Article" , now this is my scenario : user selects a node of type Article he redirects to node/add/Article ...
1
vote
1answer
27 views

How to make one field automatically have the date-time of the last change of another field

I need to make one field have the date-time of the last change of another field in a drupal 7 content type. I tried using a computed field but the calculation is complex and I am having trouble. Is ...
1
vote
1answer
21 views

User permissions on a costum content type

I've created a custom content type with fields (it's like a form), I've already added permission to logged users to use my form(content type) but I want to hide some checkboxes on this form only when ...
0
votes
3answers
71 views

How to add an 'if' statement for a content type in a custom views-view.tpl.php?

Is it possible to add an 'if' statement for a content type in a custom views-view.tpl.php? This is just so I can add text to show if the post in the view is either an 'episode' or an 'announcement'. ...
0
votes
2answers
29 views

Dynamic content-type creation

I have this scenario in my application: Every registered member, can manage up to 3 content-types. And manage nodes based on their own content-types. They can manage their own content-types and ...
1
vote
3answers
84 views

How do I get the content type name using code?

I'm working on Drupal 8 and I want to get content type machine name and label. Here is my code: $cont_type = node_type_get_types(); foreach ($cont_type as $key => $value) { $label = ...
2
votes
3answers
77 views

Updating content to remove it from the front page shows it as being 'New'

I am removing content from the front page as it is out dated, but I don't want to un-publish it as it remains valid information. Unfortunately Drupal then labels the old article as 'New' and put it ...
0
votes
2answers
18 views

User photo gallery that another user can view

I'm looking to give my user the ability to to have a personal photo gallery that when another user clicks on their profile they can see said gallery? I know i can create a content type and view, but ...
0
votes
1answer
13 views

Filter Node Reference options

I'm trying to set up the content types for a site and ran into a bit of a problem. Let's say I have a content type called Employee, and a list of taxonomy terms that holds function names. Each ...
0
votes
0answers
21 views

Manage display crashes on custom content type

I have a rather odd problem on Drupal 7. I used the following code to create a new content type with module installation, add some fields and field instances. It all works good until I want to manage ...
0
votes
1answer
36 views

What is the best way to achieve this result? [closed]

I've hit a bit of a stumbling block with how to tackle this design I'm working on in Drupal. The end result needs to be a block that sits on the home page and it updated weekly by anyone with the ...
1
vote
2answers
30 views

When adding a node, the site images do not show

I have some image links that are inside standard <a href> tags, that link to some external sites. Example: <a href="http://http://www.webbdeepsky.com/" title="The Webb Deep Sky Society" ...
0
votes
2answers
39 views

How to relate a field to another field in content type like a foregn key?

Can anyone guide my to the best method or module to connect 2 fields together? I want to create a field called (Author) in a content type book, which will refer to a field called (name) in a content ...
0
votes
1answer
17 views

Change the “Create [content type]” title

I allow registered users to create content of type X, so they can go to the /node/add/X page and fill in the form. However, I want to give this page a bespoke title, i.e. "Make an X" rather than ...
0
votes
1answer
19 views

Drupal Content Access Control

Exploring Drupal, so still lot of unknowns. Drupal 7 out of the box can do the following : Authenticated users can create/edit/delete "their own" article content. - works out of the box Admin can ...
-1
votes
1answer
34 views

Field collection 'add more' and 'remove' hooks?

I am currently working on a project where i have a content type that has 2 field collections. (with cardinality 1) Each field collection has one other field collection (with unlimited cardinality). ...
1
vote
3answers
35 views

unable to link my custom content type nodes to a menu I created

I created a custom content type (pics). I can add this new "pics" content to my site (and if I want to, it can appear on front page, but I don't want to...) with no problem. But I would like those new ...
2
votes
2answers
39 views

Categorizing Content

I want to have a drop down field available so that when a content author (user) creates a new page, they can select which section of the website this new content should get placed. For example, my ...
1
vote
1answer
27 views

How to add webform to existing content type?

I have installed Webform and would like to add it to my custom content type. I have checked my content type under admin/config/content/webform and saved the webform settings but I still don't get the ...
0
votes
3answers
37 views

node--content-type.tpl.php did not override

and now i stuck in using node override with content type. I followed these step. Create new content type name post (machine name: post) Copy node.tpl.php from module to ...
0
votes
1answer
44 views

How do I display two different views for a single content?

I'm quite new to drupal and trying to learn this after working with a very different CMS system the past ten years. Here is my issue/question: I have a content type that I'd like to have two ...
0
votes
1answer
34 views

Drupal 7 location latitude longitude

I am trying to update a website from Drupal 5 to 7 and I have to use location field for one of my content types. On Drupal 5, I can see the latitude and longitude fields but on drupal 7 I can not. ...
2
votes
2answers
113 views

Content Type - Image able to link to other website

I had create image field at content type. Without any views module or java-script, am I able create link to other website? I am not using panel for my website. My question is ONLY related to CONTENT ...
0
votes
1answer
40 views

How to add comma separated list for the select list check box field type

For my one site, I added a select list(text) > check box field type to my content. When I go to manage display tab(using display suite module), in the format column column for the field, I see drop ...
0
votes
3answers
43 views

Hide the page titles of some content types

I found following code on this website http://codekarate.com/content/hiding-page-titles-specific-node-types-drupal-6 to hide the page titles of some content types. Can some one help me rewrite this ...
0
votes
0answers
20 views

Create a drop down list of pages created using a specific content type

I've created a 'Galleries' page using a field collection so a user can create an infinite number of image links to individual 'Gallery' pages. The individual 'Gallery' pages are created seperately ...
1
vote
3answers
26 views

How do you add custom help text to content entry/edit screens unrelated to field?

I use field groups to break my fields into "tabbed" areas for my content editors. I would like to be able to put some kind of help text at the beginning of each of those blocks to explain the entire ...
1
vote
2answers
33 views

db_query or db_select for getting content type fields

Originally I was doing something along the lines of $query = "SELECT {}" and then $result = db_query($query). This method works fine for most of my queries until I needed to get the field values and ...
0
votes
1answer
39 views

How to select fields from content type

What is the best way to do a db query for fields in a content type? I need to get specific fields from a content type, but only where the 'featured' field value is 1. <?php $query = new ...