Loading...
 
Development

Development


a new module :display last posts in one blogs

posts: 27

tiki have a module named last_blog_posts can display the last posts in all blogs,but sometime we need display the last posts in one blog.
this mod named last_one_blog_posts is for this.
just download the zip file and unzip it at the tiki root.
then you can assign the new module last_one_blog_posts in module admin,the blogId which blog is displayed is setted at the parameters.
if you want to display the blog with ID 1,just type 1 at the text area.

there's a problem that. I can't understand the use of paramaters of module. can anybody express it?
($module_params"title"),is module_params got from database?
and what is the format of params of modules in database table tiki_modules?


finally,where should I upload my new module ?

posts: 1001 Canada

I suppose it's got from the database indeed. To test the form, just assign a module some parameter(s) and you should see.

I would recommend enhancing last_blog_posts to accept an optional blogId parameter instead of creating a new module. Post your files and patches at mods.tw.o.
Thank you for your contribution.


posts: 2881 United Kingdom

Im pretty certain that the current one can do this. I'm sure ive seen something mentioned on IRC


posts: 63 United Kingdom

use RSS modules?

I use an RSS module to perform this function, just take the feed from the selected BLOG and plumb it into an RSS module, Dump THAT into a custom module and "robert is your mothers brother".

Or is that a bad idea?


Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.