Questions tagged [cms]

Denotes questions for the CMS section.

Filter by
Sorted by
Tagged with
1 vote
1 answer
29 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> &...
user avatar
  • 288
1 vote
2 answers
29 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.
user avatar
0 votes
1 answer
23 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 ...
user avatar
0 votes
2 answers
66 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:...
user avatar
0 votes
1 answer
82 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 ...
user avatar
0 votes
0 answers
19 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 ...
user avatar
0 votes
0 answers
19 views

Button setting window doesn't open in the Magento 2 page builder

The Magento version is 2.3.4. When I tried to open the setting for the 'Button'in the elements, it just doesn't do anything. https://prnt.sc/26mxl92 There should have been something wrong with the ...
user avatar
  • 23
0 votes
1 answer
20 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 ...
user avatar
0 votes
1 answer
47 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. ...
user avatar
  • 27
0 votes
1 answer
159 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/...
user avatar
  • 912
0 votes
1 answer
39 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 ...
user avatar
1 vote
1 answer
185 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,...
user avatar
0 votes
0 answers
28 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.
user avatar
1 vote
1 answer
187 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?
user avatar
  • 1,094
0 votes
2 answers
224 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
user avatar
  • 1,094
1 vote
0 answers
47 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://...
user avatar
  • 3,087
0 votes
0 answers
128 views

How to add image with link in CMS Block using Page builder in Magento 2?

In Magento 2.4.2, I am trying to add the CMS Block with image and link Image should be based on Device - Responsive ie., for web page view one image, for mobile view different image. How to add this? ...
user avatar
  • 1,094
0 votes
1 answer
39 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 ...
user avatar
0 votes
0 answers
65 views

Layout update for multiple cms pages using custom handle

I want to make some adjustments to most of the custom created cms pages with some exceptions however. To achieve this I added a block and removed another block from cms_page_view.xml I want to revert ...
user avatar
  • 269
1 vote
1 answer
71 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?
user avatar
  • 1,094
0 votes
1 answer
24 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 ...
user avatar
0 votes
1 answer
319 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-...
user avatar
  • 45
0 votes
1 answer
49 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....
user avatar
  • 45
0 votes
1 answer
50 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 ...
user avatar
0 votes
1 answer
25 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 ...
user avatar
  • 527
0 votes
3 answers
288 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 ...
user avatar
  • 297
1 vote
1 answer
405 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 ...
user avatar
0 votes
1 answer
156 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 ...
user avatar
  • 47
1 vote
1 answer
73 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 ...
user avatar
12 votes
4 answers
7k 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 ...
user avatar
  • 123
0 votes
1 answer
29 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 ...
user avatar
0 votes
1 answer
228 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: ......
user avatar
0 votes
1 answer
95 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? <...
user avatar
  • 518
0 votes
2 answers
34 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?
user avatar
  • 115
0 votes
1 answer
51 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?...
user avatar
0 votes
1 answer
379 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 ...
user avatar
0 votes
1 answer
21 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 ...
user avatar
1 vote
1 answer
397 views

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

I want to Show Static CMS block in Magento 2 html file.
user avatar
  • 526
1 vote
0 answers
48 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
user avatar
  • 121
0 votes
1 answer
171 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?
user avatar
1 vote
0 answers
207 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" ...
user avatar
  • 163
0 votes
1 answer
801 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 ...
user avatar
2 votes
2 answers
267 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, ...
user avatar
  • 125
1 vote
1 answer
302 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 ...
user avatar
0 votes
2 answers
811 views

data-mage-init breaks in cms static blocks or pages - how do i get an accordion?

I have been trying to have some blocks with collapsible content, but to put them in cms blocks so the text can be maintained by a normal human I have found, thanks to previous stack discussions, that ...
user avatar
  • 1,549
0 votes
1 answer
49 views

Where is the email template for the new user, created by admin from cms. Magento 2

I have to make an email template, that is sent when the administrator creates a new account. I made a template, but in cms I can't see where it is used. I was looking for it in: - stores/configuration/...
user avatar
0 votes
1 answer
271 views

How to add cms page URL in sitemap.xml

How to created sitemap.xml last week in my production site. Today I have created a new CMS page. How do I add this page's URL to sitemap.xml? Please provide me a solution.
user avatar
  • 2,398
0 votes
1 answer
29 views

Make specific page in magento as not cacheable

I want to make a specific cms page to be set as a non-cacheable page. Is there is a way to add XML code in layout update to achieve same I'm calling block in page HTML with code as below <p>{...
user avatar
1 vote
2 answers
58 views

Changing icon on CMS homepage

I am new to Magento. I am trying to make changes in CMS homepage. The page looks like this: I am able to change page title and heading from cms_page table. But not able to find way to change the ...
user avatar
0 votes
1 answer
145 views

JS gets automatically removed from CMS page

I am trying to add some JS to the CMS homepage. I tried to add an external js file as well as adding the code directly. See code below. When I save the CMS page and test everything the js works fine. ...
user avatar
  • 269

1
2 3 4 5
14