Breaks a path into separate foldernames and a filename.
numero = 263[listpath path=/folder1/folder2/folder3/filename.txt]Path part #[index]: [name]The example above yields:Path part #1: folder1Path part #2: folder2Path part #3: folder3Path part #4: filename.txt
[/listpath]
[listpath path=/folder1/folder2/folder3/filename.txt&FileOnly=T]Path part #[index]: [name]The example above yields:Path part #1: filename.txt
[/listpath]
[listpath path=/folder1/folder2/folder3/filename.txt&PathOnly=T]Path part #[index]: [name]The example above yields:Path part #1: folder1Path part #2: folder2Path part #3: folder3The following parameters are used in the [listpath] context:
[/listpath]
Parameter | Description |
---|---|
path | (Required) Path text to break apart. |
FileOnly | (Optional) Set to "T" if you only want to display the filename at the end of the path. |
PathOnly | (Optional) Set to "T" if you want to display only the folder names, but not the filename at the end of the path. |
Tag | Description |
---|---|
[index] | A number from 1 to the total number of names in the path text indicating the item's index position in the list. |
[name] | Text of the path piece currently being displayed. This can either be a folder name or a filename, depending on the placement of the text in the path (the text after the last "/" is considered to be the filename). |
[filename] | Text of the filename, leaving off the folder names leading to it. |
[break] | From version 8.1, if the [listpath] context sees the [break] tag while executing a loop, it will stop looping, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop. |
[listpath path=/folder1/folder2/folder3/filename.txt]
Path part #[index]: [name]
[/listpath]
[listpath path=/folder1/folder2/folder3/filename.txt&FileOnly=T]
Path part #[index]: [name]
[/listpath]
[listpath path=/folder1/folder2/folder3/filename.txt&PathOnly=T]
Path part #[index]: [name]
[/listpath]
Parameter | Description |
---|---|
path | (Required) Path text to break apart. |
FileOnly | (Optional) Set to "T" if you only want to display the filename at the end of the path. |
PathOnly | (Optional) Set to "T" if you want to display only the folder names, but not the filename at the end of the path. |
Tag | Description |
---|---|
[index] | A number from 1 to the total number of names in the path text indicating the item's index position in the list. |
[name] | Text of the path piece currently being displayed. This can either be a folder name or a filename, depending on the placement of the text in the path (the text after the last "/" is considered to be the filename). |
[filename] | Text of the filename, leaving off the folder names leading to it. |
[break] | From version 8.1, if the [listpath] context sees the [break] tag while executing a loop, it will stop looping, once it finishes the current loop. Thus the [break] tag should only appear in a [showif] statement that is evaluated at the end (bottom) of the loop. |
DOWNLOAD WEBDNA NOW!
A list of the currently available modules...
Download WebDNA ApplicationsWebDNA applications...
WebDNA reference...
WebDNA LibrariesA list of available libraries for WebDNA...
AWS Raw WebDNA LAMP-Plus WebServerAmazon Web Services (AWS) README for Machine Image ID...
[biotype]BioType is a behavioral biometrics WebDNA function based on ADGS research and development (from version 8...
Copy a file with the content you want on your webspace...
[sendmail]There is hardly a website that doesn't at some point need to send an email...
[freememory]...
[shell][shell] is a way to use the command line with your webserver...
[username]Using [password] and [username] is an easy was to show the browser login dialog box...
[deletefolder]Deletes a folder from your website...