I was surprized to find out that the unofficial {PAGETITLE} replacement tag can be invoked within the FlashVars parameter, providing Flash (Version 6 or greater) a unique variable from which to call a CASE/SWITCH function to load other parametered objects such as those discussed (jpg,swf,xml,txt). The Flash code in the header follows standard proceedure and accepts the {PAGETITLE} tag within phpwcms.
Code: Select all
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="750" height="135">
<param name="movie" value="flash/header_1.swf">
<param name=FlashVars VALUE="myVariable={PAGETITLE}"
<param name="quality" value="high">
<embed src="flash/header_1.swf"
FlashVars="myVariable={PAGETITLE}"
quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="750" height="135"></embed></object>
Code: Select all
// ----------added 4_16_04
//content.func.inc.php
// PAGETITLE replacement
if( ! (strpos($content["all"],'{PAGETITLE}')===false)) {
$content["all"] = str_replace('{PAGETITLE}', $content["struct"][$content["cat_id"]]
["acat_name"], $content["all"]);
}
// -------------------------------------------------------------
Cheers,
jsw