I want to create an interactive home page using Askbot. Is this possible?

The main page has bunch of questions which has a dump of data that cannot be modified. I would like to change this for my website. (Make it more like Quora)

These are the changes I am trying to make.

  1. Allow viewing the details of the question for each question.
  2. Allow answering of questions in the main page.
  3. Allow voting the questions and answers in the main page.
  4. Allow viewing answers in the main page.

I started looking at the code and the template: main_page/questions_loop.html loops through thread object and the function in models/question.py update_summary_html renders a template to widgets/question_summary.html.

I have made modifications to the function such that it renders to widgets/my_post_summary.html and it added more context like questions and answers.

The main page now displays the information I need. Is this how the its supposed to be done?

Am i doing this in a right way? Is there a better way to do it. Any advice regarding this would be greatly appreciated. FYI, I am aware of risks of modifying 3rd part app.

Edit: I am having trouble registering the control buttons in the main page. i,e Vote.init() register function doesn't have the information required to regsiter the vote up/down buttons. ie I am not able to send POST commands from main page. What should be done?

Joey's avatar
31
Joey
asked 2013-12-22 07:22:20 -0600
Evgeny's avatar
13.2k
Evgeny
updated 2013-12-22 13:04:28 -0600
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments