Tag: lamp

How to NOT display Titles on Static Pages in Drupal

This is basically a way to style elements according to what kind of node they are in. So a title in a book page will look different than a title in a story.

This is based on some code written by Erik Hopp as shown in This thread
The idea is, we want each element to have a style assigned to it that not only makes a distinction between the ELEMENT type but the NODE type the element is in. So for example, instead of a title being styled only as

   <h1 class="title">This is the Title of a Static Page</h1>

we want the class name to specify that this title is within a “particular” type of node.

        <h1 class="title-page">This is the Title of a Static Page</h1>
or
         <h1 class="title-story">This is the Title of a Story</h1>
Continue reading

Suggestions for Improving Drupal’s Book Module – Part 1: Administration

Note: a wiki containing this article and many other more in-depth discussions of drupal usability is HERE

A while back I promised to write up some suggestions for improving the book module. I finally got some time, so here they are. I’m posting this here because as far as I know, the drupal.org forums don’t yet allow images to be posted.

I am mostly interested in improving the navigation for the end user of drupal-based books, but I will start with my suggestions for changing the administration of books. Navigation suggestions will follow in another post.

1. When you browse to any page of a book, and click “administer,” you go to the editing screen for that one page.

At the very bottom of the editing screen, there is a button “Edit book outline” that allows you to administer the relationship of that one page to the outline of the rest of the book.
takes you to:

Continue reading

Alphabetical Title Browser for Drupal

Note: See also PHP Alternating Color Table Rows for Drupal or Dreamweaver sites

I needed an alphabetical browser of all published nodes, and couldn’t figure out how to do it using existing Drupal tools, so created one in Dreamweaver and made a static page out of it. Maybe someone can make a Drupal module out of? it. It needs at least four big improvements that I can think of –

1. The Dreamweaver connection code needs to be Drupal-ized
2. It is written in the backwards Dreamweaver way – the php gets inserted into the html, rather than having the php output the html as part of the stream of code.
3. It needs to have the alternating table rows
4. It needs to be paged, when the list gets too long.

Continue reading

A gallery of Drupal themes

Note: the themes shown in this gallery are now largely outdated. Visit The Drupal Theme Garden to see the current themes in action.

To see which themes are currently available and which are up to date, see the version numbers under each theme on the Downloads page on the Drupal.org site

This is a gallery of screenshots of the themes available for Drupal, an open-source platform and content management system for building dynamic web sites. Drupal is available here.

Click any image to see an enlarged view.


ADC – Viewed on Safari


Almaw – Viewed on IE Mac

Continue reading

Installing PHP/mySQL scripts – Tips for Designers

or …
“Just Enough about Unix to get into trouble…”

Determine type of server:
I’ve found that PHP scripts work more reliably on Unix servers than NT. Also, be sure that the server is not running PHP as a cgi script. It really doesn’t work as well. How do you tell?

phpinfo
Upload a little file containing this code:

<? phpinfo(); ?>

Name the file “phpinfo.php” and then view that page online in your web browser. This is a php script that returns all the information about your server environment. In the first table of information, you will find “Server API.” This should be “Apache.” If it says “CGI” you are in trouble. However some things will work fine in this setup, so it’s always worth a try.

Continue reading