Hallo,
Ich suche nach eine Lösung ein Tag (in mein Beispiel xxx) in ein HTML Objekt, durch den Inhalte eines TEXT Objektes zu ersetzen, leider ohne Erfolg.
Wenn Ich replaceString(xxx | 10) verwende wird das Tag durch 10 ersetzt. Dass Ganze funktioniert nur mit Hardcoded Strings, nicht mit einem TEXT Object.
Wer hat eine Lösung für mich?
Hier der Code :
page = PAGE
page {
headerData.1020=HTML
headerData.1020.value (
<script type="text/javascript" src="fileadmin/templates/js/swfobject.js"></script>
<script type="text/javascript" src="fileadmin/templates/js/swffit.js"></script>
<script type="text/javascript">
<!--
// Permalinks option
function flashPutHref(href) { location.href = href; }
// Expand browser option
var eB = false;
if (eB) {
window.moveTo(0,0);
window.resizeTo (screen.availWidth, screen.availHeight);
}
// swffit sizing
var swf_pad = 20;
function initSwffit(w,h) {
// If you change name of the DIV the SWF is written at,
// change 'flashcontent' to the name of your DIV.
swffit.fit('flashcontent',w+swf_pad,h+swf_pad);
}
// SWFObject embed
// initialURL: escape(document.location),
var flashvars = {
album: "<mytag>",
initialURL: escape(document.location),
xmlFilePath: "http://localhost/motorclub/ssp_director/images.php?album=xxx",
xmlfileType: "Director"
}
var params = {
bgcolor: "#121212",
allowfullscreen: "true"
test:{$plugin.tt_news.Author}
}
var attributes = {}
swfobject.embedSWF("loader.swf", "flashcontent", "100%", "100%", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
/* below required for google chrome embed issue */
swffit.fit('flashcontent',0,0);
-->
</script>
)
headerData.1040 = TEXT
headerData.1040 {
stdWrap.data = GPvar:tx_ttnews|tt_news
stdWrap.wrap = {DB:tt_news:|:author}
insertData = 1
wrap = |
}
}