pub.leaflet.blocks.questions
Lets readers ask the author public questions (pub.leaflet.interactions.question) and shows the ones the author has answered (pub.leaflet.interactions.answer) or accepted (pub.leaflet.interactions.questionVisibility). Questions are resolved at render time rather than stored on the block.
Details · object
| Kind | object |
|---|---|
| Authority | blocks.leaflet.pub |
| Commit rev | 3n2rf64q4h42j |
| Indexed |
Showing version bafyreicxdmfgawktjfp46yd7gnz4fbsrwsbccb5arx3u2fk7sf6vauqizi. Show the latest
Object
objectProperties
audience
stringWho may ask: anyone, only subscribers to the document's publication, only its paid members, only members of the tiers in tierIds, only accounts the author follows, or only accounts following the author. Defaults to anyone. Checked when a question is asked.
knownValues: anyone | subscribers | paid | tiers | follows | followers
buttonText
stringLabel for the button readers use to submit a question.
maxLength: 500maxGraphemes: 50
closesAt
string · datetimeWhen the block stops taking questions. Absent means it never closes. Checked when a question is submitted.
key
stringTells this block apart from the document's other blocks of its type; interaction records name it in their `block` field. Records without a matching key belong to the first block of the type.
maxLength: 100
showPending
booleanShow readers questions the author hasn't accepted, answered or hidden yet. Defaults to false.
tierIds
arrayPaid membership tier ids whose active members may ask when audience is tiers.
maxLength: 50
maxLength: 100
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
pub.leaflet.blocks.reply
objectLets readers submit their own documents as replies to this one (pub.leaflet.interactions.reply) and shows the ones the author made visible (pub.leaflet.interactions.replyVisibility). Replies are resolved at render time rather than stored on the block.
-
A public question asked of a document's author, shown on the document once the author answers (pub.leaflet.interactions.answer) or accepts it (pub.leaflet.interactions.questionVisibility)
-
Declares which questions asked on a document the author accepted or hid. Lives in the document's repo, with a record key matching the document's. An answered question shows unless hidden; any other question is pending.
-
Marks where members-only content begins and declares which publication members can read past it.
-
The author's answer to a pub.leaflet.interactions.question, written in the repo that owns the question's subject document. One record per question.