Hello I am new to umbraco so pleas be patient. What I would like to make is that the end-user, from a page, can upload a swf file. For example, if I, on my home page, has an area where there must be a video which the user must be able to change them self. So there must be a tab on the page that contains the ability to choose a swf file from the Media
I know how I have created a tab through a document type, but I am unsure what to write in fields: Name, Alias and Type
I've looked at some examples here in the forum, but without success.
What I need is a thorough description of how to do it.
okay, I dont quite understand what you mean. I will try to describe my problem a little closer. I know I wrote that I would insert a flash, but for convenience's sake let's just insert an image.
I have an GetImageURL.xslt that looks like this: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets" exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
Macro have I put into my template: <span class="spot spot1" style="background:url(<umbraco:Macro Alias="GetImageURL" runat="server"></umbraco:Macro>) no-repeat;" onclick="showText(this.id)" id="et">
(I know it is not the right way to put the macro in, but I do not know how else I should do it.)
When I insert the macro, I am asked to choose an image (and the height and width, I think). Why is that?
And how do I get it to work with my front page where the user must insert the image / flash file?
Hope it gives a better picture of where I am in my project Umbraco :-)
Insert Flash from page
Hello
I am new to umbraco so pleas be patient.
What I would like to make is that the end-user, from a page, can upload a swf file.
For example, if I, on my home page, has an area where there must be a video which the user must be able to change them self.
So there must be a tab on the page that contains the ability to choose a swf file from the Media
I know how I have created a tab through a document type, but I am unsure what to write in fields: Name, Alias and Type
I've looked at some examples here in the forum, but without success.
What I need is a thorough description of how to do it.
Hope someone can help
Kate,
You need to create a field of type media picker you can give it whatever alias this will allow user to pick media item form the media section.
Regards
Isamil
Maybe you can see RTE datatype to set.
okay, I dont quite understand what you mean.
I will try to describe my problem a little closer.
I know I wrote that I would insert a flash, but for convenience's sake let's just insert an image.
I have an GetImageURL.xslt that looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp " "> ]>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library" xmlns:Exslt.ExsltCommon="urn:Exslt.ExsltCommon" xmlns:Exslt.ExsltDatesAndTimes="urn:Exslt.ExsltDatesAndTimes" xmlns:Exslt.ExsltMath="urn:Exslt.ExsltMath" xmlns:Exslt.ExsltRegularExpressions="urn:Exslt.ExsltRegularExpressions" xmlns:Exslt.ExsltStrings="urn:Exslt.ExsltStrings" xmlns:Exslt.ExsltSets="urn:Exslt.ExsltSets"
exclude-result-prefixes="msxml umbraco.library Exslt.ExsltCommon Exslt.ExsltDatesAndTimes Exslt.ExsltMath Exslt.ExsltRegularExpressions Exslt.ExsltStrings Exslt.ExsltSets ">
<xsl:output method="xml" omit-xml-declaration="yes"/>
<xsl:param name="currentPage"/>
<xsl:template match="/">
<xsl:value-of select="/macro/imageID/*/umbracoFile"/>
</xsl:template>
</xsl:stylesheet>
Macro have I put into my template:
<span class="spot spot1" style="background:url(<umbraco:Macro Alias="GetImageURL" runat="server"></umbraco:Macro>) no-repeat;" onclick="showText(this.id)" id="et">
(I know it is not the right way to put the macro in, but I do not know how else I should do it.)
When I insert the macro, I am asked to choose an image (and the height and width, I think). Why is that?
And how do I get it to work with my front page where the user must insert the image / flash file?
Hope it gives a better picture of where I am in my project Umbraco :-)
is working on a reply...