Skip to content

FileManager path parameter based on model id #49

Open
@delfinn55

Description

@delfinn55

In the application, the publication of posts occurs according to the following scenario:

The user creates an entity, and first uploads pictures to the posts/{post_id} folder. Next, the admin must select a preview image from these pictures and publish the post.

The 'preview_image' field in the backpack admin panel uses the 'browse' field type. Is there any way to tell FileManager the folder to open based on a specific model id? (eg posts/139)

php artisan backpack:version:

PHP VERSION:

PHP 8.2.13 (cli) (built: Nov 21 2023 09:55:59) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.13, Copyright (c) Zend Technologies
with Xdebug v3.2.1, Copyright (c) 2002-2023, by Derick Rethans
with Zend OPcache v8.2.13, Copyright (c), by Zend Technologies

LARAVEL VERSION:

v9.52.16@082345d76fc6a55b649572efe10b11b03e279d24

BACKPACK PACKAGE VERSIONS:

backpack/crud: 5.6.1
backpack/devtools: 1.3.5
backpack/filemanager: 2.0.1
backpack/generators: v3.3.17
backpack/langfilemanager: 4.1.0
backpack/logmanager: v4.0.11
backpack/permissionmanager: 6.0.17
backpack/pro: 1.6.6
backpack/settings: 3.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions