How to add a css id to field elements in my custom content type

Hi,
So I have created a custom content type and it has around 20 fields in it. I can't seem to use css to style it as those fields don't have a id attached to it.

Is there a way I can attach a id to it ?

cheers,
Vishal

Create different resolutions image galleries.

Dear all,
I'd like to know if there is any option to upload images and automatically create galleries
with different resolutions (say low (640x480), medium (1200x800), high (2400x1600)).
Is there any way to do this?
I'd like to upload photos taken with my DSLR and want people to be able to browse fast among them
(low quality) but in case one wants to print it I'd like them to be able to download the high resolution ones.

Is there any way I can do this?
Thanks a lot in advance for the help :)
Cheers, -Luca

Table type widget

I'm looking for a solution to this probloem:

I have a field which is list (text). As a widget I need a table with selectable cell/cells. Data in such a table is previously entered much like you do with normal select list/radio buttons/check boxes. Of course one must have the ability to choose number of rows and colls.

Has anyone ever come across a module which could help me?

Thanks in advance

Field limit per role module request

I need a module that allows the admin to set field limits to content types according to role, for example users with role A can have 10 images while users with role B can only have 5 within thier profiles. I've been told this module doesn't exist. I hope I haven't posted this in the wrong place.

It just seems such an obviousness module to have to me

thanks

Block Name is Blank in Structure | Blocks

Just coded my first module from the example Drupal 7 Module development book. Everything seems fine apart from one thing. When I go to Structure/Blocks the name for the block is blank. I can add it to a region and it displays fine, but for some reason the block name doesn't appear :?

Here's the code:

<?php
// $Id$

/**
* @file
* A module exemplifying Drupal coding practices and APIs.
*
* This module provides a block that lists all of the
* installed modules. It illustrates coding standards,
* practices, and API use for Drupal 7.
*/

/**
* Implements hook_help().
*/
function first_help($path, $arg) {
if ($path == 'admin/help#first') {
return t('A demonstration module.');
}
}
/**
* implements hook_block_info().
*/
function first_block_info() {

$blocks = array();

$blocks['list_modules'] = array(
'$info' => t('A listing of all the enabled modules.'),
'cache' => DRUPAL_NO_CACHE,
);

return $blocks;
}

/**
* Implements hook_block_view
*/
function first_block_view($block_name = '') {
if ($block_name == 'list_modules') {
$list = module_list();

$theme_args = array('items' => $list, 'type' => 'ol');
$content = theme('item_list', $theme_args); //returns string of HTML

$block = array(
'subject' => t('Enabled Modules'),
'content' => $content,

I don't want Drupal 7 to generate so much css files in <head>

Hello everyone,

Im just starting with Drupal and learning how to build my own theme.

I must say that i know a lot about SEO and am suprised that a modern system like drupal generates a lot of code in the head part.

Im talking about this:

localhost @import url("http://localhost/modules/system/system.base.css?lv4scp"); @import url("http://localhost/modules/system/system.menus.css?lv4scp"); @import url("http://localhost/modules/system/system.messages.css?lv4scp"); @import url("http://localhost/modules/system/system.theme.css?lv4scp");@import url("http://localhost/misc/ui/jquery.ui.core.css?lv4scp"); @import url("http://localhost/misc/ui/jquery.ui.theme.css?lv4scp"); @import url("http://localhost/modules/overlay/overlay-parent.css?lv4scp"); @import url("http://localhost/modules/contextual/contextual.css?lv4scp");@import url("http://localhost/modules/aggregator/aggregator.css?lv4scp");

Pages

Subscribe with RSS Subscribe to RSS - Drupal 7.x