Blog API
- Blog Building Blocks Introduction to MarkupBlog output basics.
- MarkupBlog API Introduction to MarkupBlog API. Its methods help you to create your blog just the way you want it.
- Render Posts Here we learn how to use the method renderPosts() to output/show Blog Posts on the frontend of our website using the API of the MarkupBlog module.
- Render Comments This lesson will teach you about the method renderComments(). This MarkupBlog module function will output Blog Posts' comments.
- Post Author Outputting an Author Post Widget to accompany your Blog Post.
- Render Navigation In this lesson we learn how to use the method renderNav() to output multiple navigations that link to various parts of our Blog including Tags, Categories, Related Posts, etc.
- Render Categories This lesson will show you how to render Categories and their related Blog Posts using the method renderCategories().
- Render Tags The method renderTags() renders an alphanumerically ordered list of Tags and their related Blog Posts' count for your Blog. In this lesson, we learn how to use it.
- Render Authors renderAuthors() is a small function that renders a list of Blog Authors. We see how to use it in this lesson.
- Get Archives The method getArchives() gets an array of Blog Archives, optionally by year and optionally including a few Post titles. The method is most useful when used in conjunction with renderArchives(). This lesson briefly introduces getArchives() in preparation for the lesson about renderArchives().
- Render Archives Working in concert with the function getArchives(), the method renderArchives() will render your Blog's Archives.
- Find Comments findComments() is a small helper method used by the function findRecentComments() given a selector string. The method is used internally by MarkupBlog but is presented here for completeness.
- Find Recent Comments In this lesson we look at the method findRecentComments(), a function that returns a CommentArray of the most recent comments.
- Render Next/Previous Posts The method renderNextPrevPosts() does what it says on the tin. It will output navigation links to the next and previous Posts as applicable. In this lesson, we look at how to use it.
- Format Date formatDate() is a tiny utility method that returns a date formatted as specified in your Blog Post's 'blog_date' field. We look at how to use it in this short lesson.
- Render RSS In this lesson we learn about the method renderRSS(), a function that renders an RSS feed of given pages.
- Render Comments RSS In this lesson we learn how to use renderCommentsRSS() to render a limited number of comments RSS.