This forum is for assistance with theme development.

How to style a taxonomy views page with lists?

I'm trying to make a customized list of categories with the count of products within each category. The list is default listed as a bulleted list of categories with the count of products within each category in brackets behind the category name:

  • Category1(3)
  • Category2(1)
  • Category3(4)

This is generated using the views module using a standard view: taxonomy_term

Print node content above title

I am looking for a way to print node content (in my case: a CCK field) above the title in node view. Since the title comes from page.tpl.php (I'm using Zen as basis), I can't print any node content above it changing node.tpl.php. But neither can I print variables from $node in page.tpl.php. One idea is to delete the line

<?php if ($title): ?><h1 class="title"><?php print $title; ?></h1><?php endif; ?>

createing Menu block

I want to create a block which is structured like navigation block

LINK1
LINK2
-LINK3
-LINK4
LINK5

how to theme the block?
or is there any other way to get this result

How can I give a primary link a different class if it has 'children'?

Heya,

First off I would like to say how amazing the community is here, I've been developing a Drupal based site and the topics from the forums have been a great help.

I currently have a horizontal primary links menu set up on my website with secondary links which are children of the currently selected primary link showing underneath. My problem is not keeping the primary link "active" when I am on one it's child pages, but giving the primary link another class ONLY if it has a secondary menu.

Calendar theme overriding

Hi,

my attempts at correctly theming the separate calendar views (Month, Week, Day) has thus far been a mixed bag and something that seems strangely un-addressed here in the deep knowledge well of the drupal forums.

say i have the cck fields:

field_titel, field_autor, field_institution

and for each of the following calendar views i would like to display one or more of these in different configurations:

function phptemplate_calendar_calendar_node($node, $type) {
   if (!$node->local && $type == 'calendar_node_month') {
function phptemplate_calendar_calendar_node($node, $type) {
   if (!$node->local && $type == 'calendar_node_week') {
function phptemplate_calendar_calendar_node($node, $type) {
   if (!$node->local && $type == 'calendar_node_day') {

i've tested w/ print_r($node);, and all values are available. in all honesty, i'm just not much of a coder and don't really know how to get started puzzling together the info i've attempted to coble together from the following threads (the last one dealing actually w/ events, but...)

it seems as tho it would a relatively straight forward thing to accomplish, but i'm not getting anyway - would really appreciate your help.

jquery css

Hi,

I have a basic phptemplate with which I would like to be able to set the background image for the body property using jquery.

Just before the body html tag I have:

<?php

drupal_add_js(
  '$(document).ready(function(){
    $("body").css("background", "white");
  });',
  'inline'
);
?>

and my css style sheet is simply

Pages

Subscribe with RSS Subscribe to RSS - Theme development