How to make a blog and blog posts

A blog is a type of content management that displays "posts" (blocks of HTML content) cataloged by date.  Simple received basic blog functionality in version 1.1.

Step 1: Create a base page

Create the base page for your blog like you would create any other page in your site structure.  Navigate to the parent page, click on "create child," and give the page a title.  When you're brought to the "edit page" page, click on "Edit Without Xinha" so you can insert PHP code.  You may want to take the preventative measure of hiding this page until you've completed this tutorial.

Once you're ready to edit the plain text, add the following code:

<?PHP BlogInterface($CurrentPageID, $CurrentUserID); ?>

Publish the page and return to it.

Step 2: Start creating posts

When you return to the page, you'll see a link that's labeled "Add a post."  Click on that and you'll be brought to the page creation tab.  Whenever you create a child to this page, it'll show up as a blog post on the page.  Put in the post title, select the template, and create the page.  Once you get to the "edit page" page, you'll need to do some things special for the blog post.  First, input a negative number for the "Menu Order" field.  This will hide the post from the regular menu structure.  Next, clear out the page title in the initial content. Because the blog will automatically add the post title, it would be redundant to include it as part of the content.

The preview version of the post on the blog page will be created by automatically splitting off the first paragraph from the rest of the page.  If you want to manually specify where the break should be, click on the source code view in Xinha and add the comment tag <!-- break --> where you want to see the break.

Whenever you're done typing the text, publish like normal.  When you click "Return to page," the system will bring you back to this page, not the blog, so after you return to the page, you'll have to click on the blog either in the menu or in your breadcrumbs.

Results

simple project timeline