Skip to main content

string.format() (SAP KC)

Replaces placeholders with values in a string.


Name Type Description
text str string with placeholders
values any (optional) values to insert into string


The following table shows argument combinations and their outcome.

text values Result
nil   nil
""   ""
"Hi $0!" [ "Bob", "Charles" ] "Hi Bob!"
"Hi $first!" { first: "Bob", second: "Charles" } "Hi Bob!"


archive (SAP KC)
This page contains a list of all the API methods in the "Archive" category.
files (SAP KC)
Use the Files methods to update file attachments, copy files, move files, edit file properties and more.  Files can be attached to one Page but used in many pages.  Files inherit the permissions of the page they are attached to so if you attach a file to a private page, it will require user grants to access it.  The text in certain file types such as .pdf, docx and others are indexed by the MindTouch search engine and will show up in the MindTouch search results.
pages (SAP KC)
Use the Pages methods to retrieve a list of all MindTouch pages, retrieve individual pages, update existing pages, move pages, rate pages, view page revisions, add tags to pages and more.  Each MindTouch page has a unique ID that can be used in the API call to access all of the page properties.
  • Was this article helpful?