This forum is for assistance with theme development.

Theming teasers

I'm struggling with the instructions on this page, which appear to be for 4.6 - I'm using 4.7 though:

http://drupal.org/node/53464

Essentially I want to display terms and submitted information on full node views, but not in the teaser lists.

My node.tpl.php file is currently like this:

<div class="node<?php if ($sticky) { print " sticky"; } ?><?php if (!$status) { print " node-unpublished"; } ?>">
    <?php if ($picture) {
      print $picture;
    }?>
    <?php if ($page == 0) { ?><h2 class="title"><a href="<?php print $node_url?>"><?php print $title?></a></h2><?php }; ?>
    <span class="submitted"><?php print $submitted?></span>
	<span class="taxonomy"><?php print $terms?></span>
    <div class="content"><?php print $content?></div>
	<span class="submitted"><?php print $service_links?></span>
    <?php if ($links) { ?><div class="links"><?php print $links?></div><?php }; ?>	
  </div>

Following those instructions I made this monster:

if ($page == 0): //if node is being displayed as a teaser
//Anything here will show up when the teaser of the post is viewed in your taxonomies or front page

print $node_url"> print $title

};

print $content

if ($links) {

};

text login link that returns to page?

Is it possible to make a text login link and have it return the user to the page from whence they clicked once they have successfully logged in?

Detailed Views for Products

Ok,

I am trying to create custom pages for my website with ecommerce. I am having this problem.
I am probably missing something really simple.

If a create node-product.tpl.php to have a custom theme for" /products".
that has a table list to display all the products listed in the store.

how can you have a custom view for the actual product "/products/my_product" ?

BeauD

Change Username for Profile Name, globally

I want to use the profile name (not the user name you log in with) across my site. Problem areas are here:

Blog title is "Username's blog"
Node variable $name is username rather than profile name.
Navigation block says username rather than profile name.

Any ideas how i can globally change this?

Thanks

CSS Frames work in IE7 and FF2 not in IE6

I've started with the bluebreeze theme for 4.7 and made some changes according the following example.

help theming a view list

I am trying to theme a view list

I am adding this to my template.php

Pages

Subscribe with RSS Subscribe to RSS - Theme development