Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
columnAttributes | style="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold, |
---|
enableSorting | false |
---|
|
Syntax | getAllCommentIds(pageId) | Package | | Alias | | Pkg Usage | |
|
Excerpt |
---|
|
Gets all the comment IDs that are already entered on a page. |
Gets all the comment IDs that are already entered on a page.
Table plus |
---|
applyColStyleToCell | true |
---|
columnTypes | s,s,s,s |
---|
heading | 0 |
---|
multiple | false |
---|
enableSorting | false |
---|
|
Parameter name | Type | Required | Description |
---|
page ID |
|
...
...
Yes | ID of the selected page. |
|
...
number Number []
IDs of the comments on the page.
...
Print Page has 12 comments for example.
Code Block |
---|
|
number [] allComm = getAllCommentIds(11801);
print("Page has " + size(allComm) + " comments"; |
Print Page has 12 comments for example.
Deletes all comments older than 1 year from page ID 11801.
Code Block |
---|
|
number [] allComm = getAllCommentIds(11801);
interval year = "365d";
for(number c in allComm) {
CComment comm = getCommentById(c);
if(comm.created < (currentDate - year)) {
deleteComment(c)
}
}
|
...
Filter by label (Content by label) |
---|
showLabels | false |
---|
max | 25 |
---|
showSpace | false |
---|
cql | label = " |
---|
|
...
...
routines" and space = currentSpace ( ) | labels |
---|
|
...
...