This forum is for assistance with theme development.

Theming Views 2 Removing or Insert html tags {SOLVED}

hello,

how can i customize(theme) views output, removing or inserting some extra tags (Html)?

any idea i very much appreciated.

thanks,

vsotto

Theming: view field: scope question

Howdy,
I'm creating template files for fields of an Agenda view, where times will be listed in a left column and the title, body are listed to the right. I need to add column divs to make this work, but am having troubles theming what I need, not able to wrap my field divs with column divs.

Here's an output example of the default time field:

<div class="views-field-field-agenda-event-time-value">
      <span class="field-content">1800 - 2000 hours</span>
</div>

I want it to look like this:

<div class="leftColumn">
      <div class="views-field-field-agenda-event-time-value">
            <span class="field-content">1800 - 2000 hours</span>
      </div>
</div>

Looking at the information in the edit view page, I created a file called:
views-view-field--agenda--field-agenda-event-time-value.tpl.php

The contents of the file looks like this:

<div class="leftColumn">
      <div class="views-field-field-agenda-event-time-value">
            <span class="field-content"><?php print $output; ?></span>
      </div>
</div>

But I'm using the wrong scope because the output looks something like this:

Nitobe Subtheming css problems

I am currently using Drupal 6.13 and I have just upgraded my theme 'Nitobe' from 6.34 to 6.41. The theme upgrade went fine however I now have a problem.

Whilst still using Nitobe 6.34, I created 3 subthemes of Nitobe - blue, green and orange to enable me to change the colour of the grey background to 3 different colours. It all worked well except since the upgrade I am no longer to change the colour of the background.

The background is created by a pixel x 3 pixel gif which gives it the grey colour, this file is in the main theme's (Nitobe) folder.

A css problem, help

Hello,
there is a css problem at http://www.rignrolls.com/gallery, the float point of the images is confused.
and the css codes of it are as follows:

.view-content-gallery .view-data-image_node_nid {
    float: left; 
    display: inline; 
    margin-left: 15px;  
}
.view-content-gallery a img {
    margin-right: 9px;
    border: 3px solid #E8EBE8;
}
.view-content-gallery li {
    float:left; 
}

What should I do to solve this issue? Thx.

Subdirectories in themes and overriding node-<something>.tpl.php

Hello everybody,

I'm trying to use subdirectories in my theme folder to clean up that big pile of template files a little.

Not getting submenus from primary links

Hi

I am new into drupal, I am creating a theme for one of my client. It has a sub menu system based on the primary links. When I click on menu1, sub menus under this menu1 should display, other wise nothing

I have primary menu system like this,

menu1
sub menu 1 1
sub menu 1 2
menu 2
menu 3
sub menu 3 1
sub menu 3 2
menu 4
menu 5
sub menu 5 1
sub menu 5 2
sub menu 5 3

the primary menus are displaying in top and sub menus are in the left side of the site.

Pages

Subscribe with RSS Subscribe to RSS - Theme development