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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.