telos docs
Search…
Manage Sections

Reorder Document Sections

Every section has a unique id number that indicates its order in the document. Document sections can be reordered with the reorder action.

ACTION reorder

Parameter Name
Type
Example
Description
document_name
name
doc1
Name of the document to reorder.
new_order
map<name, uint64_t>
{ sectiona: 3, sectionb: 2, sectionc: 1 }
The new section order
Cleos
eosjs
1
cleos push action amend.decide reorder '{ ... }' -p author
Copied!
1
Copied!

Delete a Section

To delete a section, the section content must first be amended to an empty string. Once empty, the author can call the delsection action on the contract.

ACTION delsection

Parameter Name
Type
Example
Description
document_name
name
doc1
The name of the document with the section to delete.
section_name
name
sectionc
The name of the section to delete.
Cleos
eosjs
1
cleos push action amend.decide delsection '{ ... }' -p author
Copied!
1
Copied!
Last modified 1yr ago