-
Notifications
You must be signed in to change notification settings - Fork 1
steem module
The steem
module is a Content module that pulls content from the steem blockchain into the html element with the id contentArea. It can retrieve user profile pages, post listings and display specific posts with their comments. Further these pages can all interlink, turning BlockPress into a steem content browser.
{"label": "Profile", "type": "steem", "args": {"show":"profile", "user":"blockpress"}},
{"label": "Blog", "type": "steem", "args": {"show":"posts", "user":"", "tag":"blockpress", "count":"5"}},
{"label": "IPFS", "type": "steem", "args": {"show":"post", "user":"antonchanning", "permlink":"blockpress-browse-steem-content-on-an-ipfs-site"}},
It takes an object as its args
value, which allows further values to be passed in depending on the kind of content to show.
When the args
object has a value of profile
for its show
property, it takes a single further argument, user
. The value for this should be the steem account id you wish to display the profile for.
When the args
object has a value of posts
for its show
property, it takes three further properties. user
or tag
can be left blank, but one or both of them should be defined. The count
property defines the maximum amount of posts to load. The post listing will display:
-
user set but not tag: The users
count
most recent posts. -
user and tag set: Only the users posts with the matching tag, up to a maximum of
count
. -
only tag set: The
count
most recent posts with the matching tag, by any user.
When the args
object has a value of posts
for its show
property, it takes two further properties, user
and permlink
. These should identify precisely the post to display.