Documents, links and sharing
A block with links to documents and useful actions: open a PDF (a contract, a warranty, a manual) inside the app, go to an external site, share the page. Suits the product card, articles and static pages.
Where to put it
The product card, a post, a static page. These commands work everywhere.
The code
HTML
<div style="display:flex;flex-direction:column;gap:10px;margin:12px 0;">
<a data-mobius="document.open"
data-params='{"url":"https://example.com/docs/warranty.pdf","title":"Warranty"}'
style="padding:14px;border:1px solid #E0E0E0;border-radius:12px;
text-decoration:none;color:#292929;">
Warranty certificate (PDF)
</a>
<a data-mobius="document.open"
data-params='{"url":"https://example.com/docs/manual.pdf","title":"Manual"}'
style="padding:14px;border:1px solid #E0E0E0;border-radius:12px;
text-decoration:none;color:#292929;">
User manual (PDF)
</a>
<a data-mobius="openURL"
data-params='{"url":"https://example.com/support"}'
style="padding:14px;border:1px solid #E0E0E0;border-radius:12px;
text-decoration:none;color:#292929;">
Contact support
</a>
<a data-mobius="share"
data-params='{"title":"Look what I found","url":"https://example.com/product/15"}'
style="padding:14px;border-radius:12px;text-decoration:none;
background:#1D8673;color:#fff;text-align:center;font-weight:600;">
Share
</a>
</div>
How the commands differ
document.openopens a PDF inside the app; the user does not leave it. It works correctly on both iPhone and Android.openURLopens an ordinary site in the external browser.sharecalls the system share sheet (messengers, mail, copy link).
How to adapt it
- Replace the
urladdresses with your own files and pages. - The
titleondocument.openis the heading of the document window. shareacceptsmessage(text),url(a link), or both.
Commands used
Updated 04.09.2026 18:04
Was this page helpful?