Forums / Cotonti / Core Labs / set metas from standalone plugin

Kilandor
#8747 2009-02-24 20:26
There is no need for this, actually you can modify things in the <head> section. Because we no longer use sed_htmlmetas() except for in pfs and thats only till its re-written.

$out['head_head'] may be used to input any needed data into <head></head> it outputs to {HEADER_HEAD} and is a default tag.

Actually all of the below can easily be modified. by hooking into header.main

$t->assign(array (
	"HEADER_TITLE" => $plug_title.$out['fulltitle'],
	"HEADER_DOCTYPE" => $cfg['doctype'],
	"HEADER_CSS" => $cfg['css'],
	"HEADER_COMPOPUP" => $out['compopup'],
	"HEADER_LOGSTATUS" => $out['logstatus'],
	"HEADER_WHOSONLINE" => $out['whosonline'],
	"HEADER_TOPLINE" => $cfg['topline'],
	"HEADER_BANNER" => $cfg['banner'],
	"HEADER_GMTTIME" => $usr['gmttime'],
	"HEADER_USERLIST" => $out['userlist'],
	"HEADER_NOTICES" => $out['notices'],
	"HEADER_BASEHREF" => $out['basehref'],
	"HEADER_META_CONTENTTYPE" => $out['meta_contenttype'],
	"HEADER_META_CHARSET" => $out['meta_charset'],
	"HEADER_META_DESCRIPTION" => $out['meta_desc'],
	"HEADER_META_KEYWORDS" => $out['meta_keywords'],
	"HEADER_META_LASTMODIFIED" => $out['meta_lastmod'],
	"HEADER_HEAD" => $out['head_head'],
));