Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
987 views
in Q2A Core by

Just want to ask it is hard to do that in index page will be shown only for example 5 questions (like usually) but others questions will be not expanded (no date, tags, author and category.)

I think that this feature can reduce index page load time.

I try to show:

Question list in homepage:


http://paveiksleliu-talpinimas.kar.lt/p/first3.png

http://paveiksleliu-talpinimas.kar.lt/p/1.png

http://paveiksleliu-talpinimas.kar.lt/p/2.png

http://paveiksleliu-talpinimas.kar.lt/p/3.png


1 Answer

+1 vote
by
Sure, you can do this with an advanced theme, which overrides function q_list(...). In your version of q_list(), check $this->template to see if you're on the home page, and if so, change the loop to do something different after three questions have been output.
by
Sounds difficult maybe more details of how to do that ?
...