PDA

View Full Version : How to make index page with modules ?



rosegarden
September 24, 2012, 07:57 AM
I want to make my homepage static using xxx.html or xxx.php to reduce the sql queries but there are two tpl i want to include

#1 Recently Sold
#2 Newly added today

How can i add this two modules into the index page?

Morgan Bohman
September 24, 2012, 08:07 AM
Do a new welcome page with no blocks, then you can add whatever you like. In that way you get your header and footer in your site design.

rosegarden
September 24, 2012, 08:25 AM
I can get all the static content in the index page.

I am referring to the non-static content like the following in the block?

1) The latest listing? - listings_box.block.tpl - (show 4 listings)
2) The recently sold listing? - recently_sold.block.tpl - (show 4 listings)

Mike
September 24, 2012, 11:23 AM
Best way i think (for speed) is to implement function which will generate static content for these boxes and put somewhere to the server, configure cron job for this function and include static files.

But i honestly don't understand very well how you want to organize it, as any page in the flynax is working through index.php file and anyway there are some sql queries.