Feb 15

Uploading multiple images in Drupal has never been easier. Select all files from within a folder, hit save and it's done. Double click to give them a new name or description, drag and drop to sort, and built in icons for file types. It even works with vertical tabs. The best thing, it's using filefield. This tutorial is about how you install the module and how to create a cck SWFimage field.

0 Comments
SWFupload
Feb 3

Finally finished my latest project Qrant.no. and Apache Solr Search from Acquia is one of it`s services. The module is really great, it gives you outstanding search features like faceted search, related items block and sort options.

This tutorial is about how I created pages that lists taxonomy terms which links to solrsearch and shows search results. This was not easy, at first I thought the faceted blocks could be used anywhere, maybe it`s possible but I didn`t figured it out. Custom pages with views is more fun anyways, great theming options. Ok, this is heavy stuff...

Key settings for this view is, Relationship Parent term, Filter on Vocabulary and rewriting the output...

0 Comments
Apache Solr Search for Drupal
Dec 16

I had to hide a panel pane for certain users on my latest project. Babybrukt is a site where people can create their own ads. Buy, sell or give away used baby "stuff". The advertiser needs to know how many times his or her ad has been viewed. I created a view that gives me the data and went to the panels dashboard.

Panels visibility rules is the place you want to go. Create a new rule and give it these settings.

Visibility rule: user:Compare - First user = node author - second user = Logged in user
Grant access if user context are: Equal.

I spent almost 2 hours on this, even talked to a guy from the NL. We thought it had to...

0 Comments
Panels
Dec 11

Just added a new section to the site containing work that I have done with Drupal, design, css and xhtml in 2008 and 2009. Maybe it's inspirational or maybe it's a good laugh, I don't know :-). You can have a look at it by clicking on the Work menu. These are large images and I recommend a cup of coffee when viewing.

-cheers

0 Comments
Trash
Dec 10

Last night I updated the Vertical Tabs Module to version 6.x-1.0-beta7. Somehow custom CCK fieldgroups disappeared from the vertical menus after the upgrade. I went to Content management settings to see if I had done something wrong. Adding or telling which fieldgroups that shall be displayed within a vertical tab is no longer an option. Grr #$"!$!!.

Reading about the beta6 realease told me that you can add a module called Form. This module gives you an option to edit all forms within Drupal and also, the ability to tell the Vertical Menus which fieldgroups that should be displayed like vertical menus.

0 Comments
install drupal modules
Dec 8

Hey, almost a month since last post :-/ This feature is really great if you want to create different blocks from one view. I had to create a view that contained recent posts, popular posts and popular posts today. To manage this you have to create 3 different page displays and the displays need different sort criteria and filters. At first I thought this was easy, but when I started to modify page display #2 page display #1 got modified, jeezez. Then, after 48 minutes of drupalfrustration I hit the help menu. The solution; A button called override. If you need unique displayes hit this button on the filters and sort options that you need in you're blocks og pages.

0 Comments
Views
Nov 10

The jquery Rounded Corners module is a nice tool if you need rounded corners for divs, classes, blocks etc. I needed rounded corners for a container on my project, I'm using Blueprint 3 framework and this was really easy. The rounded corners module needs to be updated with the latest version, you can download it from here. Replace the version you have in you're Rounded corners module. First I had to create a class for my container:

background-color: #ffffff;
border: 1px solid #cccccc;

Then I updated my page-front.tpl.php

"container conbck"

And...

0 Comments
Jquery
Nov 9

The tutorial "Count all nodes" is a great tool if you need statistics displayed on you're site. If you want to specify by content types you can do it like this:

<?php
$mytype = array('you're content type name');
$in = implode("', '", $mytype);
$count = db_result(db_query("SELECT COUNT(DISTINCT(n.nid)) FROM {node} n WHERE n.type IN('$in') AND n.status=1"));
echo "$count";
?>

To enable this, activate the Php Filter from Drupal core modules and create a block with the php-input-filter selected. Works very well, and remember, you can theme this easily to make it look pretty :-)

1 Comments
Blocks
Nov 7

This tutorial is about the Panels module, and how you can use the Node Template to create different layouts for you're content types. For the ad-site I made, I had 7 different content types. Different fields and different field groups created with CCK had to be displayed differently when users viewed an ad. Panels 3 was just released and it's the first time I use this module for a production site.

I recommend using CCK fieldgroups when creating custom content types. When doing this you can place the fieldgroup itself in panel pane and not fields, it could save you some time depending on how many fields you have created.

0 Comments
Panels
Nov 6

If you want to use images in you stories you may use an editor like Fckeditor or Tinymce. If you're running a newspaper site or a site where images is used frequently you should consider using CCK and Imagecache. To take advantage of this tutorial you should read the Imagecache tutorial, it's about how to configure and use the Imagecache features and the CCK tutorial.

This is basically the same as the CCK tutorial, creating a field and how it will be displayed when viewing a node.

0 Comments
CCK