FoxInCloud
Determining the site folder
Gravatar is a globally recognized avatar based on your email address. Determining the site folder
  Paul
  All
  Aug 5, 2019 @ 10:54pm

Hi,

Sorry if this has been asked before, but I can't see an answer in the forum.

I want to store custom html files under the site folder and use them in form.wcHTMLGen().

At runtime I need to know the absolute path to the site folder, for both "file" mode and COM mode.
This post : https://support.west-wind.com/Thread55G10HBA2.wwt mentions thisForm.oConfig.cHTMLpath, but that does not seem to exist.

What is the code to reference the site path?

Thanks
Paul

Gravatar is a globally recognized avatar based on your email address. re: Determining the site folder
  FoxInCloud Support - Thierry N.
  Paul
  Aug 6, 2019 @ 01:14am

Hi Paul,

thisForm.woConfig.cHTMLpath

Gravatar is a globally recognized avatar based on your email address. re: Determining the site folder
  Paul
  FoxInCloud Support - Thierry N.
  Aug 27, 2019 @ 02:56pm

thisForm.woConfig is null, at least it is in my login page when referenced from thisform.wcHTMLGen().

I have found that m.process.cHTMLPagePath contains what I want.

Paul

Gravatar is a globally recognized avatar based on your email address. re: Determining the site folder
  FoxInCloud Support - Thierry N.
  Paul
  Aug 28, 2019 @ 10:08am

You're right, we'll set .woConfig earlier in the process

FWIW, m.process.oConfig holds the app config object.

Gravatar is a globally recognized avatar based on your email address. re: Determining the site folder
  FoxInCloud Support - Thierry N.
  Paul
  Aug 29, 2019 @ 12:07am

we'll set .woConfig earlier in the process

done, will come with V 2.30.0-beta.3

© 1996-2019