| Hippo CMS version | v6.03.00 |
| Audience | Site developers |
Purpose
When browsing the preview website, it's sometimes very useful to be able to jump directly to the corresponding document in Hippo CMS to quickly fix a little type error. Locating the original document in Hippo CMS by using the browse or search functionalities can become a burden in this case.
Solution
Add an "edit" button or hyperlink on the preview website that opens a new browser with the Hippo CMS URL, and pass it the location of the source document.
|
Make sure the edit button is hidden on the live website |
Example:
http://cms.localhost:50000/?editUri=/content/folder/document.xml&editType=text
| Parameter | Description | Example |
|---|---|---|
| URL | Should contain the full path to the CMS | http://cms.localhost:50000/ |
| editUri | Points to the repository's source URI | /content/folder/document.xml |
| editType | The document's type | text |
New since version 6.05.05:
If editType parameter is either 'asset' or 'binary-resource', Hippo CMS will jump to the file in the asset perspective.
Logging in
When calling Hippo CMS with the editUri parameter, it will try to log in using the user's latest used username and password. These are stored in a cookie on the client. If this fails, the normal login screen will be shown.
Design Example
The edit button is placed in the preview (in the image below the edit button is at the right).

Here you can find the edit button.
