#1428 - Javascript to customise attachment defaults
1 guest and 0 members have recently viewed this.
The top 3 point earners from 14th Dec 2025 to 21st Dec 2025.
| PDStig |
|
|
|---|---|---|
| Gabri |
|
|
| sholzy |
|
|
There are no events at this time
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;
What are the different defaults.type that can be specified ?
Cheers
Ade
Try:
defaults.type='inline';
If it doesn't work right away, I will have another look.