Home >  Archive >  2010 >  July >  6

Previous / Next

Re-approaching N-level hierarchy
By Dave Winer on Tuesday, July 06, 2010 at 5:51 AM.

Last night I tried something daring, it didn't work, so as it got late -- I backed off. #

Then, overnight, a reader, Daniel Kurejwowski, posted a carefully written analysis. It looked promising, so now I want to give it another try. So that's what I'm doing. #

How I'm approaching it #

First, re-add the recursion to scripting2Suite.server.buildStoryPage. done #

However, because I haven't made the stylesheet changes he recommends, the text isn't indenting properly. #

Second, I made the stylesheet changes... #

It worked -- fantastic! #

I love the way he did the instructions, I just followed them step by step and voila, it worked. #

The good thing is that to make the changes I just edited the stylesheet, which is something every user of Scripting2 will be able to do. My job is to make sure the HTML elements have the right classes on them so people like Daniel can take over. #

Next steps #

Look at the scripting.com home page. You'll see that it uses the same stylesheet. Now, some of the things its doing to get indentation are redundant, there's too much indenting going on. I'm going to see if I can figure out what to do, but I'm inclined to wait until other people take a look. #

Actually there's too much indentation happening here. If an item doesn't have any subs there's no need to leave horizontal space for the + or - icon. #

I have a fresh pot of coffee brewing, and a sense that it can be done! Let's see... #

Update: It worked magnificently.  #




Christmas Tree
This site contributes to the scripting.com community river.


© Copyright 1997-2011 Dave Winer. Last update: Tuesday, July 06, 2010 at 6:26 AM Eastern. Last build: 12/12/2011; 12:39:22 PM. "It's even worse than it appears."

RSS feed for Scripting News

Previous / Next