Learn the management portal program for the Keny boy sps region list
Source: Internet
Author: User
Yesterday, open the code provided by Keny boy to provide the permission management entry for the list in the sps region. The principle in his program is very simple.
On the wss site, each document library and list have permission settings, and the portal to this permission setting interface is a link, click this link to go to the permission management window of a list. We copy the link to the text editor for analysis. It is not difficult to find its rule:
Http: // server name/wss site name/_ layouts/2052/ShrOpt. aspx? Obj = {List id}, list type
There are only two types of list. If it is a document library, write doclib. If it is another list, write list.
For example, for a document library on site1 site on the test server, its permission management portal is actually
Then, keby is right. Since sps are encapsulated on the basis of wss, there is no reason to close this entry. Therefore, you only need to find a document library or list id in a region and splice it into a link to serve as the portal for this document library. So how can we get the id of this document library (without using a program, directly using a browser) is actually very simple, you only need to enter the document library or list to enter the settings interface, you can find a link to obtain this id.
For example, the address of "Document Library 1" in the "Document Center" area on the test server is http: // test/C1/Document Center/Document Library.
We only need to go to the settings page, and then get the id from the link such as general settings, and then enter the management interface through the following address:
The keny program first columns the List under the region, then asks you to select a List, and then uses the List. id: Read the id of the selected list, and use list. basetype to determine the list type. Use list. parentWeb. url to obtain the address, and then concatenate the entry.
From this, I think, is it possible for other wss sites to access the sps region through splicing addresses like this? I tried it. It seems that there are all such portals, but some features may have been blocked, so I always prompt to enter the user name and password.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service