This forum is for assistance with theme development.

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

Obsidian flavour for Manji theme

I have added Obsidian flavour by ScottDot to the Manji theme package.

It makes use of the same XHTML structure, only with different CSS and graphics. See a test page here http://sandbox.ichris.ws/obsidian

If you are already using Manji, you need to overwrite the existing files with ones in the new tarball. There is 2 lines of code added to the XHTML template.

Style by Node in PHP Template

I am trying to implement a fairly complicated graphical header bar that varies by the section you are in. The sections happen to correspond to node types, so at this point if I could just get

print $node->type;

or

print $node_type;

to return something helpful, I'd be off to a great start. Any suggestions?

The forums contain a few discussions of similar topic but none that got me where I was trying to get.

Pages

Subscribe with RSS Subscribe to RSS - Theme development