This forum is for assistance with theme development.

help: primary links with custom id tag based on path and active link?

Greetings all,

Let me start off by saying I am no programmer and it completely shows.
My eyes are bleeding, I've spent 4 days trying to figure out how to do this and would really appreciate some help.

I'm working on a theme for my site.
I have drupal 5.2 installed and I'm using Zen theme as the base for my theme.

I'm trying to customize $primary_links so that it will not only have active links, but also custom id's based on the link names/paths.
example of what i would like at the end:

<div id="navigation" class="menu withprimary ">
  <div id="primary" class="clear-block">
    <ul class="links-menu">
       <li id="home"><a href="/" >Home</a></li>
       <li id="about" class="active"><a href="/about">About</a></li>
       <li id="blog"><a href="/blog">Blog</a></li>
       <li id="portfolio"><a href="/portfolio">Portfolio</a></li>
   </ul>
 </div>

I've found this link which does exactly what i want, but for all menu blocks, i cant get it to work just for primary links:

http://www.nicklewis.org/node/843

the closet i've gotten is with this code in my template.php:

<?php

/**
* Implementation of theme_menu_links().
*
* Add active class to current primary-menu item links.
*/
function phptemplate_menu_links($links, $attributes = array()) {

if (!count($links)) {
return '';
}

themeing page numbers 1 2 3 prev last

im assuming need to catch this information in my node.tpl.php file but i have no idea what the $.... is called?

when i have more than X post on the the front page, the front page displays page numbers ( i am aware that i can limit the number of post on a page under content management) i would like to theme this

Front page styling

I apologize if this has been posted previously... I wasn't able to find anything from my searches.

I have defined my node type to have some images around the content so that it has a pretty little box.

What I would like to do is have this pretty box be around a single sticky node, but non-sticky nodes be enclosed in one large box.

I can't think of a site that does that off the top of my head, so here's the ASCII illustration of what I'm looking for:

After clic in "add comment", only the form comment it's shown

Hi guys

I am doing a site but I've got a strange problem. For instance, if you go to this article

http://pergamo.pucp.edu.pe/willay/node/401

and you clic in "añadir comentario" at the bottom of the page ("add comment") it show you only the form comment but NOT the article above. Also notice, the left menu is hidden.

What am I missing?

Thanks

David.

No Background Color shown for Category Autocomplete

Hi All,

I have a dev site using the SEO Position theme and have set the category selection for a particular node to Freetagging. This displays the text field with a popup autocomplete as the user types the term.

At the moment, this popup is transparent and the page elements can be seen through it, making it very hard to read the text that is being displayed by the autocomplete.

I can't work out how I should be setting this in the stylesheet styles.css.

Can't find how to remove some HTML code

Hello, at the bottom of http://joga.roman.lt/ you can find an RSS icon, that was added previously.

But I can't find how to remove it. I was searching all documents with Dreamwiever, and it's also impossible to find this HTML code through Administrator area.

Please help, if you have any suggestions how this icon can be removed.

Pages

Subscribe with RSS Subscribe to RSS - Theme development