This forum is for assistance with theme development.

Add unique class to each link outputted by views

I'm using views to output a list of links (fields). I can type in an url and a text and the text becomes the link text that goes to the url. Now I want to be able to add a unique class to the link when I add it from the backend. Or have a unique class/ID added to it by default, that is also fine.

How can I do this?

Seven Layout

Hello,

I am rather new to the drupal environment and i am having trouble to override a field.

Is it possible to add a check all button to a list of checkboxes on a field when adding a custom content type?

I am using the Seven theme for the admin section.

I tried to simply add the Field.tpl.php to the Seven theme folder but drupal doesnt override it.

Are there any tutorials out there that shows me an example on how to do this?

I first want to make sure it works this way and then i will make a sub theme of it.

How do I theme a fieldset's contents?

Hi.

I'm trying to theme a fieldset generated by the module Field Group (http://drupal.org/project/field_group).

I'm implementing the following hook_fieldset in my theme:

function MYTHEME_fieldset($variables) {
	$element = $variables['element'];
	element_set_attributes($element, array('id'));
	_form_set_class($element, array('form-wrapper'));

	$output = '<fieldset' . drupal_attributes($element['#attributes']) . '>';
	if (!empty($element['#title'])) {
	  // Always wrap fieldset legends in a SPAN for CSS positioning.
	  $output .= '<legend><span class="fieldset-legend">' . $element['#title'] . '</span></legend>';
	}
	$output .= '<div class="fieldset-wrapper">';
	if (!empty($element['#description'])) {
	  $output .= '<div class="fieldset-description">' . $element['#description'] . '</div>';
	}
	if(function_exists('render_' . $element['#id']))
	{
		var_dump('render_' . $element['#id']);
		$output .= call_user_func('render_' . $element['#id'], array($element));
	}
	else
	{
		$output .= $element['#children'];
	}
	if (isset($element['#value'])) {
	  $output .= $element['#value'];
	}
	$output .= '</div>';
	$output .= "</fieldset>\n";
	return $output;
}

And the function that (tries to) render de fieldset contents:


function render_node_vehicle_form_group_precos_radio($element)
{

Installing themes

Hi to everybody and thank you for taking you time to read my post!
I'm truly confused because I'm stuck on step one-installing a theme.
Every time I install a theme I see only a screenshot for the theme not it's content. Is that normal?
I have to define my self as a complete idiot or there is a trick?
just to say that I saw many videos how to install a theme from a URL or upload from computer...
Some help, please? :D

Update a Theme from D6 to D7

Hi forum,
i am new in using drupal. But i have a problem, which i can't solve alone. On my blog I want to use the Monochrome theme, for Drupal 7 I have to Update the theme.
But i don't understand the following errors:

Notice: Undefined index: template_files in monochrome_preprocess_page() (Line 21 of /themes/monochrome/template.php).

Pages

Subscribe with RSS Subscribe to RSS - Theme development