Login | Forgot password | Register

X

What is OpenID?

OpenID is an Internet-wide identity system that allows you to sign in to many websites with a single account.

With OpenID, your ID becomes a URL (e.g. http://username.myopenid.com/). You can get a free OpenID for example from myopenid.com.

For more information visit the official OpenID site.

Jump to:

8531 Posts in 2223 Topics by 1200 members

General Questions

SilverStripe Forums » General Questions » Flash not inserting

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Page: 1
Go to End
Author Topic: Flash not inserting 439 Views
  • bones
    avatar
    Community Member
    42 posts

    Flash not inserting Link to this post

    Hi

    I've uploaded a .SWF file to a folder in "Files & Images", and gone to the page to add the content, clicked the Flash button and selected the .SWF file. However, clicking "Insert Flash" doesn't do anything.

    I'm using 2.3.0

    All help gratefully received. Thanks

  • designerdre
    avatar
    Community Member
    18 posts

    Re: Flash not inserting Link to this post

    Hmm im not sure what's happening here because I've never used that method for inserting flash in SS as yet.

    For what it's worth I would usually handle all my flash work in the template but if it must be dynamic then I set up the flash embedding code in the template and use a CMS field to pass on the URL of the SWF.
    So in the page definition file I might create a field called SWFLocation and add it to the CMS fields:

    public static $db = array(
       'SWFLocation' => 'Text'
       );
       
       function getCMSFields() {
       $fields = parent::getCMSFields();
       
       $fields->addFieldToTab('Root.Content.Main', new TextField('SWFLocation'), 'Content');
               
       return $fields;
       }

    Then in your template for that page you can set the path in your flash embed code to something like:

    http://www.yoursite.com/assets/$SWFLocation

    This way all you have to do is add the name of the file in the CMS field. Hope this helps a bit.

  • bones
    avatar
    Community Member
    42 posts

    Re: Flash not inserting Link to this post

    Thanks, designerdre, but it really does need to be something that can be added via the CMS by the end user. I'm rewriting an existing Flash website using SS, and the customer wants to retain lots of the old animations etc.

    Is this a bug with SS, or a problem because I'm running it locally using MAMP?

    Thanks

    439 Views
Page: 1
Go to Top

Currently Online: turtleline

Welcome to our latest member: fearofbuttons

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.