Currently Browsing: drupal

lighttpd 1.4 + php 5.4 + drupal clean urls

Here’s what I’m using for drupal powered by lighttpd 1.4 & php-fpm 5.4 :

        ### shorten /files, /themes
        ### 2012-01-30 - randall
        ### %0 = entire hostname
        ### %1 = prefix of *.*.example.com
        url.rewrite-once = ( "^/files/(.*)$" => "/sites/%0/files/$1")
                             ###"^/themes/(.*)$" => "/sites/%0/themes/$1")

        ### Deny access to backup_migrate module dumps
        $HTTP["url"] =~ "^(\/sites\/(.*)\/files\/backup_migrate\/)" {
            url.access-deny = ("")
        }

        ### clean urls for >= lighttpd 1.4.24
        ### http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite#urlrewrite-repeat-if-not-file
        ### 2012-01-05 - randall - fix for drupal 7 with image cache
        url.rewrite-if-not-file = (
            "^\/([^\?]*)\?(.*)$" => "/index.php?q=$1&$2",
            "^\/(.*)$" => "/index.php?q=$1"
        )

        ### "Fix" for Drupal SA-2006-006 (but let imagecache work)
        ### http://www.linode.com/forums/viewtopic.php?t=5300%3E
        $HTTP["url"] =~ "^(\/sites\/(.*)\/files\/)" {
            $HTTP["url"] !~ "^(\/sites\/(.*)\/files\/imagecache\/)" {
                fastcgi.server = ()
            }
        }

 

 

end of snippet.


Remove author info and date from search results in Drupal 6/7

Originally from http://drupal.org/node/1101554:
If you want to hide any content wich is generated by any php code add these lines to end of your style.css file:

.search-info {
 display: none;
 }

Fix the “No front page content has been created yet.” in Drupal 7 problem

You can hide the “No front page content has been created yet.” in Drupal 7 by adding the following to your local.css:

#first-time {
display: none;
}

buy soap locally

here in santa barbara, ca you can buy soap made locally: http://www.sweetleafessentials.com/

Their website is powered by Drupal too…


Drupal: Sorting by last name given the Title in a link field

preg_match('~([^\s]+)(?:,.*)?$~',$node->field_faculty_link[0]['title'], $match);
$node_field[0]['value'] = $match[0];

« Previous Entries

Powered by WordPress | Designed by Elegant Themes