plugin commands
blog2phpCMS
+ B2P_Config
+ B2P_FetchBlogPosts
+ B2P_FetchBlogComments
+ B2P_FetchBlogCategories
+ B2P_FetchBlogUsers
+ B2P_ForEach
+ B2P_EndForEach
+ B2P_Data
The blog2phpCMS plugin software allows you to use weblog systems content
(currently only wordpress 2.x, next planned is b2evolution) in your
phpCMS content files.
That is pretty useful because phpCMS is a rich-featured but lightweight CMS System, whereas
a typical weblog system like wordpress is more diary-like and pretty easy to use for editors.
What the plugin can do for you
- Fetch posts from wordpress into phpCMS
- Fetch comments from wordpress into phpCMS
- Fetch users from wordpress into phpCMS
- Fetch categories from wordpress into phpCMS
- Restict fetching by category, user, number of objects and text length
- Apply some formating to your posts (like strip_tags)
- ... tbc ...
Straight forward plugin usage
The usage of the plugin is very simple, just insert the B2P commands as html comments in your
phpCMS content file.
Example phpCMS content file
<!-- include the plugin like usual in phpCMS -->
{PLUGIN FILE="/parser/plugs/blogs2phpcms/blogs2phpcms.php" TYPE="DYNAMIC"}
{CONTENT_1}
Here is my static page content, blablabla a duck is a duck - hello world
Now I include content from my wordpress blog:
<!-- B2P_Config ; blog=wordpress2 ; path=../../weblog ; debug=off -->
<!-- B2P_FetchBlogPosts ; maxrows=3 ; category=blog2phpCMS -->
<table border=1>
<!-- B2P_ForEach -->
<tr>
<td>
<!-- B2P_Data ; field=post_date --> in <!-- B2P_Data ; fie2P_Data ; field=cat_name -->
<br>
<b><!-- B2P_Data ; field=post_title ; tags=no ; maxlen=80 --></b>
</td><td>
<!-- B2P_Data ; field=post_content ; maxlen=180 -->
</td>
</tr>
<!-- B2P_EndForEach -->
</table>
{CONTENT_2}
Another static content block -
btw. the plugin code scans all content block automatically.
Example Output (running live on my weblog)
2007-05-11 18:37:43 in blog2phpCMS
blog2phpCMS V 1.0.1 released
|
The new version supports the "user" parameter now. That means, you can restrict the fetched posts from wordpress to special users. The documentation has been enlarged and the GPL l
|
2007-05-09 17:00:04 in blog2phpCMS
blog2phpCMS Open Source Project
|
The blog2phpCMS plugin software allows you to use weblog systems content (currently only wordpress 2.x) in your phpCMS content files.
That is pretty useful because phpCMS is a r
|
2007-04-27 06:29:03 in blog2phpCMS
blog2phpCMS first public release
|
While I am using the blog to phpCMS software since months now, it has never been released as a product. Now I have a release plan: First public 1.0 Version will be available on 1st
|
You will find more in the documentation section.
For feedback please use my
weblog.