magento / pwa-studio

🛠Development tools to build, optimize and deploy Progressive Web Applications for Magento 2.
https://developer.adobe.com/commerce/pwa-studio/
Open Software License 3.0
1.06k stars 682 forks source link

[PageBuilder]: PageBuilder shows plain Html code on browser when using CMS page content #4139

Closed aakankshagrover-VT closed 1 year ago

m2-assistant[bot] commented 1 year ago

Hi @aakankshagrover0206. Thank you for your report. To speed up processing of this issue, make sure that you provided sufficient information. Add a comment to assign the issue: @magento I am working on this


Join Magento Community Engineering Slack and ask your questions in #github channel.

aakankshagrover-VT commented 1 year ago

image

glo80771 commented 1 year ago

Hi @aakankshagrover0206 , Can you please provide the HTML code which you provided on the cms page which will be useful for us to reproduce the issue?

aakankshagrover-VT commented 1 year ago

Hi @glo80771 , This is the code stored in the homepage in magento admin panel. I am trying to display this widget code accessing from magento backend and displaying it on studio storefront. This section is under: Content > Pages > HomePage

CMS homepage content goes here123.

{{widget type="Magento\CatalogWidget\Block\Product\ProductsList" title="test" show_pager="1" products_per_page="5" products_count="10" template="Magento_CatalogWidget::product/widget/content/grid.phtml" conditions_encoded="^[1:^[type:Magento||CatalogWidget||Model||Rule||Condition||Combine,aggregator:all,value:1,new_child:``^]^]" page_var_name="peylvx"}}

glo80771 commented 1 year ago

Hi @aakankshagrover0206 , Can you please give the expected behavior of this code which has to be displayed in the studio storefront?

aakankshagrover-VT commented 1 year ago

Hi @glo80771 The expected code should be like this: image

glo80771 commented 1 year ago

Hi @aakankshagrover0206 , Thanks for the details.

Able to reproduce and hence confirming this issue.

glo42707 commented 1 year ago

@adobe export issue to JIRA project PWA as Bug

glo42707 commented 1 year ago

@adobe export issue to JIRA project PWA as Bug

glo42707 commented 1 year ago

@adobe export issue to JIRA project PWA as Bug

glo82145 commented 1 year ago

@adobe export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 1 year ago

:x: You don't have permission to export this issue.

glo42707 commented 1 year ago

@adobe export issue to JIRA project PWA as Bug

glo42707 commented 1 year ago

@adobe export issue to JIRA project PWA as Bug

github-jira-sync-bot commented 1 year ago

:x: Cannot export the issue. This GitHub issue is already linked to Jira issue(s): https://jira.corp.adobe.com/browse/PWA-3169

Tarun50745 commented 1 year ago

@aakankshagrover0206 , I am able to see widget ( as expected ) on storefront, Please let us know if we missed something .

Followed below steps -

  1. Created a new row ( in Home page / new page ) and a column inside row.
  2. Added Text element and HTML code element respectively inside the columns .
  3. Pasted below code ( shared in earlier comment ) inside both the Text and HTML code elements.

CMS homepage content goes here123. {{widget type="Magento\CatalogWidget\Block\Product\ProductsList" title="test" show_pager="1" products_per_page="5" products_count="10" template="Magento_CatalogWidget::product/widget/content/grid.phtml" conditions_encoded="^[1:^[type:Magento||CatalogWidget||Model||Rule||Condition||Combine,aggregator:all,value:1,new_child:``^]^]" page_var_name="peylvx"}}

Result: On the storefront Code pasted inside Text element ( left column in screenshot ) is displaying widget ( as expected ). Code that pasted inside HTML code element** ( right column in screenshot ) is displaying plain code .

Below is the screenshot,

Screenshot 2023-07-18 at 4 31 47 PM
glo42707 commented 1 year ago

clsoing the ticket since no updates from reporter since last 2 weeks, reporter can reopen issue in case still reproducible or any furthure updates.