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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
tux's avatar
41
tux
asked 12 years ago, updated 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago, updated 12 years ago
link

Comments

How can I do it via a custom theme?

tux's avatar tux (12 years ago)

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 (12 years ago)

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

tux's avatar tux (10 years ago)
see more comments