Advanced Guides
Shortcodes
Shortcodes allow media to be embedded in clearnet websites for users with the Autonomi extension. This feature is supported in both Endpoints Mode and Local Mode.
What Are Shortcodes?
Shortcodes are a specific string that can be placed anywhere on a clearnet website. You can even put them in your social media posts. Users that are using the extension will see the actual media that the shortcodes point to.
Structure of a shortcode
The structure of a shortcode is as follows (remove the "" surrouding "autocode" to use:
"autocode",91d16e58e9164bccd29a8fd8d25218a61d8253b51c26119791b2633ff4f6b309/start-a-node.png,png,800,500
here is the code without "":
autocode,91d16e58e9164bccd29a8fd8d25218a61d8253b51c26119791b2633ff4f6b309/start-a-node.png,png,800,500
When detected it will be replaced with the content. You can change the url, file extension, width and height properties.
If you are currently using the extension, the shortcode above will be replaced with an image.
Here are some more examples:
autocode,91d16e58e9164bccd29a8fd8d25218a61d8253b51c26119791b2633ff4f6b309/to-autonomi.mp4,mp4,800,500
autocode,48bd835e4eef2631c66a840904a5cc114ca2403f2aa63b3d00aa789f6f1f2632/george_orwell.pdf,pdf,800,500