Archive for the ‘Flash’ Category

 

How do I add a HTML portlet to a page

November 17, 2010
by Stuart Croghan

This is a method to add content to a page without using the editor.  It is usually used for adding flash files and other rich media type functions.

1. Go to the page in question and click ‘Edit’ at the bottom of the page.

2. In a portlet region (e.g. main portlet1) there is a plus icon to add a portlet, select this.

3. From the ‘Portlet Repository’ list shown, select ‘Portal tools’.

4. From the following list add a ‘HTML portlet’ then click OK.

5. The web page now has the html portlet.  Click on the pencil icon and enter your content into the main form field.

 

 

 
 

How do I upload Flash Content to a CMS page

October 5, 2010
by Stuart Croghan

1. Upload the flash file using the upload a file wizard.


2. Add a HTML portlet to the page and enter in the following content.  Make sure to make the appropriate changes as indicated in this code.

<script>

jQuery(function(){

$.getScript(‘http://www.imperial.ac.uk/imedia/plugins/jquery.swfobject.min.js’, function() {


/* enter a class id reference for this flash app, e.g. pic-gallery.  If there are multiple flash files on a web page then this id needs to be unique. */

$(‘#xxx’).flash({


/* Enter in the flash filename.  */

swf   : ‘http://www3.imperial.ac.uk/fileupload/download/filename.swf’,

height  : 418,

width: 813,

expressInstaller:’expressInstall.swf’,


/* enter the id and name for this */

id: ‘xxx’,

name: ‘xxx’,

params  : { bgcolor:’#ffffff’,


/* if you want full screen capability change this to true */

allowfullscreen:’false’,

scriptAccess: ‘always’

}

});

});

});

</script>


3. Add the following into a content item area using the CMS editor:

<div id=”xxx”>
<!— It is advised to If you want a substitute content then we could advise you enter in an image and text here. —>
</div>