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

Can not add widget to specific Page Layouts #9537

Open
gizmocn opened this issue May 7, 2017 · 24 comments
Open

Can not add widget to specific Page Layouts #9537

gizmocn opened this issue May 7, 2017 · 24 comments
Labels
Area: Content Component: Widget Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Progress: ready for dev Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch

Comments

@gizmocn
Copy link

gizmocn commented May 7, 2017

Try to add widget to specific page layouts, but in admin panel no page layouts list is empty

Preconditions

  1. Magento 2.1.6
  2. PHP 7.0.15

Steps to reproduce

  1. Magento Admin panel -> Content -> Widgets
  2. Click "Add Widget" button, then select any widget and theme.
  3. Click Add Layout Update button and then select Display on to Page Layouts

Expected result

  1. In Page dropdown, All Page Layouts should be list out.

Actual result

  1. Actual, there are no Page Layouts listed.
    widget_page_layouts
@AlexWorking
Copy link

Hello, @gizmocn. Based on Your issue an internal ticket was created - MAGETWO-70278. You'll be informed after the issue is resolved. Thank's for applying.

@veloraven veloraven added the Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development label Jun 27, 2017
@magento-engcom-team magento-engcom-team added 2.1.x Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development bug report Component: Cms Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed and removed G1 Passed labels Sep 5, 2017
@magento-engcom-team
Copy link
Contributor

@gizmocn, thank you for your report.
We've created internal ticket(s) MAGETWO-70278 to track progress on the issue.

@magento-engcom-team magento-engcom-team added 2.2.x Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release labels Oct 11, 2017
@jissereitsma
Copy link
Contributor

I bumped into this issue as well. However, it seems that simply none of the Page Layouts (like 1column.xml) have been added to this widget selection box because of reasons. I created a sample module (as part of a training during which this was raised as a question) that demonstrates the right code: https://github.com/yireo-training/magento2-example-custom-page-layout For reference, I'm also including a question that Alan Storm raised on this, which got me on the right way: https://magento.stackexchange.com/questions/102467/what-is-a-magento-2-design-abstraction

In short, a regular layout file (layout/example.xml) always starts with a page node that could now include a label (label="My example") and a design_abstraction="page_layout". In the current system, all of the layouts mentioned under the widget selection box discussed here, have set design_abstraction="custom". By changing custom into page_layout, layouts also appear in the Page Layout option group in the selection box.

However, the terminology leads me to think something is off. It would make sense if the custom value refers to handles within the regular layout and the page_layout value refers to handles within the page layout (like 1column). Unfortunately, the whole design_abstraction attribute is not allowed to be used in a page layout file, because it is not included in its XSD. As a workaround, in my example module, I've simply included the page layout in the regular layout, which works as well.

@goranhorvathr
Copy link

goranhorvathr commented Oct 2, 2018

Hello everyone! Any status update on this?

Also please note that when adding a custom cms page in magento 2.2.5 that custom cms does not get displayed in widget layout update for specified pages. Page type does not get updated at all. This should be native functionallity tbh to add widgets to any page you want even if it is a newly made CMS page without manually updating the page_types.xml in your own module.

Steps to repilcate:

  1. Create new cms page. Content -> Pages
  2. Create new widget Content -> Widget
  3. Go to layout updates
  4. Select Specified page - check the dropdown list which will not have the newly created page on it

I noticed you are manually adding types in vendor/magento/module-cms/etc/frontend/page_types.xml.

Are we missing something here?

@sdzhepa sdzhepa removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Ready for Work Gate 4. Acknowledged. Issue is added to backlog and ready for development labels Dec 7, 2019
@V0RTX
Copy link

V0RTX commented Jan 31, 2021

Just letting this feed know that I have the same problem with Magento 2.4 CE. I found by using Display On: Specified Pay | Page: CMS Pages (All) enabled those pages not appearing in the Page Drop-down to then display the widget on those "missing" pages.

@stale stale bot removed the stale issue label Jan 31, 2021
@stale
Copy link

stale bot commented Apr 17, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 14 days if no further activity occurs. Is this issue still relevant? If so, what is blocking it? Is there anything you can do to help move it forward? Thank you for your contributions!

@stale stale bot added the stale issue label Apr 17, 2021
@dverkade
Copy link
Member

Posting a comment. Issues should not be automatically closed.

@stale stale bot removed the stale issue label Apr 18, 2021
@jesse-thomas
Copy link

jesse-thomas commented May 17, 2021

Same issue here! Has anyone found a solution to add a widget to all 2 col right pages?

@Lewischarlton93
Copy link

Issue still present in Magento 2.4.2

@engcom-Delta engcom-Delta self-assigned this Jul 30, 2024
Copy link

m2-assistant bot commented Jul 30, 2024

Hi @engcom-Delta. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

    1. Add/Edit Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
    1. If the issue is not relevant or is not reproducible any more, feel free to close it.

@engcom-Delta
Copy link
Contributor

@magento give me 2.4-develop instance

Copy link

Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.

Copy link

@engcom-Delta
Copy link
Contributor

Hi @gizmocn ,

Thanks for your reporting and collaboration.
We have verified the issue in latest 2.4-develop instance and it is reproducible.

Hence, Confirming the issue.

Steps to reproduce:-

  1. Navigate to Widget listing page. Content > Elements > Widgets
  2. Click on "Add Widget"
  3. Select Type and Design theme
  4. Click on Continue button
  5. Click on "Add Layout Update"
  6. Click on Display on drop down
  7. Select page layouts
  8. Observe no page layouts are listed
page layouts

Thanks.

@engcom-Delta engcom-Delta added Area: Content Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed and removed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Jul 30, 2024
@github-jira-sync-bot
Copy link

✅ Jira issue https://jira.corp.adobe.com/browse/AC-12652 is successfully created for this GitHub issue.

Copy link

m2-assistant bot commented Jul 31, 2024

✅ Confirmed by @engcom-Delta. Thank you for verifying the issue.
Issue Available: @engcom-Delta, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself.

Copy link

m2-assistant bot commented Mar 10, 2025

Hi @engcom-November. Thank you for working on this issue.
Looks like this issue is already verified and confirmed. But if you want to validate it one more time, please, go though the following instruction:

    1. Add/Edit Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
    1. If the issue is not relevant or is not reproducible any more, feel free to close it.

@engcom-November engcom-November removed their assignment Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: Content Component: Widget Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Priority: P3 May be fixed according to the position in the backlog. Progress: ready for dev Reproduced on 2.4.x The issue has been reproduced on latest 2.4-develop branch
Projects
None yet
Development

No branches or pull requests