Script Field

Categories

Component ID

2216025

Component name

Script Field

Component type

module

Maintenance status

Development status

Component security advisory coverage

not-covered

Downloads

1548

Component created

Component changed

Component body

A field type and formatter that lets users add scripts from a safe source to a particular node.

Adds a field type "Script", a widget "Script Field" and a formatter "Attached External Script" that let a site builder define fields for including custom scripts from trusted sources.

It's possible to set a base url and valid extensions, and the field will attach scripts or css files to the node when displayed.

Example: Setting a field that allows css from http://mytrustedsite.com/path/to/mytrustedscripts/ will allow people to use any of the scripts available under that url.

An initial realase have been released, please try it and report bugs.