Wiki source code of [AUTOMATED] Search for a page without locale
Last modified by Ilie Andriuta on 2026/10/13 13:00
Show last authors
| author | version | line-number | content |
|---|---|---|---|
| 1 | 1. Login as Admin | ||
| 2 | 1. Create a new page and insert the following snippet in Wiki mode: | ||
| 3 | {~{~velocity}} | ||
| 4 | #set($myRef = "SomeSpace.SomePage") | ||
| 5 | #set ($myDoc = $xwiki.getDocument($myRef)) | ||
| 6 | #set ($discard = $myDoc.setTitle("Foobar")) | ||
| 7 | #set ($discard = $myDoc.save()) | ||
| 8 | {~{~/velocity}} | ||
| 9 | 1. Verify that a page with the title "Foobar" was created at reference "SomeSpace.SomePage" | ||
| 10 | 1. Search for "Foobar" in the search bar |