Re: TeraScript-Talk: Accessing tafs in other folders
> On 24 Feb 2018, at 2:08 am, Robert Shubert wrote: > > Yes, it does. Ah bugger, not sure why I didn’t know about that. I assume my method pre-dates the metatag. Or I really should be more aware (again). Wayne > > Note that on my servers, I have @WEBROOT set in the absolutepathprefix, so > all paths are automatically prefixed to your webroot. > > Therefore, typing: /file.txt > is as if you typed: <@WEBROOT>file.txt > > -Original Message- > From: D Mark Weiss [mailto:dadwe...@mac.com] > Sent: Thursday, February 22, 2018 4:16 PM > To: TeraScript-Talk@terascript.com > Subject: Re: TeraScript-Talk: Accessing tafs in other folders > > THis is a great idea. > > Does <@webroot> do the same thing? > > Mark > >> On Feb 22, 2018, at 4:51 PM, Wayne Irvine wrote: >> >> For an @INCLUDE I just use the web path ‘/includes/header.txt’. >> >> >> For an absolute file path (like in the File Action) I have a file >> ‘filepath.txt’ in the root of each website that contains the absolute path >> to the root of the site. >> /Library/Server/Web/Data/Sites/~website/ >> >> So whenever I want to reference a file or directory in that website I use: >> <@INCLUDE FILE=‘/filepath.txt’>the/path/to/the/file >> >> Wayne >> >>> On 23 Feb 2018, at 3:31 am, D Mark Weiss wrote: >>> >>> I have a folder. In that folder I have a taf. I would like that taf to >>> access an includes document in another folder. Like a header and footer >>> for example. How do I create a path back out of a folder and Into another.. >>> >>> Like <@appfilepath>../otherfolder/otherdocument.html >>> >>> Or is there an easier way? >>> >>> Mark >>> >>> >>> >>> >>> >>> >>> To unsubscribe from this list, please send an email to >>> lists...@terascript.com with "unsubscribe terascript-talk" in the body. >>> >> >> Byteserve Pty Ltd >> w: http://www.byteserve.com.au/ >> e: i...@byteserve.com.au >> p: +61 02 9960 6099 >> m: 0409 960 609 >> f: +61 02 9960 6088 >> >> >> >> >> >> >> To unsubscribe from this list, please send an email to >> lists...@terascript.com with "unsubscribe terascript-talk" in the body. >> > > > > > > > To unsubscribe from this list, please send an email to > lists...@terascript.com with "unsubscribe terascript-talk" in the body. > > > > > > > To unsubscribe from this list, please send an email to > lists...@terascript.com with "unsubscribe terascript-talk" in the body. > Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: i...@byteserve.com.au p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.
RE: TeraScript-Talk: Accessing tafs in other folders
Yes, it does. Note that on my servers, I have @WEBROOT set in the absolutepathprefix, so all paths are automatically prefixed to your webroot. Therefore, typing: /file.txt is as if you typed: <@WEBROOT>file.txt -Original Message- From: D Mark Weiss [mailto:dadwe...@mac.com] Sent: Thursday, February 22, 2018 4:16 PM To: TeraScript-Talk@terascript.com Subject: Re: TeraScript-Talk: Accessing tafs in other folders THis is a great idea. Does <@webroot> do the same thing? Mark > On Feb 22, 2018, at 4:51 PM, Wayne Irvine wrote: > > For an @INCLUDE I just use the web path ‘/includes/header.txt’. > > > For an absolute file path (like in the File Action) I have a file > ‘filepath.txt’ in the root of each website that contains the absolute path to > the root of the site. > /Library/Server/Web/Data/Sites/~website/ > > So whenever I want to reference a file or directory in that website I use: > <@INCLUDE FILE=‘/filepath.txt’>the/path/to/the/file > > Wayne > >> On 23 Feb 2018, at 3:31 am, D Mark Weiss wrote: >> >> I have a folder. In that folder I have a taf. I would like that taf to >> access an includes document in another folder. Like a header and footer for >> example. How do I create a path back out of a folder and Into another.. >> >> Like <@appfilepath>../otherfolder/otherdocument.html >> >> Or is there an easier way? >> >> Mark >> >> >> >> >> >> >> To unsubscribe from this list, please send an email to >> lists...@terascript.com with "unsubscribe terascript-talk" in the body. >> > > Byteserve Pty Ltd > w: http://www.byteserve.com.au/ > e: i...@byteserve.com.au > p: +61 02 9960 6099 > m: 0409 960 609 > f: +61 02 9960 6088 > > > > > > > To unsubscribe from this list, please send an email to > lists...@terascript.com with "unsubscribe terascript-talk" in the body. > To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body. To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.
Re: TeraScript-Talk: Accessing tafs in other folders
THis is a great idea. Does <@webroot> do the same thing? Mark > On Feb 22, 2018, at 4:51 PM, Wayne Irvine wrote: > > For an @INCLUDE I just use the web path ‘/includes/header.txt’. > > > For an absolute file path (like in the File Action) I have a file > ‘filepath.txt’ in the root of each website that contains the absolute path to > the root of the site. > /Library/Server/Web/Data/Sites/~website/ > > So whenever I want to reference a file or directory in that website I use: > <@INCLUDE FILE=‘/filepath.txt’>the/path/to/the/file > > Wayne > >> On 23 Feb 2018, at 3:31 am, D Mark Weiss wrote: >> >> I have a folder. In that folder I have a taf. I would like that taf to >> access an includes document in another folder. Like a header and footer for >> example. How do I create a path back out of a folder and Into another.. >> >> Like <@appfilepath>../otherfolder/otherdocument.html >> >> Or is there an easier way? >> >> Mark >> >> >> >> >> >> >> To unsubscribe from this list, please send an email to >> lists...@terascript.com with "unsubscribe terascript-talk" in the body. >> > > Byteserve Pty Ltd > w: http://www.byteserve.com.au/ > e: i...@byteserve.com.au > p: +61 02 9960 6099 > m: 0409 960 609 > f: +61 02 9960 6088 > > > > > > > To unsubscribe from this list, please send an email to > lists...@terascript.com with "unsubscribe terascript-talk" in the body. > To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.
Re: TeraScript-Talk: Accessing tafs in other folders
For an @INCLUDE I just use the web path ‘/includes/header.txt’. For an absolute file path (like in the File Action) I have a file ‘filepath.txt’ in the root of each website that contains the absolute path to the root of the site. /Library/Server/Web/Data/Sites/~website/ So whenever I want to reference a file or directory in that website I use: <@INCLUDE FILE=‘/filepath.txt’>the/path/to/the/file Wayne > On 23 Feb 2018, at 3:31 am, D Mark Weiss wrote: > > I have a folder. In that folder I have a taf. I would like that taf to > access an includes document in another folder. Like a header and footer for > example. How do I create a path back out of a folder and Into another.. > > Like <@appfilepath>../otherfolder/otherdocument.html > > Or is there an easier way? > > Mark > > > > > > > To unsubscribe from this list, please send an email to > lists...@terascript.com with "unsubscribe terascript-talk" in the body. > Byteserve Pty Ltd w: http://www.byteserve.com.au/ e: i...@byteserve.com.au p: +61 02 9960 6099 m: 0409 960 609 f: +61 02 9960 6088 To unsubscribe from this list, please send an email to lists...@terascript.com with "unsubscribe terascript-talk" in the body.