Skip to content

Commit 8ed8018

Browse files
committed
remove browse and browse multiple from docs
1 parent f20b881 commit 8ed8018

File tree

2 files changed

+0
-82
lines changed

2 files changed

+0
-82
lines changed

7.x-dev/crud-columns.md

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -983,39 +983,6 @@ Show a thumbnail image stored in the db column as `base64` image string.
983983

984984
<hr>
985985

986-
<a name="browse"></a>
987-
### browse <span class="badge badge-pill badge-info">PRO</span>
988-
989-
Show link to the selected file.
990-
991-
```php
992-
[
993-
'name' => 'browse',
994-
'type' => 'browse',
995-
'label' => 'Browse',
996-
],
997-
```
998-
999-
<hr>
1000-
1001-
<a name="browse_multiple"></a>
1002-
### browse_multiple <span class="badge badge-pill badge-info">PRO</span>
1003-
1004-
The ```browse_multiple``` column will output a list of files and links, when used on an attribute that stores a JSON array of file paths. It is meant to be used inside the show functionality (not list, though it also works there), to preview files uploaded with the ```browse_multiple``` field type.
1005-
1006-
Its definition is very similar to the [browse_multiple *field type*](/docs/{{version}}/crud-fields#browse_multiple-pro).
1007-
1008-
```php
1009-
[
1010-
'name' => 'photos',
1011-
'label' => 'Photos',
1012-
'type' => 'browse_multiple',
1013-
// 'disk' => 'public', // filesystem disk if you're using S3 or something custom
1014-
],
1015-
```
1016-
1017-
<hr>
1018-
1019986
<a name="ckeditor"></a>
1020987
### ckeditor <span class="badge badge-pill badge-info">PRO</span>
1021988

7.x-dev/crud-fields.md

Lines changed: 0 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,55 +1160,6 @@ Input preview:
11601160

11611161
<hr>
11621162

1163-
<a name="browse"></a>
1164-
### browse <span class="badge badge-pill badge-info">PRO</span>
1165-
1166-
This button allows the admin to open [elFinder](http://elfinder.org/) and select a file from there. Run ```composer require backpack/filemanager && php artisan backpack:filemanager:install``` to install [FileManager](https://github.com/laravel-backpack/filemanager), then you can use the field:
1167-
1168-
```php
1169-
CRUD::field([ // Browse
1170-
'name' => 'image',
1171-
'label' => 'Image',
1172-
'type' => 'browse'
1173-
]);
1174-
```
1175-
1176-
1177-
Input preview:
1178-
1179-
![CRUD Field - browse](https://backpackforlaravel.com/uploads/docs-4-2/fields/browse.png)
1180-
1181-
Onclick preview:
1182-
1183-
![CRUD Field - browse popup](https://backpackforlaravel.com/uploads/docs-4-2/fields/browse_popup.png)
1184-
1185-
<hr>
1186-
1187-
<a name="browse-multiple"></a>
1188-
### browse_multiple <span class="badge badge-pill badge-info">PRO</span>
1189-
1190-
Open elFinder and select multiple files from there. Run ```composer require backpack/filemanager && php artisan backpack:filemanager:install``` to install [FileManager](https://github.com/laravel-backpack/filemanager), then you can use the field:
1191-
1192-
```php
1193-
CRUD::field([ // Browse multiple
1194-
'name' => 'files',
1195-
'label' => 'Files',
1196-
'type' => 'browse_multiple',
1197-
// 'multiple' => true, // enable/disable the multiple selection functionality
1198-
// 'sortable' => false, // enable/disable the reordering with drag&drop
1199-
// 'mime_types' => null, // visible mime prefixes; ex. ['image'] or ['application/pdf']
1200-
]);
1201-
```
1202-
1203-
The field assumes you've cast your attribute as ```array``` on your model. That way, when you do ```$entry->files``` you get a nice array.
1204-
**NOTE:** If you use `multiple => false` you should NOT cast your attribute as ```array```
1205-
1206-
Input preview:
1207-
1208-
![CRUD Field - browse_multiple](https://backpackforlaravel.com/uploads/docs-4-2/fields/browse_multiple.png)
1209-
1210-
<hr>
1211-
12121163
<a name="base64-image"></a>
12131164
### base64_image <span class="badge badge-pill badge-info">PRO</span>
12141165

0 commit comments

Comments
 (0)