This isn't a very good way to accomplish this.
Create a new page that contains the recordset and the repeat region.
then use Framework builder plugins to add it to main page.
see the Framework builder getting started guide:
http://www.webassist.com/tutorials/Getting-Started-with-Framework-Builder