$document =& JFactory::getDocument();
$document->setDescription('you description');
$document->setMetaData('keywords', 'you keywords');
iOS Developer
Showing posts with label Joomla. Show all posts
Showing posts with label Joomla. Show all posts
Monday, January 25, 2010
Change Joomla default meta info in a Component
In the templates of Component, in view.html.php before display() be called. add following line:
Tags:
Joomla
Saturday, August 1, 2009
a Joomla module to show special category in anywhere
一哥们是designer,在用Joomla时发现无法实现显示指定的一个category的list到frontpage或其它地方。也没找到相应的module,所以我就写了一个。
点此下载(Download)
其实之前也写了些module,但和客户有保密协议,所以不便发布在这儿。
点此下载(Download)
其实之前也写了些module,但和客户有保密协议,所以不便发布在这儿。
Tags:
Joomla,
mod_z_specieslist,
module
Tuesday, June 9, 2009
给Joomla用户注册添加字段的方法。
先在Table上添加字段。
然后修改文件:
在JTableUser类增加成员变量,名字就是你要添加的字段。
在JUser类增加成员变量,名字就是你要添加的字段。
模板,添加一个与数据库字段名相同的表单项即可。也可以在自定义模板中进行替换。
当然还可以用Community Builder。不过我不喜欢这个烂玩意,真的很烂,不信你试试。
然后修改文件:
libraries\joomla\database\table\user.php
在JTableUser类增加成员变量,名字就是你要添加的字段。
libraries\joomla\user\user.php
在JUser类增加成员变量,名字就是你要添加的字段。
components\com_user\views\register\tmpl\default.php
模板,添加一个与数据库字段名相同的表单项即可。也可以在自定义模板中进行替换。
当然还可以用Community Builder。不过我不喜欢这个烂玩意,真的很烂,不信你试试。
Tags:
Joomla
Subscribe to:
Posts (Atom)
