The Montoya Herald, a weblog about Blueprint, jQuery, design, music and life, publishing on the web since September 2005. Written by Christian Montoya: developer, designer and entrepreneur.

The Montoya Herald — ChristianMontoya.com

Search

Supported By

Construct 0.5: small changes that equal big improvements

Posted on April 30.

Last Sunday I decided to finally take Construct to version 0.5 with some long-awaited features. It now supports:

It also has some small fixes and improvements, most importantly:

These changes required some major updates to the Construct code. For example:

$('#construct .container.selected').prev();
// ... 
$('#construct .container.selected').next();

Had to become:

$('#construct .container.selected').prevAll('.container').slice($(this).length - 1, 1);
// ... 
$('#construct .container.selected').nextAll('.container').slice(0,1);

And I'm not sure if that's because there's a bug in jQuery or that's just the intended way.

var tagName = el.nodeName.toLowerCase(); // tag name!
 
if( tagName == 'hr' ) { 
  markup += tabToDepth() + "&lt;" + tagName + "&gt; <br>";
  return markup;
}
else if( tagName == 'p' ) { 
  parseDepth += 2;
  markup += tabToDepth() + "&lt;" + tagName + "&gt;Lorem Ipsum...&lt;/" + tagName + "&gt; <br>";
  parseDepth -= 2;
  return markup;
}

I'll have some screenshots and maybe a fresh tutorial up soon, but make sure to check version 0.5 out. Also, I think it's worth mentioning that with what I did on Sunday, it's apparent that I can achieve a lot more in terms of allowing users to add their own sample content to the layout as well as allowing them to customize more things, such as colors and background images, as well as content styles. More than ever before, I can see the potential for a completely semantic, clean, standards-based layout editor built on top of Blueprint and jQuery, with a very minimal amount of code. It's cool stuff.

If anyone has any ideas for what I can do to reach more people with this project and make it better as well, do share.

Get a Trackback link

2 Comments

  1. Prof Kienstra on April 30, 2008

    Very nice tool Christian, and one i'll definitely be using in the near future. Just one small question. For a column to align only to the right, do i have to hard edit the generated css / html file? Because i couldn't find any option of aligning the comments.

  2. Christian Montoya on April 30, 2008

    Prof: What Construct produces is what Blueprint's grid provides. Columns are all floated left, with the last one have class "last" to flush with the right side of the container. You can toggle that class on any column with L, but floating right or source ordering or any of that stuff is not available.

Leave a comment

Use Markdown or basic HTML. For posting code, use Postable. Please keep comments respectful and on topic.