DOWNLOAD DEMO
Current Version: 2.3.8.1 2012-01-26
Need a hand? Join the community.

mojoPortal Developer Community Bloggers

Friday, February 03, 2012 12:59:00 AM

Are you leaving behind an easily found trail of accomplishment?

Few people are interested in your resume any more. Plenty are interested in what you've done.

The second thing you'll need to do is regularly note what you produce in a log or find some other way to keep track.

The first thing is more difficult: If the work you do isn't worth collating and highlighting, you probably need to be doing better work.

Thursday, February 02, 2012 8:00:00 PM


Thursday, February 02, 2012 9:13:56 AM

SOLD OUT. Thanks.

The bestselling ShipIt journal has surprised me in how much impact it has had on the teams that have used it. I ended up selling tens of thousands of them.

I have about 600 left and rather than pay warehousing fees, I lowered the price a whole bunch and will leave it that way until they are sold out. (The rest of the inventory is here). I don't expect to reprint them, sorry.

Also, Jess Bachman's Death and Taxes poster is available at a great bulk price for the next 28 hours at an already funded Kickstarter. I think every classroom and office ought to have one.

Thursday, February 02, 2012 12:14:00 AM

Sooner or later, you'll ask for something or read something or expect something and you won't like what you get. You'll feel like I wasted your time, wasted your money or didn't meet your expectations.

Not just me, of course. Everyone. Even you. You will disappoint someone, and the organizations you depend on will disappoint you. Expectations keep rising, and promises keep being made. We keep bringing more magic into the world, but rising expectations mean that there's more disappointment as well.

That's part of the deal of being in the world.

The alternative, I'm afraid, isn't to choose a path where we make everyone happy and always exceed their expectations. Nope. The alternative is to hide, to fail to engage and to produce nothing.

A pretty easy choice.

Wednesday, February 01, 2012 8:00:00 PM


Wednesday, February 01, 2012 12:03:00 AM

Lightning rarely strikes. Instead, achievement is often the result of stepwise progress, of doing something increasingly difficult until you get the result you seek.

For a comedian to get on the Tonight Show in 1980 was a triumph. How to get there? A series of steps… open mike nights, sleeping in vans, gigging, polishing, working up the ladder until the booker both saw you and liked you.

Same thing goes for the CEO job, the TED talk on the main stage, the line outside the restaurant after a great review in the local paper.

Repeating easy tasks again and again gets you not very far. Attacking only steep cliffs where no progress is made isn’t particularly effective either. No, the best path is an endless series of difficult (but achievable) hills.

Just about all of the stuck projects and failed endeavors I see are the result of poor hill choices. I still remember meeting a guy 30 years ago with a new kind of controller for the Atari game system. He told me that he had raised $500,000 and was going to spend it all (every penny) on a single ad during the Cosby show. His exact words, "my product will be on fire, like a thresher through a wheat field, like a hot knife through butter!" He was praying for lightning, and of course, it didn't strike.

There are plenty of obvious reasons why we avoid picking the right interim steps, why we either settle for too little or foolishly shoot for too much. Mostly it comes down to fear and impatience.

The craft of your career comes in picking the right hills. Hills just challenging enough that you can barely make it over. A series of hills becomes a mountain, and a series of mountains is a career.

Tuesday, January 31, 2012 8:00:00 PM


Tuesday, January 31, 2012 11:37:00 AM

Almost every single skin we develop uses a couple javascripts but even the addition of one script can slow the speed of a website. We use a fairly simple process to combine as many of our scripts into one file and then using a neat mojoPortal control, we add that script the combined site script. The combined site script contains most of the scripts mojoPortal uses for things like site cookies, asp.net css friendly adapters, etc… This process will result in fewer files being delivered to the browser, thus improving performance (somewhat).

Create the Skin Script and call it from the layout.master

 

  1. Create a new js file in your skin directory, I usually name it skinscript.js.
  2. Add your javascript to the new file. Don't use <script> tags, you don't need them in javascript files.
  3. Add <portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="skinscript.js" AddToCombinedScript="true" /> to your layout.master. I usually add this right after the <asp:ScriptManager control.

Copy all the scripts from your layout.master to the Skin Script

This is the part that can be a little bit tricky because not all scripts are going to work properly when combined with other scripts. If you copy the scripts to your new file one at a time and test the result, you'll find those pesky ones that will not cooperate. Just leave them in the layout.master, or if you're feeling froggy, rewrite them so they can be combined.

A note about SuperFish

Most of our skins use a superfish menu but the scripts for the superfish menu come in two parts. One is the static script that is in the ClientScript directory which contains all of the superfish magic. The other is an initialization script that is loaded in the layout.master of the skin. Typically, these are loaded by adding the layout.master a <portal:SiteScript control to load the main superfish script and then a <script> element with a bit of jQuery to initialize the superfish menu. We decided to use the jQuery .getScript method to load the main script from our Skin Script. Using this method allows us to initialize the SuperFish menu only if the main script is loaded properly.

