<p dir="auto"><span><a href="https://github.com/blockpress/blockpress.me" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">https://github.com/blockpress/blockpress.me
<p dir="auto">Part of the power of BlockPress lies in its extensibility. Writing a module is fairly straight forward, only a few simple rules need to be followed. In order to reveal this simplicity ready for our beta launch, I have written a couple of tutorials aimed at developers who might wish to extend BlockPress with their own specialised content modules.
<h1>Link module
<p dir="auto">Link modules are very simple modules that allow menu items to external sites to be added. BlockPress comes with a very simple form of link module that allows any url to be added. A developer may wish to add specialised link modules that make it easy to create more specific types of link. To demonstrate how to do this, I created a tutorial for a link module that only links to wikipedia pages. You pass the wikipedia page name as the parameter instead of the whole url, and the module creates the rest of the url for you.
<h2>Built in link module
<p dir="auto">I also documentated how to use the built in link module.
<h1>Content module
<p dir="auto">The most useful kind of module in BlockPress is one that allows you to load content inside BlockPress. BlockPress comes with two of these by default, <code>static allows files containing html to be loaded, and <code>steem loads content from the steem blockchain via the API to display user profiles, post listings, posts and comments.
<p dir="auto">A developer may wish to add their own, so in order to demonstrate how to do so I wrote a tutorial explaining how to create a module that loads a random cat image inside blockpress, by interfacing with the random cat api.
<p dir="auto">Each time you load the random cat page, you get a different cat image.
<p dir="auto"><center><img src="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmSC78JcVyCshDXuqS4vXSAPHn7P79pk3CKTaY4kf7G7dT/BlockPress-Cats.png" alt="BlockPress-Cats.png" srcset="https://images.hive.blog/768x0/https://cdn.steemitimages.com/DQmSC78JcVyCshDXuqS4vXSAPHn7P79pk3CKTaY4kf7G7dT/BlockPress-Cats.png 1x, https://images.hive.blog/1536x0/https://cdn.steemitimages.com/DQmSC78JcVyCshDXuqS4vXSAPHn7P79pk3CKTaY4kf7G7dT/BlockPress-Cats.png 2x" /><br />
<center><em>I tested the tutorial module locally, so I know it works!
<p dir="auto">See my personal BlockPress site for <a href="https://anton.blockpress.me/?p=cat/" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">a demo of the random cat module in action.
<h2>Built in content modules
<p dir="auto">I also added intructions on using the built in content modules, static and steem.
<h1>Developer reference
<p dir="auto"><span><a href="/@dana-varahi">@dana-varahi recently added a page on generic style classes that apply throughout BlockPress. I merged this with an older page on ids, css classes and placeholders in templates, to create a more universal Developer reference, with everything in one place.
<h1>My latest documentation contributions
<h2>New pages
<ul>
<li><a href="https://github.com/blockpress/blockpress.me/wiki/Link-module-tutorial" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Link module tutorial: Wikipedia links
<li><a href="https://github.com/blockpress/blockpress.me/wiki/Content-module-tutorial" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Content module tutorial: Random cat
<li><a href="https://github.com/blockpress/blockpress.me/wiki/Modules" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Modules
<li><a href="https://github.com/blockpress/blockpress.me/wiki/link-module" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">link module
<li><a href="https://github.com/blockpress/blockpress.me/wiki/static-module" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">static module
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem-module" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem module
<h2>Updates
<ul>
<li><a href="https://github.com/blockpress/blockpress.me/wiki/Home/_compare/34d9c6d1004feb862d72eac69a8fc5b580566271...1ea6ed8eacc75991089c354e357b03cab0df2989" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">Home page
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem-post.html/_compare/ae3787df50613c7c629a22ffea66ec69e801b147...ff675a2d4e1af599b8a8b3054e0fc1599e76b378" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem-post.html
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem-comment.html/_compare/9e939539f15b51f49c64b2a636fc847ce6cf5915...24e406a05ff21d2924b3b811a79a5224bd56438d" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem-comment.html
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem_comment/_compare/54a57ae6208c308f15973a71aa56ff75d6aa7c87...cfd542e60f9533e1e8a7e91018628f04edd5d8ba" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem_comment
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem_comment_author/_compare/4364fabd295efc5ad787227a870aabac7f397d3d...37023de6249cbaa082c86f5fcde584289505777f" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem_comment_author
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem_comment_meta/_compare/671d608b03ea07bfd11b9e6d4e33c301f12c697c...79139d65b05512778a45ffff75fc2e61848feb2b" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem_comment_meta
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem_posts_date/_compare/0610759d0eff5c985574e8065522638bc6700e8c...e53076ffdf97fdc71665a723385b058b42a822db" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem_posts_date
<li><a href="https://github.com/blockpress/blockpress.me/wiki/steem_comment_permlink/_compare/b667be61496524a6f6bf77efb27b4c62e8e9ce6a...5c50324b1a673fbd60c6a1fe35f681ba6df06f45" target="_blank" rel="noreferrer noopener" title="This link will take you away from hive.blog" class="external_link">steem_comment_permlink
<p dir="auto">Note: I also updated the links on a lot of reference pages to the new developer reference page, but I'm not going to list them all. The above are the significant changes I made.
Reminder for those that want to know more about the BlockPress project...
Follow us
First of all, make sure you follow the @blockpress steem account. We are very near to our beta launch and we plan to run some contests with SBD prizes.
You can also follow the BlockPress.me CMS on various social media, which are good places to ask questions and get support.
This contribution is staff picked by me as I see a fairly good amount of work done in the contribution. But I will encourage you to increase the quality of the documentation by organizing it more properly in the wiki or an external webpage.
Thanks!
Your contribution has been evaluated according to Utopian policies and guidelines, as well as a predefined set of questions pertaining to the category.
To view those questions and the relevant answers related to your post, click here.
Chat with us on Discord.
[utopian-moderator]Need help? Write a ticket on https://support.utopian.io/.
All the documentation is organised in the wiki? What 'proper organisation' do you think is lacking? Is there particular utopian guidelines on how wiki documentation should be organised?
Asking so I can improve documentation, once I understand what you mean. :)
Thanks for contributing on Utopian.
We’re already looking forward to your next contribution!Hey @antonchanning
Contributing on Utopian
Learn how to contribute on our website or by watching this tutorial on Youtube.
Want to chat? Join us on Discord https://discord.gg/h52nFrV.
Vote for Utopian Witness!