Content Server: Items, languages and approval
Every item on the content server has its own page: the image, the details in every language, the parameters, the versions and what changed in them. This page explains how to read it, how to edit the details language by language, and when a change waits for approval.
The page of an item
You open it from the library or from Waiting for a decision.
| Part | What it shows |
|---|---|
| Image | The preview, with the buttons next to it: Download the package, Edit, Hide, Move to trash. Everyone sees only the buttons their role allows. |
| Language bar | One button per language that has details. The original language is marked. |
| Details | Name, description, author, tags and so on in the chosen language. Below, For every language: category, audience, classification, tier, spaces. |
| Parameters | Only for items with code (actions, code snippets): the table from the @param lines. |
| In the library | The state of the item, which version is current, the link All versions. |
| History | Who handed it in, approved or rejected it, and when. |
Language bar and falling back to the original
Click a language to see the details in it. Where a field is missing in that language, the original stands in its place, marked Original. So you see at once what is not translated yet. The library and the add-in do the same: whoever works in English sees the English name where there is one, otherwise the German one.
Parameter table
For code, the server reads the // @param … lines and shows them as a table: Label, Type, Name in the code, Default, Range / choices, Tooltip. These are exactly the fields the add-in asks for before it runs the code. Types the add-in does not know are left out. If the code asks for nothing, the page says "The code asks for no parameters."
Every version keeps its parameters. When a new file brings other parameters, the tab Compare shows them in a group of their own, Parameters (one row per name in the code, the old struck through, the new marked), Versions marks that version with Parameters, and the History log lists the old and the new list.
More on the syntax: Snippet parameters.
Download the package
Download the package gives you the ZIP of this version as it is stored on the server, to check it locally or open it in another tool, say. Only those who may see the version get the button. If the check blocked the version, there is no package.
Editing: the whole item at once
Edit switches the whole page into editing. The tabs Details, Translations and Spaces turn into fields that all belong to one form. A bar at the bottom stays in view. You can switch between the tabs without losing anything and save everything at the end in one go.
You stay on your tab
Edit, Cancel and every save bring you back to the tab you were on. Click Edit on the Translations tab and you edit right there.
The bar at the bottom
| Button | What it does |
|---|---|
| Save as a draft | Saves the new state as a draft. Everyone else still gets the version before. See Draft. |
| Save as a version | The new state becomes a version. Whoever decides themselves (administration, curator of the space) makes it current at once. |
| Hand in as a version | The same for contributors: the version waits for its approval. |
| Save | Only for a waiting version: it is changed in place, keeps its number and goes on waiting. |
| Cancel | Leaves editing without saving. |
Next to the buttons one sentence says what saving does. If you changed something and leave the page, the browser asks first.
Details
This tab has the texts of the original language and everything that applies to every language: category, audience, classification, tier. Status, type, design name and the text in the object are not changed by the form; they come from the package.
Translations
Each language has its own set of fields. The language bar switches between them without reloading the page. What you typed in one language stays while you look at another. Next to each language you see how far along it is: complete, 3 of 5 or empty.
- An empty field shows the original in gray ("as the original") and is stored empty, so the original keeps applying there. For the author there is the checkbox Author as in the original.
- + language adds a language from the list of content languages.
- Remove … empties every field of that language. It is saved only with the bar at the bottom. After that the original applies there again.
A translation needs a name
A new language needs at least a name. Without one there is no translation, and the original applies everywhere.
Spaces
The spaces you set while editing belong to the new state. They apply only once that state is the current version. Until then the page shows Planned with version n.
Replacing the preview image
While editing, the Details tab has the field Preview image: the current image, and once you choose one, the new image as a preview.
- PNG and JPG up to 5 MB are allowed. If the image is larger, the page says so as soon as you choose it.
- The server scales the image to the usual sizes (master at most 1920 × 1080, plus the small images for the library and the add-in).
- The image applies with the save, as a draft or as a version, like every other change. The history lists it as Preview image with the file name.
- The image belongs to the version. The version before keeps its image. Going back to an earlier version brings its image back too. Under Properties, the tab Compare has the row Preview image with both images; a changed image has a colored frame, green for the newer one, red for the older one.
- An image cannot be removed, only replaced. Texts have no preview image.
Choose the image again after an error
If the server refuses something (for example because a name is missing), what you typed stays. The browser empties the file field, though, so choose the image once more.
The form does not change the content itself (file, code, slide). That takes a new package from the add-in.
Draft
A draft is a new state that nobody sees in the library yet. Each item has at most one open draft. Saving again changes that draft.
The page then shows the box Version n is a draft. Everyone still gets version m. with three buttons:
| Button | What it does |
|---|---|
| Go on editing | Opens the draft for editing. |
| Save as a version / Hand in as a version | Makes the draft a version as it is. |
| Discard the draft | Deletes the draft after asking. The version before keeps applying. |
- While a draft is open, every change goes into the draft. Otherwise saving it as a version later would overwrite the change again.
- An item that was never published is nothing but its draft. It cannot be discarded; it goes into the trash instead.
- If someone sends a new package from the add-in for an item with an open draft, it goes into that draft and is handed in.
Versions and approval
Save as a version creates a new version, Save as a draft a draft (see above). If you change only texts, the new version reuses the file of the one before, so nothing is stored twice. If you change nothing, no version is created.
Who waits, who is live at once
| Who changes | What happens |
|---|---|
| Admin or curator of the space, on the web | live at once, no approval |
| Admin or curator of the space, from the add-in | live at once when Changing from the add-in applies (see below) and four eyes is off; otherwise the version waits as for contributors |
| Contributors, on the web or from the add-in | handed in, waits for approval, depending on the setting What waits (see below) |
Until it is approved, everyone else keeps seeing the previous version with its previous details.
Changing from the add-in
Curators and admins can change an existing item in the add-in and upload it as a new version of the same item. The add-in sends the item's id along; the old id an add-in still knows from before leads to the right item too.
- On PPPTools Online this always applies.
- On a team server the admin switches it on under Settings → Devices: Curators and admins change items from the Add-in. It is off by default.
When it applies:
- The catalog tells the add-in per item whether one may change it, which spaces it is in and whether a change already waits or a draft is open.
- The admin sees the items of every space in the add-in, not only their own.
- Whoever decides on the item makes the new version live at once – unless four eyes is on. The add-in learns whether the version is live or waits.
An item one sees but may not change is refused by the server, and it says so. The add-in then does not quietly create a second item.
At most one waiting version
Each item has at most one waiting version. Whoever keeps changing while it waits changes that version: the number stays, only the revision counts up. This holds on the web and just the same when uploading again from the add-in.
Whoever tries to edit the current version while a newer one waits is sent to the waiting one (Edit the waiting version x). Otherwise approving it would overwrite the change again.
Setting "What waits"
Under Settings → Approval the admin decides what waits for approval:
| Value | Effect |
|---|---|
| every change (default) | Every handed-in change waits. |
| only changes to the original | Only changes to the original language, a field for every language, a list or the file wait. Pure translations go live without approval. |
What the check blocked never goes through, whatever this says.
"Changed in the meantime"
If someone changes the waiting version while another person is looking at it, the server does not accept that person's approval. It says "The version was changed in the meantime" and shows the new state. So what gets approved is always exactly what you saw.
What changed
- In All versions every row shows Changes: x ›. The link opens the list of every changed field of that version: field, language, the whole old and the whole new text, oldest first. A new file shows as File replaced.
- When approving, Changed since it was handed in: x appears at the top if the version was edited after it was handed in. Those rows are marked yellow.
- The audit log lists every changed field with version and language.
Going back to an earlier version
Restore on an older approved version brings back all its details and all languages, not just the file. See Trash and versions.
Library views
At the top right of the library you choose the View:
| View | Good for |
|---|---|
| Tiles | large previews, the default |
| Small tiles | many items at a glance |
| List | names and details row by row, without large images |
The view stays when you page, search or filter.