Thanks for the code. I think that the cms object is a CmsTemplateSearch object from the TemplateOne demo. I would like and example not using the classes in the TemplateOne demo. Could anybody show me an example? Meanwhile I will try to use te code you posted me, Stefano, thanks