The drop is always movingYou know that saying about standing on the shoulders of giants? Drupal is standing on a huge pile of midgetsAll content management systems suck, Drupal just happens to suck less.Popular open source software is more secure than unpopular open source software, because insecure software becomes unpopular fast. [That doesn't happen for proprietary software.]Drupal makes sandwiches happen.There is a module for that

Creating a View with a username argument

Submitted by nk on Sun, 2011-07-03 00:18

I took a D7 site as a small side job the last few weeks mostly to learn Views and to get a chance to write a series of blogposts about how to create interesting things with D7 and Views. This is the first but not the last by far. So we needed a portfolio/username view. This is tricky -- you don't want a User: name, instead you need to add a User: uid contextual filter (argument in D6), specify a User validator and pick Only allow string usernames. After this, in the Header and in the No results behaviour Global: Text Area you can use %1 to stand in for the username even if there is no result indeed. Superb nice and not too hard once you know how. Thanks to merlinofchaos for the tip.

Commenting on this Story is closed.

Submitted by Anonymous on Sun, 2011-07-03 07:28.

Even this sound obvious for you and other people you should mention why you don't want user:name ... performance.

Submitted by Anonymous on Mon, 2011-07-04 07:18.

The performance impact should be minimal: {users}.name is an indexed field.