Plugin này có hướng dẫn thêm TAG cho Joomla 1.5
Please login to view this content!
Custom Head Tag for 1.5
version : 1.0.0
Copyright (C) 2008 Joomler!.net All rights reserved.
access:
This e-mail address is being protected from spam bots, you need JavaScript enabled to view it
link:
http://www.joomler.net/
license:
http://www.gnu.org/copyleft/gpl.html GNU/GPL
About Custom Head Tag
The work that this extension does.
* Output your scripts to head tag.
* Output your style to head tag.
Setting
* Menu ID
Please input the menu ID that output custom tag.
Example:1,3,7
* Content ID
Please input the content ID that output custom tag.
Example:1,3,7
* Output
When you set it in ALL, custom tag is output by all pages.
* Path : Javascript
Please input path after the site URL. In the case of the plural number, please divide it at a new line.
Eexample:modules/mod_example/javascript/example.js
* Script : Javascript
Please input the custom javascript.
Example:alert('Example' ) ;
* Path : Style
Please input path after the site URL. In the case of the plural number, please divide it at a new line.
Eexample:modules/mod_example/style/example.css
* Style : Style
Please input the custom style.
Example:div#example{display:hidden}
Download at:
http://www.joomler.net/component/op.../task,doc_details/gid,53/
Đặt Title trong Jooma l1.5 - lời gọi từ plugin, chắc gọi từ com cũng OK:
| Code: |
$document= & JFactory::getDocument();
$document->setTitle($row->alias);
|
Ngoài ra:
| Code: |
global $mainframe;
// if it's administrator section, then do nothing
if ( $mainframe->isAdmin() ) {
return;
}
$mainframe->getCfg('sitename')
Hoặc
$document = JFactory::getDocument();
$oldtitle = $document->getTitle();
$newtitle ="Do something here!";
$document->setTitle( $newtitle );
|