Utility forms and functions
This page describes how to access the following forms and functions:
vsGet - import file from anywhere on internet
vsdiscussionswitch - switch allow discussions property on or off
vschangecreator - change creator of web document
vslinkreplace - replace many instances of same link
vscreate_folder_property - set property for all subfolders
vsanalyze_len and vs_analyse_ref - returns pages with size and no of links outside preset range.
vsanalyze_depth and vsanalyze_tree shows all folders, ordered by tree level, and the # of items per folder.
All these forms and functions are called by adding the name to the URL:
for example to call vsGet in the folder mysite.com/myfolder, type
in mysite.com/myfolder/vsGet
vsGet allows an authenticated user to import a file from anywhere on the
Internet into the current Plone folder. Calling vsGet via the URL above
will display the File Import Form.
You must first have a path specified
in file_temp_path in your vsCore preferences (see above); the requested
file will be temporarily downloaded to the specified path, and will be
deleted after the import has been completed.
vsdiscussionswitch allows the user to switch the “allow discussions”
property on or off for a folder and all its subfolders. (Manager Role only)
It is called via the URL as in mysite.com/myfolder/vsdiscussionswitch. This will display the Allow Discussion Switch Form.
vschangecreator allows the user to change the creator property for all the
documents of a folder and all its subfolders. (Manager Role only)
vschangecreator is called via the URL as in
mysite.com/myfolder/vschangecreator; this will display
the Change Creator Form.
vslinkreplace allows the user to replace links (actually, any kind of strings).
Opening the URL mysite.com/myfolder/vslinkreplace will display
the Link Replace Form.
vscreate_folder_property allows the user to create and set a property
for all the subfolders of the current folder. (Manager Role only)
It is called via the URL as in
mysite.com/myfolder/vscreate_folder_property; this will
display the Property Create Form.
vsAnalyze_len and vsAnalyze_ref
SEO considerations require a page to be not too long and not too short,
and also to not have too many or too few links.
vsanalyse_len and vsanalyze_ref allow the user to identify which pages fall
outside the min_len/max_len and min_ref/max_ref constraints set
in the vsCore menu option in Preferences.
vsanalyze_len is called via the URL
(as in mysite.com/myfolder/vsanalyze_len) and shows all
documents with size outside the min_len and max_len range.
vsanalyze_ref is called via the URL
(as in mysite.com/myfolder/vsanalyze_ref) and shows all
documents with the number of links outside of the min_ref/max_ref range
vsanalyze_depth and vsanalyze_tree
vsanalyze_depth shows the # of folders per level of the folder tree.
It is called via the URL as in http://www.mysite.com/myfolder/vsanalyze_depth.
vsanalyze_tree shows all folders, ordered by tree level, and the # of items per folder.
It is called via the URL as in http://www.mysite.com/myfolder/vsanalyze_tree.
vsLink and vsUnlink
Calling the URL /myfolder/mydoc/vslink brings up the link insertion form
which allows to transform some or all occurrences of a keyword
(or keyphrase) in document mydoc into a link to a specified URL.
One can also use the URL /myfolder/vslink, to do the same to all
documents of /myfolder and to all documents of all its subfolders
Calling the URL /somefolder/mydoc/vsunlink revokes all links
created by vslink (see above) in document mydoc. As with vslink,
one can also use the URL /myfolder/vslink, to do the same to all
documents of /myfolder and to all documents of all its subfolders
vsdocstats shows an activity stats page for the current folder.
(Manager Role only) It is called via the URL as in
mysite.com/myfolder/vsdocstats.
