How does TAG cloud works in Codefight CMS?

Posted by Damodar Bashyal on April 06, 2009

 

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.

<?php
if(isset($pages_tags))
{
$pages_tags = split(',',$pages_tags);
if(is_array($pages_tags) && count($pages_tags) > 0)
foreach($pages_tags as $v)
{
//clean tag
$tag = $this->data_model->link_clean($v);
//add|increment tag count
$this->data_model->tag_cloud_add($tag, 'page', $v);
//insert tags to tags table
$this->db->insert('pages_tags', array('pages_id' => $page_id, 'tags' => $tag));
}
}
?>
Admin/Models/Data_model.php

More»

Addition Of Codeigniter Pagination To Codefight CMS

Posted by Damodar Bashyal on March 21, 2009

 

Today I would like to archive my codeigniter pagination addition into my CMS.

My page entries were increasing gradually, so the page size was increasing and it didn't look too good to have multiple entries on the same page. So i thought now its time to add pagination. I had used pagination few years back when I was working at previous company 'visiontech digital media'. But i had totally forgotten by now. So checked the userguide and followed the process as:

More»

Asset Manager Extended To Combine Different CSS Files

Posted by Damodar Bashyal on March 18, 2009

 

Today I extended my Asset Manager to combine several css into one. As i understand, YSLOW Says there should be as less http requests as possible. So i decided to add this optional feature. For now this is controlled through MY_config file located at config folder.

This is how addition config setting looks:

More»