最近使用DedeCms5.3和DedeCms5.5遇到了一个不可思议的问题:在添加栏目时IE内核的浏览器无法保存栏目内容。到网上搜索了半天没找到解决方法,查看DedeCms官方搜索到的结果是“栏目内容”无法保存和修改的问题解决方法,打开dede/templets目录的下面两个文件catalog_ad...
分类:
其他好文 时间:
2014-08-27 16:23:57
阅读次数:
205
Magento获取当前栏目ID:$_cat= new Mage_Catalog_Block_Navigation();$curent_cat= $_cat->getCurrentCategory();$curent_cat_id= $curent_cat->getId(); 或者Mage::regi...
分类:
其他好文 时间:
2014-08-21 18:40:14
阅读次数:
172
$root_id = Mage::app()->getStore()->getRootCategoryId(); $categories = Mage::getModel('catalog/category')->getCategories($root_id);获得分类名称 fore...
分类:
其他好文 时间:
2014-08-21 14:58:04
阅读次数:
210
DataSet ds = new DataSet(); using (SqlConnection conn = new SqlConnection(@"data source=.\sqlxu;initial catalog=NationalUnion20140717;persist security...
分类:
其他好文 时间:
2014-08-18 17:55:02
阅读次数:
249
[root@linux-node1~]#cd/usr/local/src/[root@linux-node1src]#cdkeystone-2014.1[root@linux-node1keystone-2014.1]#pythonsetup.pyinstall[root@linux-node1keystone-2014.1]#cdetc/[root@linux-node1etc]#ll总用量72-rw-rw-r--11004100415404月1717:19default_catalog.templ..
分类:
其他好文 时间:
2014-08-18 01:37:33
阅读次数:
217
magento 在reindex的时候遇到Cannot initialize the indexer process错误,发现Catalog URL Rewrites 一项不能reindex解决方法:1.删除var/locks 目录下的所有文件 2.清空catalog_category_pr...
分类:
其他好文 时间:
2014-08-15 12:05:58
阅读次数:
218
1 SqlConnection conn = new SqlConnection("Data Source=.;Initial Catalog=ArchiveSys;Integrated Security=True"); 2 //SQLHelper...
分类:
数据库 时间:
2014-08-14 23:30:46
阅读次数:
291
在模板页面不显示getMessage的解决方案是,在对应的控制器里加上如下代码:$this->_initLayoutMessages('customer/session'); 如果加入后出现如下图的bug则再加入如下代码$this->_initLayoutMessages('catalog/sess...
分类:
Web程序 时间:
2014-08-12 16:15:04
阅读次数:
219
$thumb_path = Mage::getModel('catalog/product_media_config')->getMediaUrl($product->getThumbnail()); $small_path...
分类:
其他好文 时间:
2014-08-11 20:35:32
阅读次数:
312
Prism框架需要在应用程序启动的时候进行一些初始化的工作,Bootstrapper就是来做这些的,是其切入点。Bootstrapper主要要做的事有:创建和配置module catalog,创建DI Container,为UI配置默认的region适配器,创建和初始化shell以及初始化modul...
分类:
移动开发 时间:
2014-08-10 18:27:10
阅读次数:
402