Web Connection
Error: File 'rendercontent.prg' does not exist
Gravatar is a globally recognized avatar based on your email address. Error: File 'rendercontent.prg' does not exist
  Tore Bleken
  All
  Oct 26, 2020 @ 03:49am

Please ignore, after some more testing and reading, I finally got it.

Gravatar is a globally recognized avatar based on your email address. re: Error: File 'rendercontent.prg' does not exist
  Rick Strahl
  Tore Bleken
  Oct 26, 2020 @ 12:26pm

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 ---

Gravatar is a globally recognized avatar based on your email address. re: Error: File 'rendercontent.prg' does not exist
  Tore Bleken
  Rick Strahl
  Oct 26, 2020 @ 12:49pm

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... 😃

Gravatar is a globally recognized avatar based on your email address. re: Error: File 'rendercontent.prg' does not exist
  Michael B
  Tore Bleken
  Oct 27, 2020 @ 04:50am

Amazing what the 30 minute or the 8 hour sleep cycle will do for solving issues.

Gravatar is a globally recognized avatar based on your email address. re: Error: File 'rendercontent.prg' does not exist
  Tore Bleken
  Michael B
  Oct 27, 2020 @ 05:18am

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... 😃

© 1996-2024