Richtext Editor : Flash button missing Options
vladimirv
Posted: Wednesday, December 12, 2007 1:15:14 PM
Rank: Newbie

Joined: 12/2/2007
Posts: 9
Hello,
I am using the latest umbraco (3.x)
Why the richtext type fields do not have the "insert flash button"?
The richtext umbraco uses is tinyMCE. And I know for sure that it has a button for flash.

So, how can I add flashes to the richtext?

Regards,
Vladimir
tkahn
Posted: Wednesday, December 12, 2007 1:52:14 PM

Rank: Fanatic

Joined: 11/24/2006
Posts: 322
Location: Stockholm, Sweden
You could switch to HTML-mode and insert the HTML-code to show the flash content manually. Adding flash animations to pages is not something that "ordinary" users normally do, so I think it's OK that this function is omitted.

Web Developer at Kärnhuset - http://www.karnhuset.net - Stockholm, Sweden
bootnumlock
Posted: Wednesday, December 12, 2007 8:00:19 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 418
i use a simple macro that can be accessed via the editor to insert flash files... it utilizes the swfObject deployment for flash and the macro has a media picker to select the file, width and height parameter as well.

it you are interested in this type of solution i can try to package it up for you and post. Let me know.

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
Silverbug
Posted: Sunday, December 16, 2007 11:55:11 PM

Rank: Enthusiast

Joined: 12/16/2007
Posts: 41
Location: Auckland, NZ
I would be quite interested if you have time to post it.

Cheers

Paul

Paul
Sniper Systems Ltd

Have a look at our multiple file uploader package
- Supports Custom Media types (you choose what media type you want to upload as)
- Works in V3.0.x and V4
bootnumlock
Posted: Monday, December 17, 2007 4:37:31 AM

Rank: Fanatic

Joined: 10/9/2006
Posts: 418
@Paul...

okay, couple of pieces to consider here...

first the xslt...
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<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"
    exclude-result-prefixes="msxml umbraco.library">


<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:param name="currentPage"/>
<xsl:variable name="flash" select="/macro/flashFile" />
<xsl:variable name="flashW" select="/macro/flashW" />
<xsl:variable name="flashH" select="/macro/flashH" />

<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:if test="$flash !=''">
    <xsl:variable name="swfItem" select="umbraco.library:GetMedia($flash/node/@id, 0)/data [@alias = 'umbracoFile']" />
    <xsl:variable name ="soID" select="$flash/node/@id"/>
    <div id="so{$soID}">
        There should be a flash movie here.
        <script type="text/javascript">
            var so<xsl:value-of select="$soID"/> = new SWFObject("<xsl:value-of select="$swfItem"/>", "flash", "<xsl:value-of select="$flashW"/>", "<xsl:value-of select="$flashH"/>", "8", "#FFFFFF");
            so<xsl:value-of select="$soID"/>.write("so<xsl:value-of select="$soID"/>");
        </script>
    </div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


You will need to make a macro with
> mediaCurrent for flashFile
> number for flashW
> number for flashH

i use swfobject for flash deployment, which can be downloaded here...
http://blog.deconcept.com/swfobject/

if you have any questions, feel free to ask... some day i will make this all a package :)

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
asma
Posted: Saturday, June 21, 2008 1:22:00 PM
Rank: Newbie

Joined: 6/8/2008
Posts: 14
Location: none
Hi, I've tried the above code but it doesn't display the flash file in my case
i m using swfobject 1.5

Any help will be greatly appreciated
bootnumlock
Posted: Saturday, June 21, 2008 4:12:20 PM

Rank: Fanatic

Joined: 10/9/2006
Posts: 418
@asma,

Can you tell me a bit more about your issue...

so you have created the macro, correct? are you trying to put in in a template or in an actual content node?

you are embeding the swfobject js code on the template you want, correct?

Give me just a little more info on the steps you are going through and where the 'it doesn't' work comes in...

also, what browser are you using with the umbraco admin panel... i saw your other post about the flying delete button and that got me wondering.

bootnumlock - aka bob baty-barr [http://www.baty-barr.com]
Level 1 Certified!
asma
Posted: Saturday, June 21, 2008 5:46:48 PM
Rank: Newbie

Joined: 6/8/2008
Posts: 14
Location: none
i am using IE 6.0 and umbraco 2.17, as for the macro i have placed it in the template page-(master template) specifying the file from the media folder along with the height and width

as for the code i have created an xslt called flashmacro with the code below and i've created a macro out of it with 3 parameters-(flashfile, width & height)

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:Stylesheet [ <!ENTITY nbsp "&#x00A0;"> ]>
<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"
exclude-result-prefixes="msxml umbraco.library">


<xsl:output method="xml" omit-xml-declaration="yes"/>

<xsl:param name="currentPage"/>
<xsl:variable name="flash" select="/macro/flashFile" />
<xsl:variable name="flashW" select="/macro/flashW" />
<xsl:variable name="flashH" select="/macro/flashH" />

<xsl:template match="/">
<!-- start writing XSLT -->
<xsl:if test="$flash !=''">
<xsl:variable name="swfItem" select="umbraco.library:GetMedia($flash/node/@id, 0)/data [@alias = 'umbracoFile']" />
<xsl:variable name ="soID" select="$flash/node/@id"/>
<div id="so{$soID}">
There should be a flash movie here.
<script type="text/javascript">
var so<xsl:value-of select="$soID"/> = new SWFObject("<xsl:value-of select="$swfItem"/>", "flash", "<xsl:value-of select="$flashW"/>", "<xsl:value-of select="$flashH"/>", "8", "#FFFFFF");
so<xsl:value-of select="$soID"/>.write("so<xsl:value-of select="$soID"/>");
</script>
</div>
</xsl:if>
</xsl:template>
</xsl:stylesheet>


while inserting the macro it does ask for the file and the width and height, i m using a flash file from the media directory

i hope these details are fine to explain the problem

For the flying delete button i have no clue as to y it does that, when i try to delete a template

asma
Posted: Sunday, June 22, 2008 11:41:32 AM
Rank: Newbie

Joined: 6/8/2008
Posts: 14
Location: none
Hi there,
today i tried using the new version 3.0 it went in well, but again the problem with delete button remains the same

hope i find the solution to this sooner enough

asdf-1
Posted: Monday, July 07, 2008 6:10:47 PM
Rank: Newbie

Joined: 6/18/2008
Posts: 9
Location: Chile
thanks..it work for me....
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.