Absolute URL links for media

Last post 08-04-2010, 1:06 PM by Eric. 4 replies.
Sort Posts: Previous Next
  •  04-28-2010, 6:19 AM 60496

    Absolute URL links for media

    Hi
     
    I need to use absolute links when uploading media files.  
     
    I'm currently using the 'Editor.URLType Property'
    $editor->URLType = "Absolute";
     
    This gives the  images a absolute URL but not video/media files.
     
    Any help would be gratefully received.
     
    Thanks 
    Geoff
    Filed under:
  •  04-28-2010, 9:55 AM 60503 in reply to 60496

    Re: Absolute URL links for media

    Geoff,
     
    Right now we can convert the URL of the images and links to absolute paths. But we can't convert the path of the media files to absolute path. You need to input the absolute paths if you want to use the absolute paths for your media files. Sorry for the inconvenience.

    We will find a better solution in the future version.

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  04-29-2010, 3:44 AM 60535 in reply to 60503

    Re: Absolute URL links for media

    Thank you for your reply Adam.
  •  08-03-2010, 10:59 AM 63026 in reply to 60503

    Re: Absolute URL links for media

    hello,
     
    I am trying the get absolute path for media files, I understand that now is not supported in CuteEditor, you suggest input Absolute paths..
     
    Can you give me some direction to input absolute path?... I have correct gallery folder but I got un exception in code of CuteEditor:

    fs.VirtualRoot=CuteEditor.EditorUtility.ProcessWebPath(Context,null,folder).TrimEnd('/')+"/";

    Please, let me know how can I solve..
     
    Thanks
     
    Maite
     
  •  08-04-2010, 1:06 PM 63084 in reply to 63026

    Re: Absolute URL links for media

    Please follow steps:
    2. Click button "Insert Image" and insert one image
    3. Click button "Insert Media" and insert one media
    4. Switch to "HTML", you will find the following html code:
    <div><img border="0" alt="" src="http://cutesoft.net/uploads/Cindy_Crawford.jpg" width="124" height="100" /></div>
    <div>&nbsp;</div>
    <div>
    <object standby="Loading Microsoft Windows Media Player components..." codebase="http://activex.microsoft.com/activex/ controls/mplayer/en/nsmp2inf.cab#Version=6,0,02,902" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="200" height="200" type="application/x-oleobject">
    <param name="FileName" value="/uploads/clock.avi"   />
    <param name="autoStart" value="1"   />
    <param name="showControls" value="1"   />
    <param name="showstatusbar" value="0"   />
    <param name="windowlessvideo" value="false"   /><embed name="MediaPlayer1" src="http://cutesoft.net/uploads/clock.avi" autostart="1" showcontrols="1" showstatusbar="0" windowlessvideo="false" width="200" height="200" type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/MediaPlayer" ></embed>
    </object></div>
    You can update media path to absolute path by updating html code, this is solution 1. Another solution is:
    When you click "Insert Media", dialog will pop up, you can add the absolute path in "Url" box.
     
    Regards,
    Eric
     
     
View as RSS news feed in XML