Ask Your Question
1

print a question list

asked Aug 17 '10

Federico Poloni gravatar image Federico Poloni
75 6

I am looking for a Q&A system to use in our organization to manage a list of proposal. While they are not technically "questions", the voting, comment and tagging system is great and fits exactly our needs.

However, there's one more feature that we would need and that all Q&A systems seem to lack: the possibility to obtain a page containing the text (not the title, but the full text without comments) of the items matching a search query/tags. This would be great especially for skimming through the list of questions and seeing if something has been asked already. It would be great for printing and offline viewing, too.

Does Askbot have anything similar? Is there any hope that this could be implemented in the near future?

Comments

btw, check out - we've just migrated http://asksci.com/questions/ from stackexchange:) Evgeny (Aug 17 '10)

2 Answers

Sort by ยป oldest newest most voted
1
Federico Poloni has selected this answer as correct

answered Aug 18 '10

Evgeny gravatar image Evgeny flag of Chile
6715 31 49 96
http://askbot.org/

updated Aug 18 '10

Federico, looks like you'll need to modify skin template askbot/skins/default/templates/questions.html

<h2><a title="{{question.summary}}" 
    href="{% url question id=question.id%}{{question.title|slugify}}">
    {{question.title}}</a></h2>

to something like:

<h2>
    <a href="{% url question id=question.id %}">
        Problem {{question.id}}: {{question.title}}
    </a>
</h2>
<div class="question-body">{{question.html|safe}}</div>

The main thing is to display .html field of the question object and pass it through safe filter.

note: if you do not yet use git - it's a very good idea to start since it helps a great deal in maintaining forked code in sync with the updates of the parent project. Use

git clone http://github.com/ASKBOT/askbot-devel.git math_problems

Then stick to using the math_problems (or however you call it) repository. If you move files around, remember to use git mv instead of plain unix mv. This mistake cost me a lot of wasted time before.

In addition

Possibly you might want to modify search to restrict searching in question body only. That lives in the function askbot.models.question.QuestionManager.run_advanced_search - that would be a two-liner change.

Other than that - you'll need to change locale messages. For example - edit msgstr strings in file /askbot/locale/en/LC_MESSAGES/django.po. It is much better than extensively changing messages in the template files directly, because that way chances are you won't have to even touch many templates.

You can also create your own special locale:

cp -r askbot/locale/en askbot/locale/math

and in settings.py use

LANGUAGE_CODE='math'

Then take a look at the Django localization manual.

One last bit of localization (with javascript string translations) lies in the file:

askbot/skins/default/media/js/com.cnprog.i18n.js
link

Comments

Thanks a lot. I'll let you know how everything goes --- though probably it's going to take some time, since we are moving to a new server right now. If we do adopt Askbot, I will surely try and contribute an Italian i18n back to the project. :) Federico Poloni (Aug 18 '10)
great, if you need help with the initial setup - please don't hesitate to ask. I can do it in a few minutes including the server configuration, if needed. Evgeny (Aug 18 '10)
1
Federico Poloni has selected this answer as correct

answered Aug 17 '10

Evgeny gravatar image Evgeny flag of Chile
6715 31 49 96
http://askbot.org/

updated Aug 17 '10

Hi Federico,

Is this something you want to completely replace the search results as shown now? It is very easy to make happen - I'm just trying to understand what parts of UI would need an adjustment.

I've just asked a follow-up question :).

Thanks.

link

Comments

No, actually the best thing for me would be if the search stayed the same, and there were a small link somewhere saying like "show all the texts of the matching questions". So one can have the normal search behavior, plus the possibility to show their texts as well on request. Federico Poloni (Aug 17 '10)
The new "search results with their texts expanded" page could also be a simple static page (i.e. without any javascript at all). I'll reply to the other thread too, thanks for your consideration! Federico Poloni (Aug 17 '10)
I see in http://qa.nmrwiki.org/ the beginning of the text of each question is reported in the default view. This looks already very similar to what I'd like to have. How is it achieved starting from a default install? Can one configure the number of characters displayed? Federico Poloni (Aug 18 '10)
on that site question.summary field is shown right under the title, you probably want question.html field instead. This can be modified in template /askbot/skins/default/templates/questions.html. Evgeny (Aug 18 '10)

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Aug 17 '10

Seen: 60 times

Last updated: Aug 18 '10