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

Hiding a field in a node conditionally

I have a field that's a term reference field. If it has a value 'x' I want it to show on the node page. However if it has the value 'y' I don't want it to show. Is this possible?
0
votes
1answer
14 views

Displaying alternate text for a taxonomy term in node

I have a taxonomy term called 'price'. I'd like it to display on the node page if it exists. But I don't want the taxonomy value to appear on the node page, I want the label to appear 'Price:' ...
0
votes
1answer
18 views

How to create fields group as accordions?

Hello Drupal community, I am trying to create a group of fields with an accordion, so that it can be visible/unvisible with a simple clic on the title of the field's group. Does anyone know how to ...
1
vote
0answers
30 views

how to store all fields for specific content type in one table

i would like to create content type which uses my own custom table and query it using views. for example: i have table tblCars(Year,Make,Model) in database now i would like create content type Cars ...
2
votes
0answers
31 views

Content type disappear when cache is cleared

Lately, every time I clear the cache, my content types are systematically deleted. I use Drupal 7.36. The main plugins I use are the following: Views 3.10 Chaos Tools 1.7 Entity API 1.6 and ...
1
vote
0answers
11 views

Default file upload for a field created in content type

In Drupal7 we have an option to upload an "default image" while creating a "Image field" in content type. Likewise, I need to know is there is any option to add default "pdf or text file" for "File ...
-1
votes
1answer
33 views

How to change the link in the view by content type? [on hold]

I change my question. Content type: How to add link field?
0
votes
0answers
19 views

Content type using new node? [closed]

I have two content types: 571 show and CTRL daily. They both use the same node. Is there a way for the content types to use different nodes?
2
votes
1answer
43 views

drupal views with contextual filter [closed]

I have created a content type page named events where several fields are there. also I have created a view page where list comes of events(title,body and read more). when we click on read more it ...
0
votes
1answer
18 views

Add permissions for a new content type

Context: I created a new content type (press room nodetype) locally and made a feature with it so it is easier to deploy on my dev-stage-prod environments. This works perfectly well. The thing is, is ...
0
votes
3answers
44 views

Get content page field value

I have a content page contain three field. Number A: Number B and Total Number. During add content page, I fill up Number A: 20 and Number B: 30. How to let Total Number auto display 20 + 30 = 50?
1
vote
1answer
17 views

How to search and replace content type (system)name in database for product types

Using Commerce kickstart, I wanted to replace the existing example content type names with other names. I downloaded the database, applied a search and replace, and after uploading the database and ...
1
vote
1answer
19 views

Can you make a block appear only in a specific content-type

The natural option is to filter blocks by node ID's. I am looking for a way to filter it by content-types (i.e the block "roses in special prices!" will appear only at the content type "Flowers"). ...
0
votes
1answer
38 views

Can't manage display for article

I have done something and can no longer edit the manage display pages for the article content type . When I try to visit them I fall out of the usual rich html interface into a page whose code is ...
0
votes
1answer
18 views

Creating dependencies between fields in content type creation form

I have two fields in my content type that I'd like to have depend on each other. The two fields are category (the dependee, a field list) and icon (the dependent field and also a taxonomy term field). ...
1
vote
1answer
28 views

How to add a preview image to a content type?

Is there a functionality in Drupal to add a preview image to a content type (for example in the info file). The idea is, that an editor who doesn't know which content type to choose for his content ...
0
votes
1answer
8 views

Creating and updateable block on home page of site

I have a 'featured resource' block on the home page of my site. I'd like my very non-technical folks to be able to update this block with a new node every week. Note that it would just display the ...
0
votes
1answer
14 views

Tying together creation of multiple content types in a form

I need to make a content creation form that ties in the creation of two different content types. Imagine garage and cars as an example. There is a one-to-many relationship between garage and cars, so ...
0
votes
0answers
8 views

Setting Custom Breadcrumbs to display where user just came from

I have a feature called 'browse' on my site that displays a list of types users can click on. If they click a type they go to a view that displays all the items of that type with breadcrumbs pointing ...
0
votes
0answers
25 views

Limit post node base on entity reference?

I have a content type that contain an entity reference for a node that is a different content type. I want to be able to limit user to post a node from the same node reference twice. Why ? I have a ...
0
votes
1answer
16 views

Use a form instead of content type in maestro drupal module

I am working on maestro module of Drupal 7, the module uses content type to add the form fields ,but instead of content type i want to use simple form which i have created using php , can anyone ...
0
votes
1answer
15 views

Changing the key/value pair of a field list in Drupal 7 once content has been added to the site

I have a field list on my content type that I need to edit. Specifically I just need to change one of the key/value pairs. Unfortunately there's already content in the site so I can't just change it ...
0
votes
1answer
16 views

Content Type Content Theme Template

Is it possible to make a template based on node content? For instance, is it possible to page--[node-type]--%.tpl.php or block--[content-type].tpl.php or page--[content-type]--%. I tried ...
0
votes
2answers
17 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
35 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
62 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 ...
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
19 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
23 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
18 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
45 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
12 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
29 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? ...
1
vote
1answer
17 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
17 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 ...
1
vote
0answers
30 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
22 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
83 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 ...
3
votes
1answer
31 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
23 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
28 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
53 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
39 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
35 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
20 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 ...