镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

List/Grid view for Photos in Configuration in stead of hardcoded in PHP #50851

Closed as duplicate

Description

@hroling

In the file /apps/files_sharing/lib/DefaultPublicShareTemplateProvider.php is a setting to make the photos in Grid view and not standard in list view.

Every time I update Nextcloud, this file wille be overwritten and I need to change this setting

$folder->assign('showgridview', false); 
to
$folder->assign('showgridview', true); 

Can you make this a configuration setting in the Configuration.php file so I don't have to change it anymore?

Activity

  1. joshtrichards commented on Feb 17, 2025

    @joshtrichards
    Member

    Implemented already (in v32)

  2. hroling commented on Feb 17, 2025

    @hroling
    Author

    Implemented already (in v32)

    Haha, Missed that completely.

    Thanks.

  3. hroling commented on Feb 17, 2025

    @hroling
    Author

    I'm no sure what I do wrong.
    And what must I do to make it Grid-view?

    My list-view link
    https://castlefest.hroling.nl/nextcloud/s/fkXP2yG2brm4zTr

    I understand that I need to change te link and add '/apps/gallery/' and add #view-grid but that is not working.
    https://castlefest.hroling.nl/nextcloud/apps/gallery/s/fkXP2yG2brm4zTr#view-grid

  4. hroling commented on Feb 18, 2025

    @hroling
    Author

    Implemented already (in v32)

    @joshtrichards

    Can you reopen this request because this is not the same as you mentioned. The Photos app was the old app and this is about the new function.

  5. joshtrichards commented on Feb 18, 2025

    @joshtrichards
    Member

    Please see #50739 where the feature is implemented. This has nothing to do with the Photos app (which is also a current app; it's not old, but in any case is not related to this feature).

    Do note it's not in a released version yet. It's in the upcoming v32 code base.

  6. hroling commented on Feb 18, 2025

    @hroling
    Author

    Please see #50739 where the feature is implemented. This has nothing to do with the Photos app (which is also a current app; it's not old, but in any case is not related to this feature).

    Do note it's not in a released version yet. It's in the upcoming v32 code base.

    I understanded it wrong. I thought is was already implemented because of the link to old item.

  7. hroling commented on Feb 27, 2025

    @hroling
    Author

    Updated to v31 but grid view is not possible anymore.
    The hard coded setting '$folder->assign('showgridview', true); ' is gone and I cannot find a alternative.

    What can I do to change the view to grid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions