2010-03-23 18:34:57Damodar Bashyal
This is how i got the current page in magento. Hope this helps someone.
<?php
$current_page = '';
/*
* Check to see if its a CMS page
* if it is then get the page identifier
*/
if(Mage::app()->getFrontController()->getRequest()->getRouteName() == 'cms'):
$current_page = Mage::getSingleton('cms/page')->getIdentifier();
endif;
/*
* If its not CMS page, then just get the route name
*/
if(empty($current_page)):
$current_page = Mage::app()->getFrontController()->getRequest()->getRouteName();
endif;
/*
* What if its a catalog page?
* Then we can get the category path :)
*/
if($current_page == 'catalog'):
$current_page = 'categorypath-' . preg_replace('#[^a-z0-9]+#', '-', strtolower(Mage::registry('current_category')->getUrlPath()));
endif;
?>
More»
2010-04-17 04:17:09Damodar Bashyal
This weekend i spent really lot of time fixing and upgrading codefight cms (backend). And, i am so happy with the outcome. Still a lot of feature addition is remaining. I have finished changing the skin of the backend and updated code for better management.
Dark green is replaced with blue, grey and other colors. Moved left menu to top. Fixed some other CSS.
Codeigniter version 2.0 is in the oven for baking now, so i'll be adding more features and test compatibility with that version soon. I hope you like this new version. Please post some feedback, feature requests, bugs on tenthweb forum.
One screenshot of new skin.

More»
2010-05-23 06:31:29Damodar Bashyal
After weeks of testing with new version of codeigniter which is yet to be released, finally Codefight CMS version 1.4.1 is out now for you to use it for free. Note: CI 2.0 is not released yet and i used the one from Bitbucket. Matchbox didn't work properly with this version so i completely removed it. So, there is no modular separation now. I have decided not to use any modular separation until official update.
If you find any bug, need any kind of help with the use of the software or even request new features then you can do so through our forum at tenthweb.com.
I would like to thank a lot to chaleswa, who provided a great feedback and bug report.
More»