View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
1428 | Composr | core_rich_media | public | 2013-10-18 15:41 | 2013-10-21 22:20 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Priority | normal | Severity | feature | ||
Status | resolved | Resolution | fixed | ||
Summary | 1428: Javascript to customise attachment defaults | ||||
Description | Include in a Javascript snippet (from a separate template) that can be customised to define what rendering defaults particular attachment file extensions will be given. Allow it to define whether the options overlay should automatically appear or not. | ||||
Tags | No tags attached. | ||||
Attach Tags | |||||
Time estimation (hours) | 0.5 | ||||
Sponsorship open | |||||
|
ATTACHMENT_UI_DEFAULTS.tpl implemented (made possible via changes in JAVASCRIPT_POSTING.tpl). The default is... /* This file is intended for customising the way the attachment UI operates/defaults. The following variables are defined: is_image (boolean) is_video (boolean) is_audio (boolean) is_archive (boolean) ext (the file extension, with no dot) */ // Add any defaults into URL defaults.thumb='1'; defaults.type=''; // =autodetect rendering type // Shall we show the options overlay? show_overlay=!is_archive; Deployed for sponsorer as... /* This file is intended for customising the way the attachment UI operates/defaults. The following variables are defined: is_image (boolean) is_video (boolean) is_audio (boolean) is_archive (boolean) ext (the file extension, with no dot) */ // Add any defaults into URL defaults.thumb='0'; defaults.type=''; // Shall we show the options overlay? show_overlay=false; |
|
Hi Chris, What are the different defaults.type that can be specified ? Cheers Ade |
|
They refer to the auto-injected parameters of the attachment tag, and also the defaults fed into the form if show_overlay is true. |
|
So if I want "Embed directly if possible" how do I find out what default.type needs to be set to ? |
|
Oh whoops, did I leave it as 'island'? Try: defaults.type='inline'; If it doesn't work right away, I will have another look. |
|
That worked fine thanks - the experience of adding an image with syndicating out to photobucket is really smooth and uncomplicated - thanks |