A Sample Skin Script

The script below is what we use for starting our skin scripts. It includes the javascript for the Administration Toolbar Menu, Superfish Menu and a neat bit of jQuery that will give the "Add File" button in the Shared Files module a hover state. The script is written out long-form so you can easily see what it does. I suggest that you minify the script before using it in production.

//  ========== 
//  = This file stores all of the scripts that would normally be placed inside the layout.master
//  = Use the following syntax for referencing this script from the layout.master.
//  = <portal:SkinFolderScript ID="sfs1" runat="server" ScriptFileName="skinscript.js" AddToCombinedScript="true" />
//  ==========
 
/*Standard JavaScript */
 
function HideMenuToolbar(){ $("#toolbar").fadeOut(); $("#toolbarbut").fadeIn("slow");}
function ShowMenuToolbar(){ $("#toolbar").fadeIn(); $("#toolbarbut").fadeOut("slow");}
 
 
/* jQuery Scripts */
$(document).ready(function(){ 
 
/* Admin Toolbar */
	$("span.downarr a").click(function() {HideMenuToolbar(); Set_Cookie('openstate', 'closed')});
	$("span.showbar a").click(function() {ShowMenuToolbar(); Set_Cookie('openstate', 'open') });
	$("span.downarr a, span.showbar a").click(function() { return false; });
	var openState = Get_Cookie('openstate');
	if(openState != null){ if(openState == 'closed'){HideMenuToolbar();} if(openState == 'open'){ShowMenuToolbar();}}
 
/* Superfish Menu */
/* Get Superfish mojoPortal Script */
	$.getScript("/ClientScript/jqmojo/mojosuperfish.js", function(){
	    $("ul.sf-menu").supersubs({ minWidth: 1, maxWidth: 27, extraWidth: .2 }).superfish({
		pathClass: 'current', 
		pathLevels: 0, 
		delay:500,
		animation: {opacity:'show', height:'show'}, 
		speed: 200,
		dropShadows:false,
		autoArrows: true
	    });
	});
/* This will make the Shared Files "Add File" button have a hover state */
	$("div.uploadpanel > div > input + div + div").hover(
		function() {
			$("div.uploadpanel div .jqbutton").addClass("ui-state-hover")
		},
		function() {
			$("div.uploadpanel div .jqbutton").removeClass("ui-state-hover")
	});
});

Further Reading

If you're serious about optimizing the speed of your mojoPortal site, I highly suggest you read the "Improving Your YSlow or Page Speed Score" article in the mojoPortal Documentation.

Happy mojo-ing!


Joe Davis  ...Tweet This
Tuesday, January 31, 2012 12:08:00 AM

WaffleOne way for a candidate to change the conversation around her candidacy: have her followers pelt the opposition with waffles at every public appearance. Eggos in particular are lightweight and their shape makes them easy to toss.

Particularly in primaries, simplicity and certainty are rewarded. The waffling candidate, the one who hesitates to give a clear yes or no answer to every question is seen as weak.

(Worth noting that the word "waffling" didn't start appearing in books much until after the 1960 elections).

Of course, this post isn't about politics at all. Customers and employees and vendors and regulators almost always prefer simplicity and certainty.

There are two ways to begin an answer to most questions we face in organizations:

"It's simple" and

"It's complicated."

Both are usually true. At 10,000 feet, most challenges are simple. But actually making something work is quite complicated.

Nuance is the sign of an intelligent observer. Nuance shows restaint and maturity and an understanding of the underlying mechanics of whatever problem we're wrestling with. After all, if the solution was simple, we would have solved it already.

On the other hand, resorting to nuance early and often can also be a sign of fear, of an unwillingness to go out on a limb and make a difference. Hence the reactions of boards hiring consultants and CEOs, or of passionate primary voters. "Don't tell me it's complicated. Just show me the guts to make something happen."

My vote: your goals and your strategy must be simple. You must have passion and certainty in order to make a difference as a leader. Your tactics, on the other hand, should be layered, multi-dimensional and reflect the patience of someone who cares about reaching a goal.

When Howard Schultz talks about coffee or Jill Greenberg talks about lighting or Cory Booker talks about education, they can impatiently demand clear and simple results. At the same time, successful leaders see the nuance they'll need in executing to get there.

The paradox is that the simplicity we often seek in search of solutions rarely leads to the patient leadership we need to get them.

The irony is not lost on me... the decision on when to be bold is a nuanced one.

Monday, January 30, 2012 8:00:00 PM


Page 1 of 4 1 2 3 4 > >>