Jump to content

[SOLVED] Blog Module Help


Recommended Posts

One of my first mods was to integrate UTF-8 CuteNews with my webshop, at http://mohsart.se/en/ you can see it right between the Home text editor and the Home featured products.

 

What I did was install UTF-8 CuteNews in /cn and then make a simple "module" (attached is /modules/blocknews/blocknews.php) that access that program.

 

UTF-8 CuteNews allows WYSIWYG, pictures, etc, and is quite sufficient for my needs but may not be considered a real blog.

One nice feature is that you can display only parts of the post (so that eg homefeatured isn't pushed down too far) with a link to display/hide the whole post.

 

This is my /modules/blocknews/blocknews.tpl, since I couldn't attach .tpl files.

<!-- Block news module -->
<div id="news_block_left" class="news_block">
{php}
$number=2;
include("/home/virtual/mohsart.se/public_html/cn/show_news.php");
{/php}
</div>
<!-- /Block news module -->

 

If you want it placed eg on the left instead you might need to change the .php file.

I did some small changes to the UTF-8 CuteNews installation with regards to RSS and the previous/next "arrows" < < and > >, if there is any interest I'll look it up.

 

/Mats

blocknews.php

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...