Questions tagged [cms]

Denotes questions for the CMS section.

Filter by
Sorted by
Tagged with
0 votes
0 answers
10 views

Magento 2 How to write plugin for getImageHtmlDeclaration function

This is the original path - vendor/magento/module-cms/Helper/Wysiwyg/Images.php I want to put a plugin for this function getImageHtmlDeclaration() I want to pass different HTML tag if (!$renderAsTag) {...
  • 47
0 votes
0 answers
4 views

How to use plugin for Magento\Cms\Controller\Adminhtml\Wysiwyg\Images\Thumbnail execute() function

I want to put an around plugin. This is the core file vendor/magento/module-cms/Controller/Adminhtml/Wysiwyg/Images/Thumbnail.php The main purpose is on the execute function I want to upload a custom ...
  • 47
0 votes
1 answer
22 views

Magento 2 How to upload mp4 and gifs in wysiwyg

Hi I am trying to upload MP4 or GIFS in wysiwyg. But when I try to upload it I am getting the following error: For MP4 "We don't recognize or support this file extension type." For GIFS &...
  • 47
-1 votes
1 answer
20 views

getting blank page after creating custom layout

I have created custom layout as below created 3-columns-double-footer.xml file inside Magento_Theme/page_layout folder <?xml version="1.0"?> <layout xmlns:xsi="http://www....
0 votes
0 answers
42 views

Magento 2 : Add Image Field on CMS Page

Here is my code app/code/Vendor/Module/etc/db_schema.xml <?xml version="1.0"?> <schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:...
  • 1
0 votes
0 answers
56 views

Magento2 Static Block Widget Renders As Raw Code Instead Of HTML

I have a CMS-created page where I used the "Insert Widget" option to insert a static block into the textarea field, which ended up as: {{widget type="Magento\Cms\Block\Widget\Block"...
  • 1
0 votes
0 answers
16 views

Magento2 - How to Uplode video using browse in page builder custom component

I am using magento 2.4.3 and create a custom component in Page Builder and i have to add video upload browse feature. Does anyone know how can i add video upload functionality?
1 vote
1 answer
15 views

bundle product not creating from admin cms

Error:Stock with id "1" doesn't exist
1 vote
1 answer
80 views

Remove content when CMS page is viewed?

Magento 2.4 Is it somehow possible to remove parts of the content of a CMS page before it is shown to the user? Is there a renderer I could overwrite? Example: The content of my CMS page is this: ...
1 vote
1 answer
172 views

Adding layout handles to blocks in cms pages

We have a cms page with a content like this: <p>Lorem Ipsum</p> <div>{{block class="Vendor\Module\Block\Feature" block_id="feature_wrapper_block"}}</div> &...
  • 308
1 vote
2 answers
134 views

how to add cms block in magento without using our own theme and in app/code?

How to Add CMS Block in Magento2 programatically. I want to add a cms block in app/code insstead of app/design using layout or xml files.
1 vote
1 answer
132 views

Magento2: url redirection in controller_action_predispatch observer with setting post parameters

I am working on cms page restriction for specific customer group.I am using controller_action_predispatch event observer to check whether the current page is set for restriction and the current ...
0 votes
2 answers
536 views

Unable to Login to Magento 2.4 Admin Page in localhost

As the title states, I am unable to log in to the default admin user in Magento 2.4 after installation using composer. I have tried changing the password through PHPMyAdmin using the following command:...
0 votes
1 answer
163 views

Using a block markup tag strips out elements of block created in pagebuilder

When I create a block with pagebuilder that includes background images for the rows, image elements and buttons they all get stripped out when using the {{block id=''}} tag on another page There is ...
0 votes
0 answers
27 views

Magento 2.4 how to upload image for spcific node in hierarchy

Does anyone have experience how to upload an image for each individual node? I added the added input field via the plugin to the form. I would also be very grateful if anyone could have a solution for ...
0 votes
1 answer
74 views

Why I can't edit XMLs in my Custom Layout Update via CMS?

I had layout updates via XML configurations per CMS page via admin panel as you can see below. After updating my Magento 2.3 I got another option instead. How could I add my layout changes with an ...
0 votes
1 answer
170 views

Filtering products by category on custom cms page

Could someone somehow guide me on how I can make the product list filter by clicking on one of the three buttons. I have a custom page, and on it 3 buttons with categories. E.g. category A, B and C. ...
  • 27
1 vote
1 answer
808 views

Magento 2.4.3 CMS Page custom layout update

I am trying with no luck to update a layout to a specific page only to our Magento 2.4.3 store. CMS Page URL key is: product-finder I have created in child theme folder this xml file: app/design/...
  • 1,022
0 votes
1 answer
58 views

How to display cms block in product page if some attribute is set to yes

I want to display cms block if product has the attribute set to yes. A product may have multiple attributes set to yes, and may display multiple cms blocks. Attribute label text will be a BlockId. It ...
1 vote
1 answer
553 views

Magento 2.4.2 invalid date format by default, can't change date format in UI component

I would like to specify the date format for a new date field in my CMS page form. I have created a new cms_page_form.xml field which links to a date field in the MySQL database table cms_page. However,...
0 votes
0 answers
55 views

We're sorry, an error has occurred while generating this content,shows on home page in magento 2

We're sorry, an error has occurred while generating this content. This Error in home page get occures in magento 2.
2 votes
2 answers
773 views

Magento 2 How to create CMS block with HTML content programmatically

In Magento 2.4.x, How to create CMS block with HTML content (Text, Image with div structure) programmatically in Page builder section?
  • 1,114
0 votes
2 answers
591 views

magento 2 get CMS page URL path

In magento 2.4.3, How to get the current page URL in block file. I tried this solution, but not working. My Sample URL: https://magento.com/questions-sample Expected Data to get: questions-sample
  • 1,114
1 vote
1 answer
213 views

Adding new WYSIWYG text style or format

I would like to add a new WYSIWYG text style, similar to the below image. As per the official documentation, I have managed to add a new style called "Introductory Paragraph": https://...
  • 3,107
0 votes
1 answer
51 views

Magento 2.3.4 - CMS_Block Query taking up resource

Hope someone can help because I'm aghast. So we have a 2.3.4 store (migrated from 1.9) which we put live recently. After an hour or so, the site completely collapsed under the traffic (apparently it ...
1 vote
1 answer
175 views

How to add a toggle true/false field in cms page general section

In Magento 2.4.2, How to add a toggle true/false field in cms page general section along with the default cms page save?
  • 1,114
0 votes
1 answer
37 views

Magento apptha extension frontend not navigable after installation

I am using the Apptha module for magento2 , I had installed the module as well and it appears in my admin panel , but when I navigate to http://localhost:8080/marketplace , I see this result : Apptha ...
0 votes
1 answer
768 views

Magento 2: How to use redirect in Router.php

I am trying to redirect a cms page to a custom controller. in router.php I can check the current URL, If the current URL is as an example if it matches /test-url i want to do a redirect to /test-url-...
  • 47
0 votes
1 answer
58 views

Magento 2 CMS Page URL redirect 2.3.5

I want to redirect a custom URL and change the URL path ONLY. If my URL is www.domain.com/about-company or www.domain.com/product-a-faq I want these to be shown in different URL examples -> www....
  • 47
0 votes
1 answer
125 views

Content staging for different magento installations

We currently have an integration and a production stage for our magento shop. The goal is that we configure and create content (products, cms, ...) on the integration stage and deploy them on the ...
0 votes
1 answer
29 views

CMS Custom layout update not showing in Magento 2.3.4

I've read the patch notes about moving the Custom Layout Update to a layout file in Magento 2.3.4 so I thought I was doing this correctly but something must be off because I still don't see the option ...
  • 537
0 votes
3 answers
603 views

Magento 2 - All CMS pages are with content blank

In my server with: elasticsearch7, apache 2.4.29, mariaDB 10.4 and php 7.4 I imported my Magento 2.4.2 site. Everything works correctly except for the CMS pages that have empty content and in fact the ...
  • 417
1 vote
1 answer
681 views

Magento 2 - How to have a custom "add to cart" button in CMS page?

So I am trying to add "Add to Cart" button in my CMS page. In one CMS page, I will have one item and multiple "Add to Cart" buttons. I'm wondering how can I do this? All the ...
0 votes
1 answer
216 views

Can't get module to show in static block

Using Magento 2 I created a cms static block that points to {{block class="Inchoo\ModalOverlay\Block\etc" template="modal_overlay.phtml"}} I followed this guide on how to create ...
  • 47
1 vote
1 answer
161 views

Magento 2.3.5 This identifier is reserved for "CMS No Cookies Page"

I have 4 stores: Each store have the same enable-cookies I would like that each cookie cms url key have a different url so that is relevant to that store E.G: French store URL Key: activer-les-cookies ...
12 votes
3 answers
10k views

CMS and Block content warning Magento 2.4.2

Does anyone have any information or details on the following warning that I am seeing in the 2.4.2 CMS and Block content areas on saving? Temporarily allowed to save HTML value that contains ...
  • 123
0 votes
1 answer
30 views

Other Method for call a custom customer attribute

I am doing an internship in a company, and my internship supervisor wants me to display customer data. More precisely, on the back office in the customer information there is a custom attribute that I ...
0 votes
1 answer
465 views

How can I restrict SPECIFIC CMS pages from being seen by non logged in customers?

I found solutions for redirecting non logged in users to the login page for all CMS pages, but I only want to restrict a few CMS pages. How can I specify which pages to restrict? My code right now: ......
0 votes
1 answer
155 views

Magento Snippet code in CMS not working with double curly braces {{}}

My 3rd party plugin company ask me to Snippet in this code to my CMS page. but Magento did translate something else for the double curly braces. How can I Snippet in below code to the CMS page? <...
  • 602
1 vote
2 answers
50 views

Currency conversion in CMS page

I need to put some prices into a CMS page. How can I insert and display them accordingly to the currency selected?
  • 145
0 votes
1 answer
99 views

How to add navigation menu in a custom landing page

I am trying to create a Landing Page for my Magento site. I created this by creating a new CMS page through Admin/Content/Pages. I'm wondering if I can add a custom sticky navigation menu to this page?...
0 votes
2 answers
600 views

Magento 2 - Add button to the Header links

I am trying to add a button called "social media" to be beside the Storeview switcher. I tried to follow the answer in: Magento 2 - Add a Custom Button to header.phtml So I created a CMS ...
0 votes
1 answer
30 views

Magento directing all link for pages and admin to old domain except the homepage

I have done all magento things which were supposed update the core_config data table setup:di:compile setup configured base_url through command line and also done with n98 My site home page is only ...
1 vote
1 answer
639 views

How to Show Static CMS block in Magento 2 html file?

I want to Show Static CMS block in Magento 2 html file.
  • 586
1 vote
0 answers
78 views

Shop by brand on CMS Page

How to shown Layered navigation like shop by categories or shop by brand on left side of CMS page, in Magento 2.3.5
  • 141
0 votes
1 answer
252 views

How to enable AdobeStock integration?

I have a Magento 2.3.4 installed and I installed the AdobeStock integration via the official repository. https://github.com/magento/adobe-stock-integration How could I enable it via the admin panel?
1 vote
0 answers
226 views

Add custom to field to CMS page based on template in Magento 2

I have several custom fields I added to my CMS pages but I only want them to show up on the backend if the admin user selects a specific template. For example, the text field "doctor name" ...
  • 163
0 votes
1 answer
1k views

Hide CMS static block programmatically in Magento 2

I need to Hide static cms block "block-id-1" from frontpage programmatically customer group based. I need to add event to hide cms static block or any other method. I want to use admin ...
2 votes
2 answers
409 views

How to Edit Layout Update Xml for CMS Page in Magento 2?

I just migrated from Magento 1.9.3.4 to Magento 2.3.4, I noticed some of the page content is missing when I accessed the page that was created from cms page. Then I look at the cms page edit page, ...
  • 135
1 vote
0 answers
318 views

Getting error while reindexing in magento2

While re indexing in magento2 getting below error Fatal error: Uncaught TypeError: Return value of Magento\PageBuilder\Model\Stage\Preview::isPreviewMode() must be of the type boolean, null returned ...

1
2 3 4 5
14