Build: Add Support of cover image for pages and also grid view for list of pages#21
Conversation
…in chapter show page with test case and update create test case for page and add two test case one for update cover image for page and another for reset cover image for page
|
|
||
| public function getPageCover(int $width = 440, int $height = 250): string | ||
| { | ||
| $default = 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='; |
There was a problem hiding this comment.
@brijm-improwised default should be configurable using env
There was a problem hiding this comment.
They implement this for book and for book they give this way only
that why i give this way
There was a problem hiding this comment.
book they give this way only - @brijm-improwised Can you give example?
|
@brijm-improwised wow, this is exactly what I am looking for! Hope it can pass review :) |
|
So how can we use this feature? Would be great to get grid view with pictures.. |
|
@brij-mandaliya Looks like there are conflicts |
Yes , I am working on that. |
Cool, when do you think this might be checked in? |
…into feature/add-cover-image-for-page
- Added `image_id` field to `entity_page_data` model and migration - Updated `PageQueries` to select `image_id` and reference entity_page_data columns explicitly - Modified `PageRepo` to handle cover image updates consistently for drafts and revisions - Extended `EntityCover` and `EntityHtmlDescription` to support `Page` entities - Adjusted `BookContents` queries to use entity_page_data.draft - Updated Blade views to use `coverInfo()->getUrl()` for page list items - Introduced sidebar view-toggle for pages in chapter actions - Removed `ContainerTrait` from `Page` and replaced defaultTemplate with descriptionInfo
I’m working on this and have updated the logic. I’ll push a commit once it’s resolved. |
…container_data table - Move draft status from entities table to entity_container_data table - Add fillable fields to EntityContainerData for image_id, sort_rule_id, and description fields - Update all draft queries to use entity_page_data.draft join condition - Enhance ReferenceChangeContext to track URL and permalink mappings during cloning - Update ReferenceUpdater to process reference changes in descriptions and page content - Modify cover image access to use coverInfo() method instead of cover property - Fix entity-list-item class naming from chapter to page - Update copy tests to verify reference updating during entity cloning BREAKING CHANGE: Draft status is now stored in entity_container_data table instead of entities table
Fixes Issue : Support Page Cover Images and Page Grid View
Closes #18
Changes proposed
update time
- Note That : At time of create page if you save draft then cover image will not save
Check List (Check all the applicable boxes)
Screenshots
Note to reviewers