[Skip to content]

Search our Site
Easysite Resource Centre
Code or Script Asset

Code or Script Asset

Uploader

To add a new content asset to an Easysite page, right click the Add/Upload Asset icon and select New...

1. Click Content. The following view will be presented:

Content asset screenshot

2. Select Code or Script. The following view will be presented:

Code or Script asset uploader screenshot

3. Edit/configure:

Title

The title is presented as the name of the asset in the Asset Manager, in search results or by a dynamic page element such as User Gallery. Enter an appropriate title for the asset.

Code

Enter the required code.

Note: The Easysite 'Code Asset' supports most code that can be rendered by a browser, however EIBS can offer no guarantee of what will work / will not work, especially across browsers, when this functionality is used.  EIBS does not guarantee to support any issues that occur due to HTML or Javascript content, but may offer some assistance.

Unfortunately, you are unable to use any code that uses FORM tags or INPUT elements as you cannot nest FORMs, and the whole page is rendered within a .NET master form. This also applies to JavaScript that pulls in HTML content containing FORM tags and instead non-Easysite forms can be added via API Plugin elements.

Malformed HTML, for example poorly nested tags, may prevent the page from being edited inline. You will need to edit the Code Asset content or remove the element from the template to resolve this.

Content Type

Select the appropriate option. 

Scheduling

Select the Scheduling tab. The following view will be presented:

Asset scheduling screenshot

Go Live Date

Enter an appropriate go live date for the asset. The asset will not render to end users until this date is reached.

Review schedule

A review schedule is a formal review policy for assets, including nominated reviewers and escalation points. Select the required review schedule.

Review Date

Enter a date by which the asset requires review. Review schedule actions will be scheduled against this date.

Expiration Date

Once an asset has expired it will not longer render for end users. If required, enter an appropriate Expiration Date.

Expiration Category

Select an appropriate category for the asset to be relocated to once it has expired.

Archive Date

This is different to an expiry date, as the document retains all of its original attributes but is also simply marked as “Archived”. The document will not appear in searches unless an authorised user is specifically searching within the archived document. This would be accessed via a specific search facility using an template element such as Asset Browser.    

Archive Category

Select an appropriate category for Archived assets to be relocated to.

Deletion Date

If required, enter a date when the asset will be deleted from Easysite.

Categories

Check to select the appropriate category or categories for the asset. Within the Asset Manager categories are used to store assets and also control access to the asset.

Tags

If required, select an owner for the asset. This is typically used to indicate the owner of the content of the asset, as opposed to the system user who last uploaded or edited the asset. Other meta tags may also have created. If required, populate this with appropriate content.

4. Click Save to add the asset to a page.