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
2answers
20 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
15 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 ...
1
vote
1answer
25 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 ...
0
votes
0answers
15 views

Can not Add 'New Field' on any Content Type [on hold]

I tried adding a new field called 'Clock' with a Field Type as text on a basic page. However each time i click 'Save' the page reloads but the new field is not saved. This issue happen regardless of ...
1
vote
1answer
18 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
60 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
27 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
74 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
70 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
16 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
0answers
26 views

How to add meta-fields to a content type (e.g. plural name) [closed]

I would like to add meta-fields to the content type (like the core "Description" meta-field). How do I do this? For example, I want to have a field called "Plural name" for each content type. This ...
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
17 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
35 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
1answer
25 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
23 views

Can I make a content type with several drop down menus? [on hold]

We want to gather several so called "cases" on our website. These cases exist out of a video fragment, are sorted by theme and age, and there is a lot of textual information that serves to explain the ...
0
votes
2answers
38 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
15 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
18 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 ...
0
votes
2answers
28 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
34 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
23 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
35 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
43 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
32 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
108 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 ...
-1
votes
1answer
34 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
35 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
18 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
24 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
31 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
35 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 ...
1
vote
1answer
35 views

Integer thousands separator in add node form

I need to place thousands separator on integer field type in add node form when the user is typing a number in the field. Is there any module or quick solution for this problem?
0
votes
1answer
23 views

How do you programmatically hide a field based on another field on a custom content type?

I have built a custom content type that has a boolean field called 'Hide images'. There is also an images field that displays all images at the bottom of the node. I'd like to setup a way so that ...
0
votes
2answers
18 views

more fields on a content type or more content types

I know this is a situational/subjective question..... but I am trying to figure out a site architecture for a drupal site. I have multiple products with different attributes/properties. I could ...
-1
votes
0answers
20 views

create a field programmatically for all content types [duplicate]

Simply, I want to create a field for all of my content types programmatically within my install file of a custom module. ***WHAT would I need to ALSO put for the uninstall function to delete ...
0
votes
2answers
23 views

Displaying fields horizontally in a node

A node lists all its field vertically one after the other by default. Does anyone know of a way to display at least some of the fields horizontally? Like so: FIELD 1 FIELD 2 ...
0
votes
1answer
28 views

Immediately check if field content already exists in a node form

I am struggling with a problem which I thought might be answered simply... Any help would be appreciated! I have a content type called 'review'. Each review has a field called 'location'. As a user ...
0
votes
2answers
47 views

Output custom field of Content type in page.tpl.php

I want to display a custom field which I created in my custom drupal theme. The field I created called "Startnummer" so the machine name of the field (I didn't change it) was created as ...
0
votes
1answer
33 views

Adding Specific CSS to View

How would one go about trying to accomplish the following under Views in D7: Say I have four different content types (apples, oranges, kiwis, and mangoes) which are culminated into one view listing ...
1
vote
3answers
116 views

Differences between 'Add existing field' and 'Add new field'

It is possible to reuse the already created fields via Add existing field option. From optimization perspective and the way Drupal stores and manages such fields in database I would like to know, does ...
1
vote
2answers
34 views

Content Field Type For Video, Images and Text

I'm trying to decide what the best method would be for creating a new Content Type who's field type would allow me the flexibility to use ANY type of content inside of it. Almost like a blank HTML ...
0
votes
1answer
24 views

Content type itself as entity

I need to classify and mark my content types. As example I have three content types for group messages in OG, ten content types which used as UC products, etc. So I need to add taxonomy and fields to ...
0
votes
1answer
32 views

How to find content that uses a File (File Entity)?

Want to be able to see what content has file field(s) that refer to a specific file. Is this do-able using a View (with Relationships)? (had a go already, unsuccessful so far). Alternatively I'd ...
0
votes
2answers
19 views

How to use tags for filtering images to be displayed using views?

I'm pretty new to Drupal (version 7). I'm trying to create multiple image galleries. I've created a content type called "Images" and use a view to display it like a gallery. However, I wonder if ...
1
vote
0answers
41 views

Filter views slideshow of fields by nth newest node

I've seen variations of this question posed over the years but am yet to find a solution that works for my situation. I have a view slideshow block of fields that rotates through all the field ...
0
votes
2answers
49 views

Creating node and user with one form

I have a content type, 'A'. Now I need a form with the user registration form fields plus the 'A' creation form fields. So when the user (annonymous) submits this form, a user and a node of type 'A' ...
0
votes
1answer
16 views

Copy contents from an field entity reference

I have 2 content type 1-Parent Product Title Fabric Type Product Type Product Description 2-Child Product ParentProduct (Node Reference to Parent Product Content Type) Title Fabric Type Product Type ...
1
vote
2answers
46 views

Call $created variable in content type node template

How can I call the $created variable in my content type node template? I tried the following but it just produces what seems to be a random string of numbers: <?php print render($created); ...