This forum is for assistance with theme development.

Hover (pretty) BreadCrumbs

To get a nice effect with your BreadCrumbs open your /themes/xyz_theme/style.css

>>Find ".breadcrumb"

>>Add below:

.breadcrumb a {
  padding: 2px 6px 2px 6px;
  border: solid 1px #ccc;
  background: #eee;
  color: #666;
  text-decoration: none;
  font-size: 10px;
}

.breadcrumb a:hover {
  color: #eee;
  background: #666;
  border-color: #ccc;
  text-decoration: none;

That's it! Simply use your own background, color, and border for different colors. >-)

How to display date in xtemplate

Hi guys,
I'm trying to display the actual date in a theme based on Pushbutton.
Is there a way to do it?
Moreover are there any other variables than the ones listed in the drupal handbook?
Where can I find them?
Thanks in advance,
Riccardo

Themes - GPL License Bluebeach

OK, I'm a little confused at the minute. Could still be lack of sleep but...

I'm working on a custom theme for my site, which I would like to keep private for the same reasons drupal.org keep bluebeach private. I don't want other sites to look like mine.

However, I am learning the Druapl themeing system, so I started from the Pushbutton PHPTemplate variant and have been modifying from there. Pushbutton is under the GPL, so, I believe I am legally bound to release any derivative work to the public also under the GPL. Which I don't want to do.

phptemplate: Detecting a "page" -vs- a "story"

On my site I use story nodes and page nodes quite differently. The page nodes are used to display static information that is about the site - it's not really content - for example, the about page. On the other hand, I use story nodes for stories - the difference being that a story has attributes that the user needs to see, such as the date it was submitted, who submitted it, etc -- for example http://classfivenews.com/node/25 (note: currently does not display correctly -- its missing information -- see below).

The problem is that I need to display these two different types of nodes differently. For a "page node" I just want to display the content and nothing else. For a "story node" I want to display the submitter, when it was submitted, the taxonomy terms, etc.

The problem is, there doesn't seem to be a way to distinguish between these two types of nodes in node.tpl.php. i.e. what I want is something like this:

<!-- What can I actually put on the line below to get the result I need? -->
<?php if ($node-type == "story"): ?>  
    <?php print $content ?>
<?php else: ?>
  <!-- show the submitter, date, taxonomy terms, etc -->
  <!-- ...ommitted for brevity -->  
<?php endif; ?>

Is there a way to do what I'm trying to do?

How can I get rid of Time Counter??

Hi, everyone,,,

I'm new to this drupal,,,

I'm currently using cameleon theme and I want to get rid of timecounter under each categories,,,,

How can I do that???

Thank you !!

Customising Login form

I have had a look in few places, but still not too sure how to go about customising login form (blocks section). I'm creating a template using a xTemplate engine...

Say for example i want my login form to look something like this:

Username: [text box] {Button Login}
Password: [text box] {Button clear}

Is this achevable via templates? i would really hate to do it somewhere else (like modifying the actual module) since this would make any upgrades extremly difficult.

Thanks in advance,
Nick Goloborodko

Pages

Subscribe with RSS Subscribe to RSS - Theme development