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
19 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
19 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
1answer
18 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
27 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
96 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
30 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
20 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
28 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
15 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
35 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
34 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
37 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); ...
-1
votes
3answers
35 views

How best to add fields to users [closed]

If I want to add more fields to a user (for example, Job title), is it best to do it to the account settings (i.e. Admin » Config » People » Account settings » Manage field) or to the user page (i.e. ...
0
votes
2answers
26 views

Creating a node with multiple joined fields

I'm sure I used to know how to do this, but now I can't work it out. I have a content type, lets say it's called "project". A project can have multiple contributors, and for each contributor I need ...
0
votes
0answers
17 views

find file physical directories location in drupal 7

I have news feed in drupal website. The news feed is XML format and can be read as https://www.mysite.ac.uk/news.xml. I can see via admin news content type. Now what I want to access or in other word ...
0
votes
1answer
31 views

How to display event's views block inside another content type's content section with only events related to that content alone?

I am working on a drupal7 site. The scenario is that, there are 2 content types namely singers and events. When i am adding an event, i need to add an event to a singer, so that when i am viewing a ...
1
vote
1answer
26 views

Adding a table with items and prices to a drupal site [closed]

I am not sure how to ask this question, but I hope I will be making myself clear. We are building a CMS-like site for the most part, but the customer also wants the capability of adding a prices ...
0
votes
1answer
18 views

Loading term references into a custom module

I have a term reference field in my content type. I'd like to be able to access the vocabulary items from that field in a custom module so I can pre-select one based on a users selection of an item ...
0
votes
1answer
18 views

Why are there two default image options in an image field

When you create a field of type image in Drupal 7, there are two default image fields. One is in settings and the other is in field settings. There is a message with each of those two settings, but I ...
2
votes
1answer
36 views

Content Types in the style of database-tables

I am coming from the asp.net - background and worked a lot with db-driven websites. My basic question: How can I model content from a "database-centric" point of view... For example to show ...
0
votes
0answers
26 views

Show similar content on multiple sites

I have 10 different sites with different databases, each site is for a particular location/country like us.example.com. And I have a main site (example.com) which will show content from all sites. ...
0
votes
0answers
15 views

customize validation on node_form in drupal7

I have a created a content type in Durapl7, and now I want to customize the validation for the add form on the website. Please see attached image for what I got so far, But my main problem is ...
0
votes
1answer
23 views

Node content versioning and compare tool

I already know that node content versioning is supported in drupal, what I want to know is how much? I for instance create a content type 'article' and add some extra text fields to it, The article ...
1
vote
2answers
23 views

Adding Node Reference to a Comment

If I add a Node Reference field to a node content type (with Reference from URL as a widget,) this field appears in the rendered content and can be used to jump to the referenced node. I am trying to ...
0
votes
0answers
28 views

Access a specific property of the article node

I need access to a specific property of the nodes of articles/post (the text in this case). But I can only access the complete node object and print all the properties, I think I need to access a ...
1
vote
1answer
26 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
16 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
33 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
37 views

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

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
42 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
19 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
37 views

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

I change my question. Content type: How to add link field?
2
votes
1answer
45 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
48 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
22 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
26 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
52 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
23 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
32 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
18 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
9 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
27 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
20 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
30 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
24 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
19 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
39 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. ...