2009-03-13 19:34:41Damodar Bashyal
This is part II of: Feed and sitemap generation Part I
I hope you were success in creating feed url and were very excited as i was.
I am working on this from long time as a part time after work and on weekends. I hope one day it will be in a condition when i'll be proud to release and be very excited for the contribution to the community. But for now i am thinking to pause uploading new files to google code but write few posts on new updates. This will help anyone to install new feature and understand what's going on.
More»
2009-03-13 18:37:44Damodar Bashyal
I am so excited to learn codeigniter more and more everyday through the means of my own new cms 'CodeFight CMS'. As i keep learning and implement new things in my CMS, i will keep posting here.
More»
2009-04-05 04:38:26Damodar Bashyal
How does TAG cloud works in Codefight CMS?
Admin/Modules/Pages/Controllers/Pages.php:
In admin when creating page, if tags are set split tags separated with commas. Then clean up every tag for tag-key as $tag. Then insert the tags into tag clouds table.
CODE:
1-
2-<?php
3-if(isset($pages_tags))
4-{
5-$pages_tags = split(',',$pages_tags);
6-if(is_array($pages_tags) && count($pages_tags) > 0) foreach($pages_tags as $v)
7- {
8-//clean tag
9-$tag = $this->data_model->link_clean($v);
10-
11-//add|increment tag count
12-$this->data_model->tag_cloud_add($tag, 'page', $v);
13-
14-//insert tags to tags table
15-$this->db->insert('pages_tags', array('pages_id' => $page_id, 'tags' => $tag));
16- }
17-}
18-?>
19-
Admin/Models/Data_model.php
More»