Hello there,
I've been working on the formatting of the result in the cgi version on windows. So far I have been able to get what I want done using CSS, but I've run into a little problem.
The url on the results page sometimes can be very long on my site and as a result the text is longer than I'd like, stretching out my layout. I have the div (with class="infoline") set to a specific width. For the description div (with class="description") setting the width wraps the text nicely when it gets to big. With the url, however, I don't wish to wrap the text (it's too big and doesn't have any spaces on which to nicely wrap). If I set the overflow css attribute for the infoline div, it never appears in a nice way.
What I'd really like would be to get the url to be limited to a certain size, the way that is done for the url, cutting the text off after a certain number of characters and adding ... to the end of it. Is this a possible configuration setting? If not, I might have to use JavaScript to do this after the text is rendered, but I'd rather not do that if possible.
Is there some other way to go about this?
I find using CSS to format the page a little limiting by times when it comes to CGI. For example, I'd like to move the "x results found" and "2 pages of results" and think I'll resort to JavaScript manipulation of the DOM. Have you considered outputting XML then using XSL to format it for the CGI version? This might give it the formatting flexibility that the PHP and ASP versions have.
(That said, it's a fantastic product, by the way and I love the speed the CGI offers. Keep up the good work.)
I've been working on the formatting of the result in the cgi version on windows. So far I have been able to get what I want done using CSS, but I've run into a little problem.
The url on the results page sometimes can be very long on my site and as a result the text is longer than I'd like, stretching out my layout. I have the div (with class="infoline") set to a specific width. For the description div (with class="description") setting the width wraps the text nicely when it gets to big. With the url, however, I don't wish to wrap the text (it's too big and doesn't have any spaces on which to nicely wrap). If I set the overflow css attribute for the infoline div, it never appears in a nice way.
What I'd really like would be to get the url to be limited to a certain size, the way that is done for the url, cutting the text off after a certain number of characters and adding ... to the end of it. Is this a possible configuration setting? If not, I might have to use JavaScript to do this after the text is rendered, but I'd rather not do that if possible.
Is there some other way to go about this?
I find using CSS to format the page a little limiting by times when it comes to CGI. For example, I'd like to move the "x results found" and "2 pages of results" and think I'll resort to JavaScript manipulation of the DOM. Have you considered outputting XML then using XSL to format it for the CGI version? This might give it the formatting flexibility that the PHP and ASP versions have.
(That said, it's a fantastic product, by the way and I love the speed the CGI offers. Keep up the good work.)
Comment