Hello,
the tile says almost all. I would like to include a short excerpt of the text when listing pages (children of one page).
If that is not possible without a recursion (to query any page in the list to get a part of the content – say the first period), another possible way could be stocking metadata properties with a specially crafted test. Would this be accessible while reading the list?
Hi, I think short excerpt is not possible. By the way look at metadata properties:
/wiki/rest/api/content?expand=metadata.properties
Metadata.properties cannot provide a proper solution, you are right, but what about content.properties?
Could it be feasible to add a content property with an excerpt of the page (and maybe another with the URL of an image thumbnail) and retrieve it anytime I get a list of pages?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If you preliminarily set your own property to each page using POST /rest/api/content/{pageId}/property e.g. {key: "excerpt", value: "a short excerpt of the text"} then you can get it using GET /wiki/rest/api/content?expand=metadata.properties.excerpt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.