CMS内地化必备:
<?
require_once (JPATH_BASE .DS. ‘modules’ .DS. ‘mod_latestnews’ .DS. ‘helper.php’);
$params =new JParameter(”);
$params->set(‘secid’,7); //如果为分类则为catid
$params->set(‘count’,5);
$list = modLatestNewsHelper::getList($params);
require(JModuleHelper::getLayoutPath(‘mod_latestnews’));
?>
版本:1.5.10
1.文章末尾都出现了 LAST_UPDATED2字样。
几个比较知名的国内joomla开发网站都存在这样的bug
比如 http://www.joomla.cn
http://www.joomla.cn/index.php?option=com_content&view=article&id=1345:joomla-joomfish&catid=81:2008-08-18-16-30-26&Itemid=7
修正方法:
在zh-CN.ini文件里添加:
LAST UPDATED=最后更新
LAST_UPDATED2=最后更新于 %s
2.某些模块 或者组件安装失败
某些组件之间可能会存在依赖 最常见的是对插件的依赖 需要考虑安装顺序
常见错误:Error Component Install: Could not copy PHP install file
解决方式见
http://docs.joomla.org/Error_Component_Install:_Could_not_copy_PHP_install_file_in_1.5.10
3.系统权限如何修改
libraries\joomla\user\authorization.php 可以定制某些模块的权限ACL
4.后台模块管理权限表
administrator\modules\mod_menu\helper.php 定制方式同上