From what I can see, you have got the XML content of the media-item in the $fileId-variable, but I'm just guessing from the details you provided above :)
i don't know if you already solved it. I had the same problem. If you use the old schema (and i guess you do) you have to insert a "*" to get the correct result:
mediaCurrent problem
From being pretty new to umbraco I hope you guys can solve this before i tear my hair of ;)
- I have created a MediaType called Flash and given the same properties as File
- I have uploaded a Flash File which I have called through and macro using MediaPicker.
- The variable is using MediaCurrent
Problem:
When I call the macro $fileId shows "/demo/media/103/top.swfswf533359" but $fileId/node/data[@alias = 'umbracoFile'] gives nothing.
What am I missing?
Hi Nicolai
Can you provide us with your XSLT-code that you use to render the content?
I think you are pretty close.
Try this approach:
From what I can see, you have got the XML content of the media-item in the $fileId-variable, but I'm just guessing from the details you provided above :)
/Kim A
Tried removing "node" but nothing happened
Are you using the new or the old XML schema?
And what does your $fileId contain? Only the choosen id from the media picker?
If $fileId contais a media id you shopuld be able to get the path to the media this way if you are using the old schema:
And this way if you are using the new schema:
/Kim A
I'm not sure what you mean, but this is the macro
In the macro FileId then becomes "demo/media/103/top.swfswf533359", guessing from mediaCurrent processing it.
I have tried both your examples and on the mainpage it writes "error in the macro file"
Hi,
i don't know if you already solved it. I had the same problem.
If you use the old schema (and i guess you do) you have to insert a "*" to get the correct result:
Ty so much Matthias.
Just tested it and the did the trick.
is working on a reply...