Syndicate content

Drupal Theming

Hi all,

Which is the best way to customize front page of my site?

  1. I have a vocaboulary named "CATEGORIES"
  2. Example of categories (first level of terms) are: "music", "art", "sport"
  3. Every category has is own sub-terms, e.g.:
    • music -> rock, country, jazz
    • art -> photos, sculpture
    • sport -> basketball, football, hockey

In my home page i would have a box for every category, listing all recent posts for that category (and posts of related subterms), like this:

Greetings. I have successfully themed a drupal 6 search form using the csearch methodology as found on the web. Everything looks great, the search box and new image submit button are in the header. The problem is that the same image submit button is drastically shifted out of site on the advanced search page itself, what shows on the breadcrumb as Home >> Search. In IE, I see the top 3 or 4 pixels of it as though it has dropped down, and in Firefox it is cut off on the right and left sides.

Hi Aaron, came back to use your code on how to insert a View programmatically http://www.pixelclever.com/how-programmatically-insert-a-view-drupal-6

I have come up with a few problems.

I created a view with fields to use the taxonomy term as an argument, then created the View theme templates to display the fields. The view that overrides the the content type shows all the nodes of the content type, and is not picking up the argument taxonomy term from the url (though it does on the live preview in the view)?

I've been reading "Drupal 6 - Ultimate Community Site Guide" - it's a tutorial on how drupalfun.org was built. Early on it suggests using the Pixture theme and the DHTML Menu module. In researching these, it appears that the Pixture Extended theme and JQuery Menu module might be better alternatives. Since Pixture Extended uses Superfish menus (a jQuery plugin), I'm wondering if there might be conflicts in combining the two.

Here is the part of the documentation for the theme regarding the Superfish Drop Menu:

1) Build a standard drupal menu. Set the correct levels to "expanded".

I have a gallery created with Views, however when I click on the thumbnail, the default node type (content type) is displayed. I thought that it would be possible to create a View for the Content (node) type, but I do not see how do this? So to theme the node type do I have to do that in the template file or create a node_type.tpl file?

I would like to implement a menu system like the one in the top block of the main column in the Pixel Clever tutorials section, in which two horizontal menus at the bottom of the block seem to do duty for a menu tree, with the selected results (taxonomies?) being displayed on the blue menu bar at the top.

This is really great work in my humble opinion. If any how-to sharing is possible and appropriate, I would be most appreciative.

Want to be kept informed whenever new content is added to Pixel Clever? If so you can subscribe to the RSS for the whole site, or for particular subjects that interest you. Below is a listing of feeds that you may find useful.

The Pixel Clever Blog feed: News, Announcements, commentary on Drupal, project management and on technology in general.
http://www.pixelclever.com/blog/feed

In Drupal 6 views has been completely rewritten from the ground up, and as such we have to adjust the little code snippets that we developers have collected over the years to compensate.

The old way ( Drupal 5 views 1 ) of inserting a view into a tpl or into a php enabled content area was as follows:

<?php
$view_name = 'text_listing'; //name of view
$view_args = array($oldstring) ;
$view = views_get_view($view_name);
print views_build_view('embed', $view, $view_args, $view->use_pager, $view->nodes_per_page);
?>

This has now changed to the following:

<?php
  $view_args = array();
  $display_id = 'page_1';
  $view = views_get_view('logo_slideshow');
       if (!empty($view)) {
        print $view->execute_display($display_id , $view_args);
  }
?>

BlueCitron is actually two themes in one; a fixed width theme and a fluid width theme. It is built using a pure CSS (table free), standards compliant and cross browser compatible layout. This the first theme that I have contributed to the Drupal community, but I intend to create others as time allows (I have quite a bit on my plate these days).

You can download BlueCitron from the BlueCitron project page at: http://drupal.org/project/bluecitron

There are several ways to insert blocks onto a page with Drupal. You can use panels, you can add a region to the theme, or you can call the blocks programmatically with php. Though it might not seem evident at first there are some situations where it really is much easier, or better just to call a block with php rather than using the other options. One good example is where you want to add a particular block to a page that shows up in an odd location (such as the top right hand corner of the page) where panels can’t get to.