Skip to content

Add image preview functionality to tree.php - #760

Merged
giuscris merged 2 commits into
getformwork:2.xfrom
sgirard84:patch-1
Oct 22, 2025
Merged

Add image preview functionality to tree.php#760
giuscris merged 2 commits into
getformwork:2.xfrom
sgirard84:patch-1

Conversation

@sgirard84

Copy link
Copy Markdown
Contributor

Allow child page options to set a preview image to display in page tree. Like this:

options:
default: false
children: false
num: date
imagePreviewField: coverImage

Allow child page options to set a preview image to display in page tree. Like this:

options:
    default: false
    children: false
    num: date
    imagePreviewField: coverImage

@giuscris giuscris left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sgirard84 for the idea and the implementation — well done!

I’ve reviewed your changes to ensure the new code fits well with the existing structure and avoids redundancy.

Could you please update the code accordingly?

Comment thread panel/views/pages/tree.php Outdated
Comment thread panel/views/pages/tree.php Outdated
Comment thread panel/views/pages/tree.php Outdated
Comment thread panel/views/pages/tree.php Outdated

@giuscris giuscris left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @sgirard84 !

@giuscris
giuscris merged commit ce11d2d into getformwork:2.x Oct 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants