This forum is for assistance with theme development.

Primary Links not using path alias in href when displayed in theme.

I have path aliases for all of my primary links.

1. When I look at the links in Garland theme, they properly show the aliases as the links (ie. /my/path/alias)

2. In my theme, the primary links show in the form "node/#"

I'm not sure what is wrong, though I assume it is the way I'm displaying the Primary links in my theme. Here is the code I'm using in my theme:

howto theme menu-items for a specific block region ?

dear list

im trying to overwrite the function theme_menu_item() for a specific block region
say i have the block-regions header, left, right, footer
and only want to change the html for the menu-items which are assigned to the header-block

any idea how to do this ?
thanx in advance

Modifying Seach Bar in Header of B7 Theme - Replace Search with Upcoming Events

Hi, everyone:

We're using the B7 theme at work and really love it, but we have unfortunately run into a problem I can't seem to figure out. If anyone has a few minutes to help us out, we'd really appreciate it.

When we installed and switched to B7, we were really excited to see that there was a search bar in the header. We really like that there's room for content there, but what we really want is for a list of upcoming events to display where the search-bar currently displays.

How do you check the node ID in page.tpl.php?

It used to be that you could just check this using $node->nid, however when I try to use this in Drupal 5, it doesn't work. Any ideas?

Howto relative image paths in themes?

Hi there,

how can I call images from relative paths from the theme page.tpl.php?

F. ex: I have a custom theme that calls an image this way:

<img src="<stronb>/themes/mydesign/</strong>img/image-trans.png" />

So, there is a directory, called images inside my theme folder.

But, what I want is to make it this way:

<img src="img/image-trans.png" /> (removing the absolute path)

Can it be done? Thanks in advance, Simon.

help with CSS on aberdeen

http://i186.photobucket.com/albums/x177/cadgreg/help.jpg

I've been at this for hours and I finally got it so that sidebar-right will move to the screen resolution. However, I've noticed that some pages (like above), have gaps between content. I've tried and I can't get resolved. Page is divided into: content and sidebar-right. Any help will be appreciated!

Code for page.tpl.php:
print phptemplate_body_class($sidebar_left, $sidebar_right); >

if ($sidebar_right):

endif;

if ($breadcrumb): print $breadcrumb; endif;
if ($mission): print '<div id="mission">'. $mission .'</div>'; endif;

if ($tabs): print '<div id="tabs-wrapper" class="clear-block">'; endif;
if ($title): print '<h2'. ($tabs ? ' class="with-tabs"' : '') .'>'. $title .'</h2>'; endif;
if ($tabs): print $tabs .'</div>'; endif;

if (isset($tabs2)): print $tabs2; endif;

if ($help): print $help; endif;
if ($messages): print $messages; endif;
print $content

print t('Back to top');


Code for css:

#wrapper {
margin: 0 29px;
background: #fff;
}
#wrapper-header {

}
#header {
height: 206px;
position: relative;
text-align: left;
}
#header-block {
position: absolute;
top: 0.5em;
right: 0;
width: 48em;
height: 1.6em;
}
#wrapper-main {
background: #fff url(images/bg-main.gif) repeat-x 0 0;
}
#main {
width: 68.5em;
margin: 0 auto;
padding-top: 1.6em;
text-align: left;
background: #fff url(images/bg-main.gif) repeat-x 0 0;
}
#topbar {
min-height: 1em;
}
#content {
width: 100%
float: left;
margin: 0 25% 0 0;
background: #fff;
text-align: left;
}
#sidebar-right {
float: right;
width: 225px;
}
#footer {
clear: both;
width: 68.5em;
margin: 0 auto;
padding-top: 4em;
text-align: center;
}

Thanks,
Greg

Pages

Subscribe with RSS Subscribe to RSS - Theme development