Espen Moe-Nilssen wrote:
I made a template to show a random photo on the front page.
As far as I understand, it is easy to use the same approach to show other random stuff (like a changing front-page in a "store", for example by setting the path to a smartfolder and using a macro to display a page.

Espen:

I see two problems with your idea/code:

1. I don't think is a good idea to create a random front page for every visitor in your site; that might work on low-traffic sites, but in high-traffic ones it can kill the server as you can't use caching.

2. it's not a good practice to develop your application in TALES; I know you are new to this stuff, so it's a good idea that you read this excellent document by Stefan Holek: http://plone.org/events/conferences/seattle-2006/presentations/top-twenty-plone-pitfalls.pdf

saludos


_______________________________________________
Product-Developers mailing list
[email protected]
http://lists.plone.org/mailman/listinfo/product-developers

Reply via email to