-
- rank:
-
Site Admin
- registered:
- December 2003
- Status:
- offline
- last visit:
- 21.07.08
- Posts:
- 261
Hello,
In fact the solution is very simple: create several weather blocks but give a diffrent city code when creating each one.
Of course there is a limit to the number of cities that you can show on the same page because your server will have to fech data from weather.com for each one, but as the results are cached, I have been able to display 8 cities on the same page when I did some tests.
In my opinion , using left and right columns is OK for 2 or 3 cities, but if you want to show more places, you should use the block as a center block, in the same way I did it for the RSS block here: http://www.vedr...e-Start.html
The timing problem when a page must fetch a lot of data from external sources is very noticeable on this page because my server must query 8 RSS servers to build the page, but if another visitor (or you) ask again for the same page a few minutes later, the page is immediatly displayed because the results are cached. You will see exactly the same thing if you put 8 weather blocks on the same page. -
Invité
- rank:
- 1
- registered:
- December 2003
- Status:
- offline
- last visit:
- 06.03.05
- Posts:
- 0
thank you for your reply.
I know using block can do the job but when using block I'll waste so many spacing for up and down space.
I'm not worry to much about the admin config because i must be easy just edit the php file because we don't need after added the static location.
Any idea other than adding multi block?
Thank you in advance. -
- registered:
- November 2006
- Status:
- offline
- last visit:
- 07.11.06
- Posts:
- 3
thank you for your reply.
I know using block can do the job but when using block I'll waste so many spacing for up and down space.
I'm not worry to much about the admin config because i must be easy just edit the php file because we don't need after added the static location.
Any idea other than adding multi block?
Thank you in advance.



