| |
Folder Object
Contains:
Properties:
- Title (read-only) - name of the folder.
- FirstChildFolder (read-only) - the first subfolder.
Example:
fld = IQ.SavedPages.FirstChildFolder();
while (fld) {
...
fld = fld.NextFolder();
}
//go through all subfolders in a folder
FirstChildPage (read-only) - returns Page object of the first page in the folder.
- ParentFolder (read-only) - returns Folder object of the parent.
- NextFolder (read-only) - next folder of the same level.
Functions:
- CreateFolder (title, create) - returns child folder with the specified name. If the folder doesn't exist and create is true, the folder will be created. You may omit the create parameter - it is false by default.
- ForceFolder (titles) - create nested subfolders. titles is a string with folder names, separated with \ symbol. If the folder name contains \ symbol, it should be duplicated.
Example:
IQ.SavedPages.ForceFolder('Forums\\Inquiry').FirstChildPage;
//returns first page in the Saved Pages\Forums\Inquiry folder
FindPageWithURL (url) - looks for a page with the specified URL among all pages in the folder.
- FullTitle (without parameters) - returns the fully-qualified folder name to pass to the ForceFolders function.
|
|
|