1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Expanding Flash manager options, pass variables to flash...

Expanding Flash manager options, pass variables to flash...

14 posts, 0 answered
  1. Jonathan Meson
    Jonathan Meson avatar
    6 posts
    Registered:
    11 Feb 2010
    12 Feb 2010
    Link to this post
    I want to expand the Flash Manager options available for the GenericContent Control.  I want to add the ability for the user to input the location of the audio file to be used by the swf movie.  The end result woud be as the snip below.  Essentially I want to be able to pass variables to the swf file...

    Current:
    <embed src="/flash/player.swf" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" wmode="transparent" loop="false" menu="false" width="150" height="150">

    Modified:
    <embed src="/flash/player.swf?audioUrl=/audio/howto.mp3" type="application/x-shockwave-flash"  pluginspage="http://www.macromedia.com/go/getflashplayer"  quality="high"  wmode="transparent"  loop="false" menu="false" width="150" height="150">

    Thanks!
    -Jona
  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    12 Feb 2010
    Link to this post
    Hi Jonathan Meson,

    1. You need to download external templates and map GenericContentDesigner.ascx template. Please take a look at this KB that explains how to map a template -How to map a template
    2. You need to download the external template for FlashManager (FlashManager.ascx) and map it to the RadEditor control that is embedded in the GenericContent. You can map the external dialog using ExternalDialogsPath property of RadEditor control.

    3. Then add the fields you want to this template and modify the js in the template to pass the desired values to RadEditor content area.


    Another option would be creating a custom control with several public properties which you can set from the control designer and then render once the control is loaded.

    Sincerely yours,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. Jonathan Meson
    Jonathan Meson avatar
    6 posts
    Registered:
    11 Feb 2010
    17 Feb 2010
    Link to this post
    Thanks for your response...  I do understand the steps you are giving me but I'm not able to get the external template.  Where can I download these templates?  I only have a general account for developing such custom module, does this matter?

    Thanks!
  4. Jonathan Meson
    Jonathan Meson avatar
    6 posts
    Registered:
    11 Feb 2010
    19 Feb 2010
    Link to this post
    Bump...
    I need to know where I can get these external templates.  If I'm required to have a purchased product I can than ask our client to send us the required files. 

    Thanks!
  5. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    19 Feb 2010
    Link to this post
    Hi Jonathan Meson,

    You need to download RadControls for ASP.NET AJAX to get the templates. The templates are shipped with the installation.

    All the best,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  6. Jonathan Meson
    Jonathan Meson avatar
    6 posts
    Registered:
    11 Feb 2010
    23 Feb 2010
    Link to this post
    I was able to find the templates and mapped the external template GenericContentDesigner.ascx.

    I'm having trouble mapping to the RadEditor control FlashManager.ascx.  I assume the RadEditor control is inside the file GenericContentDesigner.ascx. 

    All I added was:
    ExternalDialogsPath="~/Editors"

    To:
    <telerik:RadEditor
        runat="server"
        ID="textEditor"
        ExternalDialogsPath="~/Editors"
        ContentAreaCssFile="~/App_Themes/HD5/ui.css"
        ToolsFile="~/Sitefinity/Admin/ControlTemplates/DevelisysEditorToolsFile.xml"   
        Skin="WebBlue"   
        NewLineBr="False"
        Height="360px"
        Width="98%"
        ContentFilters="FixUlBoldItalic,FixEnclosingP,IECleanAnchors,MozEmStrong,ConvertFontToSpan,ConvertToXhtml,IndentHTMLContent">
        <ImageManager ViewPaths="~/images" UploadPaths="~/images" DeletePaths="~/Images" />
        <MediaManager ViewPaths="~/video" UploadPaths="~/video" DeletePaths="~/Files" />
        <FlashManager ViewPaths="~/flash" UploadPaths="~/flash" DeletePaths="~/Files" />
        <DocumentManager ViewPaths="~/docs" UploadPaths="~/docs" DeletePaths="~/Files" />
        <CssFiles>
            <telerik:EditorCssFile Value="~/Sitefinity/Admin/Themes/Default/AjaxControlsSkins/Sitefinity/EditorCssFile.css" />
        </CssFiles>
    </telerik:RadEditor>

    It seems it's not pointing to my folder Editors where I got the FlashManager file.  What could be wrong?

    Thanks!
  7. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    23 Feb 2010
    Link to this post
    Hi Jonathan Meson,

    ExternalDialogsPath property is used to map the template for FlashManager, so that the RadEditor control will start using your custom template instead of the default one. ExternalDialogsPath property correctly resolves the path at my end. Make sure that you have mapped correctly GenericContentDesigner.ascx and you have FlashManager.ascx template under  Editors folder.

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  8. Jonathan Meson
    Jonathan Meson avatar
    6 posts
    Registered:
    11 Feb 2010
    24 Feb 2010
    Link to this post
    Ivan thanks for your reply.
    You actually confirm this should be working.  I did a little more investigation and I realized I downloaded RadControlsQ1 2007.

    I guess for others in the future that are looking for the RadControls you can get the correct ones here:

    http://www.telerik.com/account/free-trials/single-trial.aspx?pid=561


    Thanks for your help from now on it seems easy, so I hope!

    -Jona
  9. charly delarche
    charly delarche avatar
    4 posts
    Registered:
    17 Mar 2010
    17 Mar 2010
    Link to this post
    Hi everyone,

    I tried to modify the flashmanger of the RadEditor in MOSS in order to expend the control for using .flv files. So I rewrote the javasccipt function of the FlashManger.ascx to do so. I mapped also the new FlashManger.ascx in the configFile of the RadEditor using the external config path property. 

    But when I try to use the new flash manager, an error occured : 

    "Unknown server tag 'widgets:GenericFileLister'"

    Is anybody had the same error ? What I'm doing wrong ?

    Thanks in advance.

    I'm using the RadEditorMoss 5.6.1 version of the controls for MOSS 2007 
  10. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    17 Mar 2010
    Link to this post
    Hi charly delarche,

    Check whether the tag "widgets" you have registered points to the correct namesapce and assembly. The application cannot recognize it and you cannot call GenericFileLister

    Kind regards,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  11. charly delarche
    charly delarche avatar
    4 posts
    Registered:
    17 Mar 2010
    17 Mar 2010
    Link to this post
    this is the tag definition which I have :

    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Editor" TagPrefix="tools" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Widgets" TagPrefix="widgets" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI.Dialogs" TagPrefix="dialogs" %>
    <%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>

    I only change the _GetParam javascript fonction of the FlashManager.ascx file in order to generate another <Object> tag. It's means that I reuse the ascx file from the EditorDialogs folder whitout changing anything else.

  12. charly delarche
    charly delarche avatar
    4 posts
    Registered:
    17 Mar 2010
    18 Mar 2010
    Link to this post
    Anyone could help me for my problem?

  13. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    16 Jun 2017
    24 Mar 2010
    Link to this post
    Hi charly delarche,

    The GenericFileLister' is used in an old version of RadEditor's FlashManager templates.  As far as I remember the GenericFileLister is used before integrating FileExplorer. Could you try using most recent version like Q3 2009 or better Q1 2010. Sitefinity 3.7 SP3 uses Q1 RadControls for ASP.NET AJAX.

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  14. charly delarche
    charly delarche avatar
    4 posts
    Registered:
    17 Mar 2010
    25 Mar 2010
    Link to this post
    HI,

    Thanks for your reply. I already tried to use the ascx component of 2009 Q3 version of Telerik and It works perfectly. Effectively, the namespace Telerik.web.ui.widget, which was used to declare the genericFileLister object seems to be used for older version of telerik.

    Thanks again for your support
Register for webinar
14 posts, 0 answered