Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2006-09-08 02:33:35
- awade
- New Member
- Registered: 2006-09-08
- Posts: 3
How would I output <txp:title /> in xml path
Is this possible? I can’t seem to get it to work. I’d like to output <txp:title /> to dynamically change the xml path for my flash movie.
<txp:kml_flashembed movie="../window.swf" height="300" width="400" fvars="xmlfile = ../xml/<txp:title />.xml"/>
Thanks in advance…
(Edit: updated to display code properly. -Mary)
Last edited by Mary (2006-09-08 02:58:50)
Offline
Offline
#3 2006-09-09 18:40:07
- awade
- New Member
- Registered: 2006-09-08
- Posts: 3
Re: How would I output <txp:title /> in xml path
- I still can’t get it to work… I think it’s because the “title” output is not the whole value for fvars…. I’m not sure how to output the ../xml/ .xml around the title output with an array… (and actually get it to work…) If it was fvars=”<txp:title />” it wouldn’t be such an issue… any ideas would be appreciated…
Last edited by awade (2006-09-09 20:52:28)
Offline
Re: How would I output <txp:title /> in xml path
Could you post your code?
I don’t use the plugin, but have you tried something like this in your article form (ex: default):
<pre>
<txp:php>
$xml = ‘/xml/’.$GLOBALS[‘thisarticle’][‘title’].’.xml’;
echo kml_flashembed (array (
‘fvars’ => $xml,
‘movie’ => ‘window.swf’,
‘height’ => ‘300’,
‘width’ => ‘400’
));
</txp:php>
</pre>
I’m not sure if it’ll work, as I’ve never used flash before. window.swf should be referred to as /path/to/window.swf, I think.
Last edited by deldindesign (2006-09-10 01:30:41)
Offline
#5 2006-09-14 13:00:31
- awade
- New Member
- Registered: 2006-09-08
- Posts: 3
Re: How would I output <txp:title /> in xml path
Thank you for your response. I finally decided to pass only the title variable for the xmlfile value to the flash movie (stripped of everything else). I then added the rest of the info (path, .xml etc…) in the flash movie. It works but I’d prefer to have it happen in the page – not in the flash file. I’m going to give your example a try. Thanks again -
Last edited by awade (2006-09-14 13:03:17)
Offline