Standing in the Field
Notes from SJS Application Server Field Engineering
OK the site update is posted and looks pretty much the way I intended. I was worried about how all of the Roller macros would expand in the new layout and CSS, but it seems to be OK. I've tested in Safari and Mozilla and it looks good. I'm a little worried about the various flavors of IE: I'm using CSS box layout that I know gets a little wonky in IE. But I've compensating for all of the IE bugs that I know of. If you are running IE 5 or 6, drop me a comment and let me know if the box layout looks OK. (There should be a top box with the title and a photo, a content box on the bottom left, and a navbar on the bottom right.)
I'll post some more details tomorrow, but it's late and I just wanted to get these layout changes done tonight while traffic is low. Most importantly, I'll let you know a little bit about the banner photo and about the CSS resources I used to help build this design.
(2004-10-18 00:20:59.0) Permalink Comments [4]| « December 2009 | ||||||
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 | ||
| Today | ||||||
dl
Posted by Dan Lacher on October 18, 2004 at 07:44 AM PDT #
I didn't really have to do anything special. When user clicks through the comments link the same template is used except that only one entry is rendered and the #showCommentsPageLink( $entry ) macro renders into the actual comments rather than just a link.
The other thing you have to be aware of are the CSS classes that Roller will use for your comments. These are comments-head, comments-details, and comments-form in case you want to customize them. I just let them inherit from the DIV I used for the content block though.
Posted by David Ogren on October 18, 2004 at 08:01 AM PDT #
Well it is good to hear that you did not have to do much in the way of css hacking, but I still find this whole comment things to be a nightmare. So you mention that roller calls comments-head, comments-details,a nd comments-form but how the heck do I customize them? Those are the velocity marcos right, I think?
For someone like myself that has a somewhat simple site (http://blogs.sun.com/dlacher/) that is based around tables, I would just like the comments to show up under the posting, and have the form show up under the extra comments.... is that to much to ask? So all of the HTML is being generate to display the comments and form, I just need to know in what file to add the table code so that the content is in the right place.
I guess that is somewhat of a rant and not really directed at you, but to anyone that can help me to understand how to create a custom look for the comments.
dl
Posted by Dan Lacher on October 18, 2004 at 01:34 PM PDT #
Sorry for not being clear. I'm not a Roller guru yet, but here's what I can tell you.
Firstly, don't worry about what I said about comments-head, comments-details, etc. They are just CSS classes that Roller uses so that you can change the appearance of the comments. If you are only concerned with the placement of the comments, you can safely ignore those classes.
Are you asking how you can add the comments to your main page (rather than a link to a seperate page)> If so, just edit the _day page under Website::Pages and replace #showCommentsPageLink( $entry ) with #showComments( $entry). This is the template that is inserted for every day of entries into the the main weblog template. Inserting the #showComments macro will insert the whole body of the comments (including the form and the javascript) whereever you place it in the template.
Posted by David Ogren on October 18, 2004 at 01:55 PM PDT #