Grayside.Org

Freelinking 3: Forging Ahead

grayside — Fri, 11/20/2009 - 23:58

Since I have recently become a co-maintainer on Freelinking, and am now leading Freelinking 3 onward to the next Alpha release, I felt a need to philosophize about Freelinking and where it is going.

One of the biggest differences between traditional writing and composing for the web is the ability to easily interconnect information. Inline references for immediate "further reading" are really powerful, really easy for readers, and really annoying for writers. Be it composing HTML or clicking buttons, creating links interrupts the flow of ideas. Suddenly we have a trade-off between a bad writer experience and a limited reader experience.

Enter Freelinking, the Drupal module that addresses the simple, wiki-like approach to creating links, providing the kind of shorthand notation that minimizes the impact on writers.

  • drupal
  • FL3
  • freelinking
  • 1 comment
  • Read more

Simple Spaces Recipe for a Static Welcome Widget

grayside — Sun, 03/07/2010 - 00:33

One of the little conundrums in OpenAtrium (and I imagine in Spaces) is building static content for the space. (Or in OpenAtrium terms, getting a nice dashboard box to stay put, yet be customizable by group.)

There are countless ways of doing this, but I opted to create a CCK Textarea field in my group content type (named field_group_welcome_message) and turn on the PHP filter.

Then I created a Box (which is what OpenAtrium uses, could just as well have been a block) using the following snippet:

  • boxes
  • dashboard
  • openatrium
  • spaces
  • Add new comment
  • Read more

Moving OpenAtrium Node Form Elements to the Right Column

grayside — Sat, 03/06/2010 - 12:01

Previously, I discussed how you could move CCK fields into the node form sidebar by careful fieldgroup naming.

If you are of a programmer's bent, you might instead try the more flexible programmer's solution--preprocessor function. I dug this out of the atrium_blog feature.

  • node-form
  • openatrium
  • Add new comment
  • Read more

OpenAtrium Empty Views: Gimme That Button!

grayside — Sat, 03/06/2010 - 09:28

Do you like the large gray "Add Blog entry" button when you first visit your blog space, and have yet to create anything? Creating views with similar buttons (or adding more) is really easy!

The key is to create Empty text in your view using the Full HTML Input Format. Then, drop some HTML in like this to make use of Atrium's built-in theming.

<div class="buttons">
  <ul class="links">
    <li class="first last">
      <a href="/node/add/blog">Add Blog entry</a>
    </li>
  </ul>
</div>

  • openatrium
  • snippets
  • theming
  • views
  • Add new comment

Overriding Prepopulate: Do Not Use hook_form_FORM_ID_alter

grayside — Fri, 02/12/2010 - 11:31

The Prepopulate module works some great magic to preload forms from URL variables. But suppose you need some extra magic to modify the titles it puts in place?

You can always use hook_form_alter (and here is one of countless little tutorials on that).

If you already know about that, you might be someone that enjoys the use of hook_form_FORM_ID_alter(). If you do, you cannot use it to override Prepopulate-set fields. It turns out that regardless of module weight, hook_form_FORM_ID_alter is called before hook_form_alter for any given form, meaning that the more specific function will always set the value, then Prepopulate will come along and reset it to your URL value.

There is a nice issue (#300481) that details this problem, and hopefully will find itself fixed in Drupal 8.

  • drupal
  • drupal6
  • drupal8
  • hook_form_alter
  • prepopulate
  • Add new comment
  • Read more

Atrium Casetracker: Change Which Case Statuses are "Closed"

grayside — Mon, 02/08/2010 - 13:35

You might wonder how cases are considered "closed" for purposes of case filtering in the Case Tracker. It's an attempt to be helpful on the Case Tracker's part– hide the stuff that is no longer relevant unless the user specifically asks for it. Unfortunately, I don't like the defaults on what it considers irrelevant.

  • casetracker
  • drupal
  • openatrium
  • 1 comment
  • Read more

Casetracker with Subtasks

grayside — Mon, 11/30/2009 - 16:09

The Case Tracker project provides a fairly straightforward issue tracker. In the future it will provide more functionality, but for now certain types of customizations are left to the end user. This post describes an attached module that provides a simple up/down relationship to Cases using CCK.

Attachment: 
application/x-gtar icon
Case Tracker with Subcases
  • casetracker
  • customize
  • drupal
  • subtask
  • Add new comment
  • Read more

The State of Drag-n-Drop File Upload in Drupal

grayside — Mon, 11/16/2009 - 16:32

This post briefly evaluates the available modules for Drag-n-Drop File Upload & Management in Drupal. Quick summary: It is a sad and sorry thing, with most of the long term solutions in an infant state, and the mature solutions declining or in need of a massive overhaul to stay relevant in Drupal 7.

  • drupal
  • file-upload
  • modules
  • swish
  • 2 comments
  • Read more

Remove CCK Fields from the Node Form

grayside — Thu, 11/12/2009 - 15:05

There is a fine tutorial on drupal.org describing How to set the disabled attribute of a CCK field on your node add/edit form. All that does is deactivate the input widget without removing the clutter. Let's get rid of the form elements entirely.

  • cck
  • drupal
  • how-to
  • node-form
  • Add new comment
  • Read more

Using Nano with Drupal

grayside — Thu, 11/12/2009 - 11:12

Janak Singh had a great introduction to tailoring Nano for use with Drupal. Here are the details of how I use Nano.

Attachment: 
application/octet-stream icon
Drupal Syntax Highlighting for Nano
  • development
  • drupal
  • nano
  • Add new comment
  • Read more
  • 1
  • 2
  • next ›
  • last »
Syndicate content

My Projects

  • Freelinking for Casetracker
  • Field Permissions Plus
  • Activity Stream for Yelp

Monthly archive

  • March 2010 (4)
  • February 2010 (2)
  • November 2009 (7)
  • October 2009 (1)
  • September 2009 (5)
  • August 2009 (1)
  • July 2009 (1)

Feeds

Syndicate contentHeadlines

casetracker cck drupal fields FL3 freelinking how-to module node-form openatrium permissions plugin
<all>

© 2009 grayside.org ♠ Glossary ♠ Powered by Drupal ♠ Floating on Archlinux