Make sure you're using Scripts not templates. Though that should work either way depending on what you use. I think it might be failing because you're doing something not supported in a Tempalte (like structured statements) and so the generated code can't properly locate the RenderContent()
to replace. Script should fix that though assuming your template and code are valid.
IOW use ExpandScript()
not ExpandTemplate()
.
RenderContent()
doesn't actually exist as a function - it's a placeholder that is replaced by the template parser which essentially embeds the content page in place. Same with RenderPartial()
but the two are different in that RenderContent()
knows that it's running inside of a Layout page and has access to the layout page and can work with layout features like Region
...
+++ Rick ---
Thank you for your answer. Fortunately I found it out myself after some more testing and reading. Creating a contents page and a layout page with minimal content was a big help. Also taking a little break helped... 😃
Amazing what the 30 minute or the 8 hour sleep cycle will do for solving issues.
Right. In my case I think I really had too many thoughts in my head at a time, and couldn't focus very well. Since the Virtual FoxFest started 12 days ago, I have spent more or less every hour trying out and learning new and old stuff. Unfortunately, for every new thing I learn, I forget two... 😃