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?
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.
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
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.
Create your Q&A site at askbot.com. Managed Askbot hosting at just $15/mo. Dedicated hosting, support contracts, consulting services.
create your Q&A siteAsked: 2010-08-17 09:43:05 -0500
Seen: 172 times
Last updated: Aug 18 '10
Search related questions when posting a question
Could "start mode" be added as a feature?
Why are there french fries on www.askbot.org?
How are settings and rules edited?
Is Askbot interested in Skins?
Where are the badges in a fresh install? [fixed]
Rules on what should be in the Wiki and what should be here?
Copyright Askbot, 2010-2011. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.