First time here? Check out the FAQ!
3

Show first lines of a question in question list and search results

Is it possible to make askbot show the first lines of questions like it is done in the sx network?

For example like in this screenshot: tex

tux's avatar
41
tux
asked 2012-11-23 12:53:50 -0600, updated 2012-11-24 04:53:27 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

1 Answer

1

Thanks for the suggestion. I need more convincing that this feature is actually necessary, because essentially the "search" page and the listing of questions is the same. I don't like that the same content is shown in two different ways (as in "questions" and the "main" page on stack exchange). Originally CNPROG was coded the same way and I have removed that duplication.

What showing an extra line or two is doing - is trying to compensate for often poor question titles. I prefer to work on encouraging creation of better titles - via specific features and educating users. Perhaps you as a owner of a content site should more often edit the titles to make them better.

That said - this behavior achievable via a custom theme.

edited I think I've misunderstood the question actually. This can be done either via an option or a custom theme.. if this request happens to be popular.

Evgeny's avatar
13.2k
Evgeny
answered 2012-11-27 22:49:01 -0600, updated 2012-11-27 22:52:46 -0600
edit flag offensive 0 remove flag delete link

Comments

How can I do it via a custom theme?

tux's avatar tux (2012-11-28 12:32:46 -0600) edit

Sure, create a custom version of templates/widgets/question_summary.html in your theme (in a separate directory). I'd start with a copy of existing template. To access the summary you could use thread._question_post().summary (this may change in the future though, so it may require maintenance down the road).

Evgeny's avatar Evgeny (2012-11-28 12:39:12 -0600) edit

Would be great to see this as a standard feature. Is there any progress into this direction?

tux's avatar tux (2014-05-31 06:03:03 -0600) edit
add a comment see more comments