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
13 views

Present users with form to create new node

I have created a content type called "member" in my project. Logged in Users have permissions to create nodes of type "member". I want to my users to be able to create the nodes without having to ...
0
votes
1answer
30 views

content type field not printing

In drupal 7, I defined a field for a custom content type and am trying to display its value via page.tpl.php. Nothing is appearing in the rendered page. Here's the relevant piece of page.tpl.php. ...
0
votes
4answers
39 views

unable to add,edit,delete content types in drupal 7?

I unable to add,edit,delete content types and content also in drupal 7,thease button links are not working ,if i click add,edit,delete button below error is comming.please help me..Thanks in ...
-1
votes
0answers
22 views

auto calculator [on hold]

i need to make a cost calculator like in this link. https://www.exporttrader.com/sh/calcfull i have three fields, origin and destination and transportation-cost. i want to preset the cost for ...
0
votes
1answer
10 views

Setting a date to be empty by default

I have an event dates field that allows the user entering content to put in a start and and end date. By default it just shows them the start date. If they check a box it shows an end date and they ...
0
votes
2answers
13 views

Custom template file for custom view mode on site front page

I'm trying to style a view a certain way on the front page (using a custom front page, page--front.tpl.php) of my site, and here are the steps I've taken using Entity View Types and Views modules: ...
0
votes
1answer
15 views

Deleted content returns over and over again

I have a situation where I can delete (update options > delete selected content) in admin > content...and it says it deletes all the selected records. But then later on all those records will return ...
0
votes
1answer
13 views

combining messages and content types in views

I am using the messages module to tell people when nodes are created, deleted or edited. Is there a way to combine the messages module with my nodes in views. What I want to do is show a message of ...
0
votes
2answers
9 views

Creating Scheduler for Permission on content type

I have created a content type. Now I want to set that authenticated user can create 1 new node between specified date say 1 to 15th of everymonth. After that they should not be able to create or ...
0
votes
0answers
19 views

Remember field values while editing the node

I have a situation where i want to get the recently added value in the field while editing the node. For example: if i have a field called name where i enter the value initially, i want the field to ...
1
vote
1answer
32 views

Message “Restricted HTML” on node/add page

On node/add page for any content type(Article, Basic page. Custom) message appearing "Restricted HTML" , not able to add content. What shall a do to resolve this problem?
0
votes
0answers
8 views

How to create a 'universal' node-add form where you can select the content type it will be

Goal: A form that submits the form fields as parameters to a Rule. This is used to create a 'universal node add' form block, where users can insert - Title - Body - Groups Audience How it works: When ...
0
votes
1answer
27 views

How to display the same node twice in one teaser?

I added some new fields to Basic page: teaser image teaser title teaser subtitle Now I want to show 2 separate blocks in teaser that point to the same node (basic page). Is it even possible? ...
0
votes
1answer
12 views

How do I bulk switch specific content from one content type to another?

So I get a fair amount of spam on my site that gets a good amount of traffic. But the spam content doesn't fit what my main audience is looking for. So I created a content section called spam and ...
0
votes
1answer
16 views

How to create add and edit pages for content types beside to Administration

In my drupal installation (Drupal 7) I have various users. What I want to do is, I want to enable somehow my users to be able to create content their own, without using the administration page. Lets ...
0
votes
0answers
10 views

How to use Contextual filters by label or title of HTML option?

I have a news website, and a content type for news that has a field what named news_type and it's field type is a List (text) and it is a Select list. These are my select list: category_1|News ...
0
votes
0answers
21 views

PDOException: SQLSTATE[23000]: Integrity constraint

I work in Drupal 7. I have add new content type vechile but show not in add content, all content type shows in add content except vechile. I try to add in Navigation but not show in navigation, and ...
0
votes
0answers
18 views

Drupal 7 and CKEditor edit via js

I used ckeditor without Drupal. There I can call this to configure it in js file: CKEDITOR.replace( 'myEditor', { stylesSet: [ { name: 'header', element: 'p', attributes: { class : ...
2
votes
2answers
75 views

how to limit view to just show each type one time?

I have a content type what is news, the news has a field type that is List (text) to keep different types of news. for example I have Health, Sport, Economic and etc. So now I am going to create a ...
2
votes
0answers
20 views

Some of node links of content types are corrupted

There are about 5000 nodes in my website of different content types. After a while (updating the Drupal to 7.34 and configuring the Server by server administrator) some of node links are corrupted and ...
0
votes
1answer
20 views

How to create active menus for the content type in drupal 7?

I want to create a simple content type with menus ,on clicking each menu the content will be shown on the same block but of the respective menu item. In this image ,i am having 3 menus a,b ,c with a ...
0
votes
1answer
26 views

How to show each type of content-types just one time?

I have news content type and it has title, body, image and type. The type is a list(text) and have these values: sport Economy Health ... And now I need to have these types in a view (block). in ...
0
votes
1answer
15 views

How to use URL as a filter in view module?

I asked a question here and now I am going to create a view that the view take the URL and use it as a filter. and I want to have a the view by a dynamic filter use the URL path and show the result ...
0
votes
1answer
37 views

how to get css “background-color” value from content types in drupal 7

I have a custom type, and I want to set background-color of it,when end user choose the color in add content page, example : set background-color : black , I want get this value from ...
2
votes
1answer
29 views

Can a Drupal 8 module install a content type optionally or conditionally?

I have a module which installs a number of different custom content types, each defined in a .yml file in config/install/. I install my module, and the content type appears and works normally, and I ...
0
votes
1answer
36 views

restrict a field's content based on a selected taxonomy term

I have a content type with a number field and a field for a taxonomy. I'd like that, when the user creates a node of this particular content type, the value that appears in the number field changes to ...
1
vote
3answers
28 views

How do I hide the end date part of a Date field but not the time?

I have a content type that uses Date, it has a start date with time, and end date and can even repeat. But I need to hide the part of date that handles the end date and leave just the time, most ...
0
votes
0answers
15 views

Revision not working for content type using workbench moderation module

We have 7-8 content type. We are using workbench moderation module for revision and create draft. This module works fine with all content type except one content type. All settings are same for all ...
0
votes
1answer
29 views

Storing data for every country for an interactive chart

I need to store one and possibly more values for each and every country so that I can populate an interactive SVG world map. This data will be updated often by hand by one of the content moderators. ...
0
votes
1answer
28 views

How to access the contents that are created by custom content type using module

I am new to drupal, I wished to view the contents using custom modules. For that, I have created custom content type and added some contents. Now I want to create a module to display all the contents ...
1
vote
1answer
8 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
17 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
11 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
39 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
29 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
20 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
33 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
21 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
8 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
1answer
36 views

Is there way to display thumbnail gallery using external links to images?

Drupal 7, is there way to display thumbnail gallery using external links to images?(instead of uploading pictures) Something like https://wordpress.org/plugins/wp-gallery-custom-links/screenshots I ...
0
votes
1answer
17 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
8 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
34 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
26 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
10 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
102 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
63 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
40 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
19 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 ?