This forum is for assistance with theme development.

Get 'totalcount' (number of reads) on flexinode node in node-flexinode-n.tpl.php

I'm creatng my own node-flexinode-n.tpl.php template to display page and teaser views for flexinode nodes as described here: http://drupal.org/node/45485

I'm successful at creating the page and teaser views. However, I can't seem to get the number of reads (page views count) for the flexinode nodes.

This code does not retrieve the '%count" reads as it should:

[Solved] Getting rid of duplicate titles

In page.tpl.php, we have:

  <?php if ($title != ""): ?>
    <h2 class="content-title"><?php print $title ?></h2>
   <?php endif; ?>

Then in node.tpl.php we have:

Rows will not shade

I'm trying to add row shading to my theme. If I add

tr.odd td, tr.even td {
  background-color: #eee;
  padding: 0.3em;
}

No effect. If I put this directly on the page:

<tr style='background-color:#eee;'><td style='background-color:#eee;'>cell conents</td><td style='background-color:#eee;'>cell conents</td></tr>

No effect.

Secondary links and multilanguage

For my navigation I use a menu with included submenus on a multilanguage site.

e.g.

start             
contact           
   map            
   address            
about           

The submenu should be shown, if the user is either on contact or on a page from the contact-submenu itself.
Everything is ok, if there is only one language, the submenu shows up, when it's supposed to.

I installed the language modules (i18n *, locale, translation) and added french and english to the content/map, pointing them to en/content/map and fr/content/map (like mentioned here: http://drupal.org/node/81094).
Now the submenu is not displayed anymore, when the user goes to en/content/map.

How can this be fixed?

Looks like the menu function is not able to find the trail back when using more than one language.

A good tutorial on how to use collapsible div

HI !

I can't find any good tutorial on how to use the collapsible div in my pages.

I want to have some fieldsets at the bottom of some nodes. I want them to be collapsed on load like in the admin area.

Can somebody give some informations please ?

Thank you.

Matt

Freetagging and Theming problem

I've just upgraded to 4.7 and have started to use the freetagging power but I've run into a problem: I use nifty corners, which are based on category terms. They are quite prescriptive - ie. I have ten main topics that all have their own node theme.

I use template.php to generate css classes with:

<div class="tax-<?php print $node_term[0] ?>">

in node.tpl.php, but this now generates tags rather than the main vocabulary that I want.

Pages

Subscribe with RSS Subscribe to RSS - Theme development