This forum is for assistance with theme development.

How to change visual layout of nodes

Hi all

Building a store for a client. Stoee has products. I'm trying to change visual layout of thes products.

I'm trying to do a really straight forward thing to the visual layout of nodes on a drupal 4.6 installation. However, I'm also using the image module, as I need images in my 'product' nodes. Where can I change what {content} is generated in in the following code block. (I'm using xtemplate in a theme)

<!-- BEGIN: node -->
  <div class="node {sticky}">
    <!-- BEGIN: picture -->
    {picture}
    <!-- END: picture -->
    <!-- BEGIN: title -->
    <h1 class="nodetitle"><a href="{link}">{title}<!--/a--></h1>
    <!-- END: title -->
    <!--span class="submitted">{submitted}</span-->
    <!-- BEGIN: taxonomy -->
    <span class="taxonomy">{taxonomy}</span>
    <!-- END: taxonomy -->
    <div class="content">{content}</div>
    <!-- BEGIN: links -->
    <div class="links">&raquo; {links}</div>
    <!-- END: links -->
  </div>
<!-- END: node -->

I want to chande the format of this bit of generated HTML:

Pinot Gris.

Submitted by admin on Tue, 04/04/2006 - 09:44.
Alsace | Red


footer problem with positioning

i have a problem locating the footer div , i need it not to be nested in the conten div
i have looked at the page.tpl.php

        print "class=\"$body_class sb-$layout\" id=\"$body_id\"";
        print theme("onload_attribute"); 

>

if (is_array($primary_links)) :
$i=0;
    foreach ($primary_links as $link):
    $i=$i+1;
 if ($i==count($primary_links)) print ('<li class="last">');
                else print ('<li>');
                

print $link

endforeach;

endif;
if (is_array($secondary_links)) :

    foreach ($secondary_links as $link):
  • print $link
  • endforeach;

endif;

I18 in Smarty

Hello.

How to implement
theme("i18n_flags")
in Smarty template?

Drupal CSS Analysis

I wanted a complete list of classes and IDs in Drupal, so I did some analysis. You can find the results here:
http://urbits.com/_drupal/content/20060406/drupal_article01.php

Three reports:

Backend log-in page

I'm making a site with no users except admin, how do I make a page that only the admin can log into? Like in joomla you have www.site.com/administrator so no need for a log-in field in the public site. Thanks!

Graphical Theming Question

I would like to replace many text-links such as "read-more", "post-comments", "reply" .... with some buttons.
Can this be done in the theme? Where would I start?

Andre

Pages

Subscribe with RSS Subscribe to RSS - Theme development