Hi,
Does anyone know of a module that will allow small customizations of different content types? I have a few on my site such as, "Company Profiles" and "Research Inventories"
The problem is that often there will be 3 "Research Inventories" with the same name (Bechtel) as the "Company profile." I would like to label each content type, and have an icon maybe so that a user who stumbles upon a page that says "Bechtel" will know if it is a company profile of Bechtel or a Research inventory of Bechtel.
Any ideas for modules that enable this functionality?
--ian--
As far as a module that can do this, I am not sure there is one.
You can do this in the theme layer (if you are a little handy with PHP).
Most themes in the node.tpl.php file use
<div id="node-<?php print $node->nid; ?> <?php print $node->type; ?> ">
to add a type class to the node display, with $node->type being the key indicator).
You then can add a CSS style to differentiate the different node types.
Greg
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of ian@corpwatch.org Sent: Tuesday, January 22, 2008 5:39 PM To: support@drupal.org Subject: [support] Seeking module to distinguish content types
Hi,
Does anyone know of a module that will allow small customizations of different content types? I have a few on my site such as, "Company Profiles" and "Research Inventories"
The problem is that often there will be 3 "Research Inventories" with the same name (Bechtel) as the "Company profile." I would like to label each content type, and have an icon maybe so that a user who stumbles upon a page that says "Bechtel" will know if it is a company profile of Bechtel or a Research inventory of Bechtel.
Any ideas for modules that enable this functionality?
--ian--
Hrm, so a slightly different stylesheet for each node type? Ok, makes sense, I will start doing my css homework.
--ian--
Greg Holsclaw wrote:
As far as a module that can do this, I am not sure there is one.
You can do this in the theme layer (if you are a little handy with PHP).
Most themes in the node.tpl.php file use
<div id="node-<?php print $node->nid; ?> <?php print $node->type; ?> ">
to add a type class to the node display, with $node->type being the key indicator).
You then can add a CSS style to differentiate the different node types.
Greg
-----Original Message----- From: support-bounces@drupal.org [mailto:support-bounces@drupal.org] On Behalf Of ian@corpwatch.org Sent: Tuesday, January 22, 2008 5:39 PM To: support@drupal.org Subject: [support] Seeking module to distinguish content types
Hi,
Does anyone know of a module that will allow small customizations of different content types? I have a few on my site such as, "Company Profiles" and "Research Inventories"
The problem is that often there will be 3 "Research Inventories" with the same name (Bechtel) as the "Company profile." I would like to label each content type, and have an icon maybe so that a user who stumbles upon a page that says "Bechtel" will know if it is a company profile of Bechtel or a Research inventory of Bechtel.
Any ideas for modules that enable this functionality?
--ian--
Quoting "ian@corpwatch.org" ian@corpwatch.org:
Hi,
Does anyone know of a module that will allow small customizations of different content types? I have a few on my site such as, "Company Profiles" and "Research Inventories"
The problem is that often there will be 3 "Research Inventories" with the same name (Bechtel) as the "Company profile." I would like to label each content type, and have an icon maybe so that a user who stumbles upon a page that says "Bechtel" will know if it is a company profile of Bechtel or a Research inventory of Bechtel.
Any ideas for modules that enable this functionality?
You can do it with the theme. See http://drupal.org/theme-guide for a guide. Also search this lists archives.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/