Removing a Symbolic Link is also done from the properties view of the page containing the link. Each link in the list will have an Unlink link that will perform the removal of the link. The link contains a URL of the form:
http://host/PathToPage?responder=symlink&remove=nameOfLink
But first we need to create a link to remove.
Creating a symbolic link is done in the properties view of the page that will contain the link. There is a form where a user supplies a name for the link and a path for the linked page. When submitted the URL has the following form:
http://host/PathToPage?responder=symlink&linkName=&linkPath=
First we need to create some pages to play with.
Now we create a symbolic link named SymLink. This links LinkedPage as a child of LinkingPage.
http://host/PathToPage?responder=symlink&linkName=
First we need to create some pages to play with.
Page creator. | |
Page name. | valid? |
LinkingPage | true |
LinkedPage | true |
Now we create a symbolic link named SymLink. This links LinkedPage as a child of LinkingPage.
Response Requester. | |
uri | status? |
LinkingPage?responder=symlink&linkName=SymLink&linkPath=LinkedPage | 303 |
When we look at the properties page we'll see the Unlink link.
Response Requester. | |
uri | status? |
LinkingPage?properties | 200 |
Response Examiner. | ||
type | pattern | matches? |
contents | SymLink | true |
contents | <a href="LinkingPage\?responder=symlink&removal=SymLink">Unlink </a> | true |
Now click the remove link.
Response Requester. | |
uri | status? |
LinkingPage?responder=symlink&removal=SymLink | 303 |
This should remove the symbolic link and redirect back to the properties view.
Response Examiner. | |||
type | pattern | matches? | contents? |
contents | Location: LinkingPage\?properties | true |
When we look at the properties page again, the symbolic link will no longer be listed.
Response Requester. | |
uri | status? |
LinkingPage?properties | 200 |
Response Examiner. | ||
type | pattern | matches? |
contents | SymLink | false |
Add Child Page to TestRemovingSymbolicLink