Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editContentlet Macro does not edit the correct content #30316

Open
weiyiwang-dotcms opened this issue Oct 9, 2024 · 0 comments
Open

editContentlet Macro does not edit the correct content #30316

weiyiwang-dotcms opened this issue Oct 9, 2024 · 0 comments

Comments

@weiyiwang-dotcms
Copy link

Parent Issue

No response

Problem Statement

When you click on the edit icon generated by the #editContentlet macro for a content item that was pulled by a dotContent.pull() method and exists on multiple pages, you will get the prompt to choose whether you want to make changes on "All Pages" or "This Page". After making the selection, and clicking "Edit", the edit page for the vtl file that pulled the content will be returned, rather than the edit page for the contentlet.

Steps to Reproduce

Start up a 23.10.24 dotCMS instance with the starter zip. (docker compose file included)
docker-compose.yml.zip

Replace the /application/destinations/destination-listing.vtl file with the one provided in the zip folder.
destination-listing.vtl.zip

Navigate to the /destinations/index page in the dotCMS admin UI

Go to the Edit mode

Click on one of the pencil icons for the content items that are rendered

Click on the "All Pages" selection and click "Edit"

The edit page that pops up will be for the vtl file that pulled the content rather than for the content itself.

Video attached: https://www.loom.com/share/a3ab024c1ad6484983bb6f08cfc6c443?sid=426c6105-3713-4e43-b936-8a0d231250a5

Acceptance Criteria

Have the editContentlet modal open the correct content for editing.

dotCMS Version

23.10.24

Proposed Objective

Technical User Experience

Proposed Priority

Priority 2 - Important

External Links... Slack Conversations, Support Tickets, Figma Designs, etc.

https://dotcms.slack.com/archives/C01N0AU1NUC/p1727879552367689
https://dotcms.freshdesk.com/a/tickets/27741

Assumptions & Initiation Needs

No response

Quality Assurance Notes & Workarounds

No response

Sub-Tasks & Estimates

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

2 participants