Miniblog 0.5
For CMSimple_XH 1.6.2 or higher
Miniblog can use normal CMSimple_XH pages and also single files as blog posts. Both methods can be mixed. Multiple blogs per site are possible. Posts of page based blogs have to be created by the webmaster, posts of single file blogs can also be created by other users after log-in via Register_XH or Memberpages.
With blog features turned off, Miniblog can also be used as table of contents for sub-pages.
Plugin call
Usually you would need only to call {{{miniblog}}}
.
The following options are only needed for running more multiple different Miniblogs on a site.
{{{miniblog ['different_startpage', 'sorting', 'category'_buttons', 'archive_link',
'limit_posts', 'columns', 'show_categories', 'show_date', 'show_keyword'] }}}
Arguments in [] optional. Arguments are needed only to create different types of blogs on the same site. Normally setting will be done via plugin config.
- different_startpage: usually empty, however if page based posts aren't subpages of the blog page but of another page, enter that page name here.
- sorting: 'alphabet', 'newest', 'title', 'keyword', 'category' or 0 for no sorting
- category_buttons; enter 0 for off, or enter 1 for on, or enter
''
to follow config setting - archive_link; as above, enter 0 or 1 for on or off, or
''
to follows config setting - limit_posts; This setting limits the number of posts displayed on the blog page. If there are more posts, additional blog pages are generated. Enter a number, or enter 0 for off, or enter
''
to follow config setting. - columns; as above, 0 or 1 for on or off, or
''
to follow config setting - show_categories; as above, 0 or 1 for on or off, or
''
to follow config setting - show_date; as above, 0 0 or 1 for on or off,
''
follows config setting - show_keyword; mostly used for author's name, 0 or 1 for on or off,
''
to follow config setting
Example:
{{{miniblog '','alphabet',0,0,'',1,0,0}}}
alphabetical sorting, no category buttons, no archive link, number of posts on the blog page as in config, 2 columns, categories and dates not shown.
New in 0.5
- Single file based posts
- Comments
- Multiple blogs.
- Multiple categories.
- Archive on extra page.
- Posts with URL like 3rd level pages, URL doesn't change when post gets moved to the archive.
- Searchable via standard CMSimple search.
- Internal links to single file posts in admin mode selectable just like normal CMSimple pages.
- External users can write blog posts after log-in.
- Teaser in 2 columns.
- The number of teasers on the blog page can be limited. The blog page will be divided into multiple subpages each with the stated limit of teasers.
- Teasers can be sorted newest first, oldest first, title, keyword (=author's name), category and no sorting.
- Positioning of teaser images can be set in config.
- The image browser for teaser images in admin mode.
- Backlinks also at the end of a blog post.
- Page based post don't have to be subpages of blog page
Updating: Unzip package. This contains additional code for the filebrowser, therefore install package as it is in the base folder. Then go to Miniblog plugin backend. This triggers the reading of the old
config and generation of a new one.
From Miniblog version 0.4 there may remain 2 files:
css/0.4_default.css
and
css/0-4_default.css
.
They are not used and should be deleted.
Blog from single files
Plugin call for blog page: {{{miniblog}}}
Plugin call for writing blogs by logged-in users: {{{miniblogwriter}}}
Single html files are created either by logged-in users with Christoph Becker's Extedit_XH or by the admin in the plugin backend. Next to these html files there is a small json database where category, publishing date, keyword, title, teaser, teaser image link are stored. From this databank the blog page is generated.
Images can be added to the teasers of the blog page to make the teasers more attractive. To enable external logged-in authors to use teaser images, you need to specify in the config a subfolder of the standard images folder, as folder for teaser images. External authors can select images only from that folder. If you write posts as admin however, you have the standard image browser of CMSimple_XH at your disposal (works in Tinymce and CKeditor, but not yet in Tinymce4) and you are not restricted to one folder. Moreover, you can also choose the position of the image. If you have set the blog page in 2 columns, it is possible to select that a teaser to an important post should span over both columns, which can serve as an eye catcher, especially if used together with a rather wide image that reaches over both columns.
Each post gets an URL similar to a 3rd level CMSimple page:
www.basedomain.xx/?blogname/foldername/postname
.
The blogname can be any name except existing page names of the 1st level.
Different users get different folders for saving their
posts. When a user logs in for the first time,
he will be asked to choose a name for his folder. This name will be
mapped as folder belonging to the user. This mapping can be edited by the admin in the backend.
All posts of the user will have the user's full name as stored in Memberpages or Register_XH as keyword.
Thus the keyword is used as author's name.
Standard CMSimple functions like plugin calls and image placement work as usual, however Extedit_XH is relatively restricting towards users. There are no such restrictions for composing post as admin from the backend.
Archive for both types of blogs
The archive is activated by entering an archiving date. For single file posts the archive mapping has to be updated additionally. It is possible to have a special archive page for single file posts. Create the page, write {{{miniblog}}}
into the content and enter the page name into the language file. The "archive" button on the blog page will now function as link to the archive page. Archived posts will get a backlink to the archive. Older page based posts however will not be included in that archive and will simply continue to be displayed as normal posts on the blog post page.
If one of the 2 blog functions (single files/CMSimple pages) is not used, this function can be switched off in the backend.
Blog from CMSimple pages
Only when your blog posts are not subpages of the blog page but subpages of another page, that other page name must be entered as 1st argument in the plugin call. If you want backlinks, that page name has to be entered also in the language file at page-posts backlinks from
.
Date:
Use Pagedata > Page > Publication Period (1st field).
If a Publication date has been entered in the page data,
this date will serve as blog publication date, otherwise the date of the last edit will be taken.
If the publication date has not yet been reached, the page will not be listed.
If automatic archiving is set and the date is older than the archiving date,
the page will be listed in the blog archive.
Note: If a date for "expires" has been entered into the page data of a page
and this date is past, the page cannot be reached by link any more and will not be listed by miniblog,
not even in the archive.
Keyword:
Use Pagedata > Meta-Tags > Keywords
The Keyword is taken form the page data meta tag Keywords
.
If that is empty, the keyword (i.e. blog author's name) will be taken
from the first h4, h5, or h6 headline, or first bold or italic text or will be left
empty as specified in the plugin config.
Teaser Text:
Use Pagedata > Meta-Tags > Description
The teaser is taken from the pagedata meta tag Description
.
Is that empty, the teaser text will be taken, depending on the config setting,
either from the beginning of the text after the headline or from the beginning
of the first <p>
paragraph, with teaser character length being set in plugin config..
Categories:
Post on 3rd level pages
|
Blog Table of Contents
|
|__Category 1
| |
| |__Blog1
| |
| |__Blog2
| |
| |__Blog3
|
|__Category 2
|
|__Blog4
in the beginning of a page name
|
Blog Table of Contents
|
|__Cat_Category 1
|
|__Blog1
|
|__Blog2
|
|__Blog3
|
|__Cat_Category 2
|
|__Blog4
Miniblog usually gives every post a category. For page based posts, categories are provided by intermediate pages, either on an intermediate level or from pages whose name start with a key phrase. Usually you want to hide these pages so that they don't appear in the menu. You can as well hide all blog pages, if you don't want them to appear in the page menu.
Posts without category are also possible. For the Keyphrase type category this are pages that don't have a preceding category page, for the normal 3 level arrangement this ar pages that are on the same level as the category pages and contain text.
Teaser images: If you place an image in a category page, that image will appear in the teasers of all posts belonging to that category.