Custom Drupal Breadcrumb for a cck content type

posted by Ishmael Sanchez on Nov 28, 2010

Drupal breadcrumbs are a pain. By default they aren't the usable breadcrumb navigation that people find helpful. On CCK node types they don't show any kind of site hierarchy; in fact by default they only show a link to the home page. The only place the breadcrumbs are helpful are on administrative pages.

Redirect authenticated Drupal users

posted by Ishmael Sanchez on Oct 28, 2010

So I was recently working on a project and there was a requirement to have anonymous users view a simple homepage with a sign up form. This is easy enough, create a page (/node/add/page) and add the sign up form (See below, quick and dirty), and set the default front page to this newly created node on /admin/settings/site-information.

Building a better search box in Drupal

posted by Ishmael Sanchez on Sep 30, 2010

Depending on your website the search box might be a crucial element of your site. Ultimately having a functional and aesthetically pleasing search section is helpful to your end users. Drupal's built-in search module is a good starting point but if you have lots of nodes your site performance might take a hit.

Drupal and WYSIWYG Integration

posted by Ishmael Sanchez on Dec 17, 2009

What you see is what you get (aka: WYSIWYG) editors are a necessary evil when creating Drupal sites. These client side editors simplify the creation of HTML so that non-developers can create content using HTML mark up. WYSIWYG editors can be found all over the web from email programs like Gmail to social networking sites like Myspace.

Browser testing

posted by Ishmael Sanchez on Oct 31, 2009

Cross browser support is important for your website. It's a general usability issue; users should be able to access your content and should not be forced to use a particular web browser or technology to view your site. Adding to this your site should render consistently especially considering all the different web browsers options available now.

Writing good CSS

posted by Ishmael Sanchez on Jul 23, 2009

I'm the first to admit, I'm guilty of taking short cuts and writing sloppy CSS. Usually coding sloppy CSS is because of strict deadlines, budget limitations, or putting a band aid on something (Meaning quick fixes without rebuilding entire pages or sections). And of course you could say what about planning and time management?

Creating a Print CSS File

posted by Ishmael Sanchez on Jun 07, 2009

It's important to have a print CSS file. I know that with web work it may seem that most people will be viewing your site with a web browser, but for accessibility and best practice reasons you should always have a print CSS file in case someone wants to print out information from your website. Below are some tips to remember when creating a print CSS file.

Using !important in Your CSS

posted by Ishmael Sanchez on Apr 09, 2009

In Cascading Style Sheets (CSS), the default behavior is that the most specific and last-defined rule takes the priority. That is the main reason to use CSS; you can specify one rule and it will apply (or cascade) to all instances of that element.

404 Page: Why You Need One

posted by Ishmael Sanchez on Apr 03, 2009

Having a custom error page is highly underrated. One of my clients recently reported to me that their most viewed page was their error page. And if you drive a lot of traffic to your site, I wouldn't be surprised if your error page was highly viewed.

So why have an error page? There are several reasons.

Ishmael Sanchez