Description
The Blog Administration plugin allows a defined set of "administrators" to add and delete blogs dynamically to their blojsom installation. This means that a restart of the server is no longer required when adding or removing blogs from the system.
Installation and Setup
In your global /WEB-INF/plugin.properties file, add the following line:
edit-blog-users=org.blojsom.plugin.admin.EditBlogUsersPlugin
Add the following to your /WEB-INF/web.xml file under the init-params for BlojsomServlet.
<init-param>
<param-name>plugin-admin-edit-users</param-name>
<param-value>/WEB-INF/plugin-admin-edit-users.properties</param-value>
</init-param>
Add the following file to your /WEB-INF directory under the filename, plugin-admin-edit-users.properties.
bootstrap-directory=/bootstrap
blog-home-base-directory=/change/me/please
administrators=default
 |
In most situations, you will only need to configure the blog-home-base-directory property. |
| Property |
Description |
| bootstrap-directory |
The location off your /WEB-INF directory where the bootstrap properties and templates directory is. This precludes you from adding a blog named "bootstrap". If you would like to add a blog named "bootstrap", change the directory name here and on disk appropriately. |
| blog-home-base-directory |
The directory where new blogs will be created. A directory with the new blog ID will be created under this directory for blog you add dynamically to your blojsom installation. |
| administrators |
A comma-separated list of blogs whose users can have permission enabled to add and delete blogs from your blojsom installation. |
The default blojsom installation comes with a /WEB-INF/bootstrap directory and a /WEB-INF/bootstrap/templates directory. This is the directory that contains a bootstrap set of properties files and templates, respectively, for adding new blogs to your blojsom installation.
Usage
After logging into the administration console, you may click on the link to Weblog Settings | Blogs and you will be able to add and delete blogs.