Skip to main content

Questions tagged [cms-pages]

Denotes questions related to CMS pages.

Filter by
Sorted by
Tagged with
0 votes
1 answer
30 views

Display Layered Navigation on CMS page

I am displaying the products on the CMS page using the pagebuilder with such conditions. Product are loads on the frontend and it works well. Now i want to add the layered navigation on the left side, ...
Sunny Rahevar's user avatar
1 vote
2 answers
23 views

magento 2.4 login page meta title does not get localized

I have a multi store view magento where each store view has its own language but I have an issue with translating some pages. For regular pages (aka pages that I create via backend in Content > ...
Lou Nik's user avatar
  • 455
0 votes
2 answers
161 views

Magento 2 : When try to edit HTML content of CMS Page or Block, show success message but don't save content

I am using Magento 2.4.6, I can't edit the content of CMS Page. When I change the HTML content of CMS Page and hit save button it gives the success message but doesn't actually save the content. This ...
Magecomp Product Team's user avatar
0 votes
0 answers
86 views

How to get CMS page content in JS in Magento 2?

I am using page builder to create cms pages. I require to have a preview button on the cms page. after clicking preview, we store the cms page form data in a separate table. I added one template file ...
Devidas's user avatar
  • 3,358
0 votes
2 answers
175 views

Get URL from other website in CMS Page/Page builder

I have two websites in my Magento site and I want to put the url from the other website in the footers by cms_page using page builder. I know that i can get the base url using {{config path="web/...
Camilo Torres's user avatar
0 votes
0 answers
83 views

How can I set a different home page depending on customer group (including people not logged in) on Magento 2.4?

I want to change homepage based on customer group. I tried defining a plugin in this post Magento 2: Change hompage on login , But it doesn't seem to work for me. I could override the CMS default ...
Michel Meyran's user avatar
0 votes
2 answers
131 views

Cannot save key URL of cms page is "/cookie" despite of that don't have any url in URL Rewrites of Module SEO in Magento 2

I created a CMS page named Cookie but when I save it with the key URL "cookie" it cannot save and shows an error
PhanHuy's user avatar
1 vote
1 answer
399 views

How To Disable Page Builder for specific form field in Magento 2?

I want to disable the page builder for specific fields in my custom module. I want to show the default wysiwyg editor. and all other page I need page builder with wysiwyg editor Here is my UI ...
user avatar
5 votes
0 answers
243 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:...
Ekta's user avatar
  • 101
0 votes
1 answer
559 views

How to create different URL of a Single page in magento 2

How can i make different url of a single page
user110698's user avatar
0 votes
1 answer
118 views

getting "URL key for specified store already exists." error when trying to apply data patch to update a cms page

I am trying to update a cms page through a data patch but, the patch is not applying. I get this error below Unable to apply data patch Vendor\Module\Setup\Patch\Data\CreateRegistryPage for module ...
LosMos's user avatar
  • 121
1 vote
0 answers
131 views

magento 2.4.4.p2 cms page save Custom layout update is invalid

I am trying to save the existing cms page getting Custom layout update is invalid after upgrading 2.3 to 2.4.4 p2 getting this error. if I save a new page saving properly works fine I have checked the ...
Pawankumar's user avatar
1 vote
0 answers
70 views

How to modify datasource of CMS page

I added some custom fields in the admin cms page form. Also, I added an observer to be able to save my custom fields into my custom table. However, I am now at my final step and I can't seem to modify ...
user109937's user avatar
0 votes
2 answers
52 views

Magento2 cms page display 404 via mysql query import data to cms_pgae

In Magento CE 2.4.5, I imported the page data in the cms_page table by sql, and 404 appeared in the access address. What should I do if the page cannot be found
sq y's user avatar
  • 137
1 vote
0 answers
191 views

How to display the category tree on the left sidebar on one particular CMS page?

Magento 2.4 I tried displaying the category tree on the left sidebar on one of my CMS pages. The url key / identifier is mypage.html. I already set the layout to be 2 columns with left sidebar. Now I ...
user4095519's user avatar
5 votes
0 answers
245 views

Magento 2: Multistore view different language url key language switch page is redirect to home page

Magento 2.4.5 Facing issue with multistore view language change CMS page is redirecting to homepage. We have two store view English and Spanish. Spanish store view CMS page name is add with Spanish ...
Kirti Nariya's user avatar
  • 3,051
1 vote
1 answer
271 views

How to apply custom styles in a CMS page?

I am trying to add custom styles on 404 CMS page. I added html on admin side of CMS 404 page. The html for 404 page is <h1 class="no-route-section-one-heading heading"> {{trans'Excuse ...
LosMos's user avatar
  • 121
1 vote
0 answers
437 views

Magento 2 How to load Js first before the page load

I have created a custom module in which I created a popup modal in custom location.js with require js on and add this js in default.xml file. On the first page load popup is open after the page load i ...
Divya Rawat's user avatar
0 votes
1 answer
48 views

Call phtml using block code

login to magento admin. Open any cms page and write block code in content section. {{block class="Magento\Framework\View\Element\Template" name="test_file" template="...
kiran's user avatar
  • 597
0 votes
1 answer
542 views

magento2.4 how to upload Pdf file to gallery and insert them to cms page

I have to upload PDF files from admin gallery and insert them to CMS-page, I can see extensions available for product attributes PDF upload but I need to use them an CMS-page through gallery. Kindly ...
vijayalakshmi's user avatar
0 votes
1 answer
149 views

convert third party text editor value to HTML in Magento 2

I'm trying to convert text editor content to html, There are lots of solution over the internet to convert wysiwyg text to html but in my case the text is not coming from the wysiwyg, it's coming from ...
Muhammad Shoaib's user avatar
1 vote
1 answer
205 views

Unable To Add Contact Form To CMS Page In Magento 2?

I added below info but contact form not showing app/design/frontend/company/name_theme/Magento_Contact/templates/form.phtml Then, insert the contact form to the CMS page {{block type=’core/template’ ...
kiran's user avatar
  • 597
1 vote
0 answers
47 views

Rewrite Rules are not working for CMS Page URL

I have added new Rewrite Rules for two CMS pages to redirect from one to other, For Example: In Marketing > Seo-Search > URL Rewtite added one rule: /shipping to /shippment But still not ...
Shoaib Fareed's user avatar
0 votes
2 answers
176 views

Magento 2 add JS only on specific static page

I have created one static page, I wanna load specific JS only on specific static page, Here my static page name is ship_custom_page If I have to load specific JS in product page so I am using ...
Niraj Patel's user avatar
0 votes
1 answer
61 views

Magento 2.4 how to get first n characters from CMS page content

I want to display certain CMS pages on categories and products, which the administrator assigns to the category or product. They would appear as cards. Somehow first the title of the CMS page and then ...
Franci Melink's user avatar
1 vote
1 answer
877 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,...
drgandynt's user avatar
0 votes
0 answers
80 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.
Sonali Ghule's user avatar
0 votes
1 answer
731 views

magento 2: Add custom <script> tag in <head> section, only for specific CMS page

I have a CMS page in Magento 2, for which I want to add <script> tag that will be included in the <head> section of this page only. I do not want this <script> tag to appear on any ...
Kade's user avatar
  • 1
0 votes
1 answer
36 views

Maggento2 how to create new cms page

Magento2.4.2 community version create multi-site multi-store multi-view situation, add CMS page in the background, how to remove the head and tail of the code, and how to add custom CSS files and JS ...
sq y's user avatar
  • 137
0 votes
1 answer
397 views

Magento 2 Add CAPTCHA to login form in createblock

I am building a widget to allow the Login form to display on a CMS page. I am able to get the form to display, but when I try to login, I am redirected to the customer/account page and get the error &...
cjochum's user avatar
  • 131
1 vote
1 answer
273 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?
Saravanan DS's user avatar
  • 1,126
0 votes
3 answers
3k views

Page Builder does not appear in Magento 2

Magento 2.4.2-p1 Porto theme In: Stores > Settings > Configuration - in the left panel under General > Content Management > Advanced Content Tools - Enable Page Builder is set to Yes ...
Allysin's user avatar
  • 260
0 votes
1 answer
139 views

Add downloadable zip file to cms page

Using Magento2.3.4 Enterprise Cloud we need to create a cms page that will list links to various zip files that will contain marketing material. My issue is where do I upload the zip file too as in ...
Jayreis's user avatar
  • 725
0 votes
1 answer
1k 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-...
Tj1997's user avatar
  • 47
0 votes
0 answers
29 views

Can you do custom routing for cms page?

Can you change the url from cms page to a custom url? Is that something we could do with routes and show the cms page content
Jack Brooks's user avatar
0 votes
1 answer
153 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....
Tj1997's user avatar
  • 47
1 vote
2 answers
3k views

How to design a mobile responsive design using Page builder Magento 2.4.2

Good Morning We are trying to design my home page fully using page builder, but the page builder is not working in responsive we had tried the page builder options to adopt in responsive but we can ...
Sabareesh's user avatar
  • 358
2 votes
1 answer
611 views

Custom CMS page XML identifier when URL key contains a "/"

I need to create an XML file for a custom CMS page but the URL key contains a "/": i.e. my/page-id Is there a way to do the equivalent to cms_page_view_id_my/page-id.xml for this? I've tried ...
rushtoni88's user avatar
0 votes
1 answer
255 views

How can I add breadcrumbs in content CMS page from backoffice Magento 2?

I have already tried this solution but with no result! I want to display image then breadcrumbs and finally a paragraph [{block class="Magento\Theme\Block\Html\Breadcrumbs" template="...
chaima's user avatar
  • 1
4 votes
1 answer
691 views

How "cms_block_store" and "cms_page_store" tables are working with Primary keys in Magento?

I have a general doubt in MySql foreign key constraints and Magento. As per MySql, a table should have only one primary key for a table and a Primary key should contain unique values. I checked in &...
Siranjeevi K S's user avatar
0 votes
1 answer
52 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 ...
Jim's user avatar
  • 537
0 votes
3 answers
972 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 ...
Jackom's user avatar
  • 493
2 votes
1 answer
622 views

Magento 2.4.2 - on CMS page save "Unique constraint violation found" issue when using hierarchy

I am facing issue while saving CMS page when page hierarchy assigned to it. When I create a new page and save, it works fine but when I save it again it throws Unique constraint violation found error. ...
Rahul Barot's user avatar
  • 1,122
3 votes
1 answer
635 views

Magento 2 Custom template content will not shown in graphql response of CMS page

I have a CMS page in which I want to show the date e.i Current date OR Date after 5 days etc. So for that I have created a template file and call inside the CMS page. It will show content in Front but ...
Divyarajsinh Dodiya's user avatar
0 votes
1 answer
279 views

Magento 2 - How to display recent order on Homepage?

I know that the "recent orders" section is displayed on customer's dashboard. I am wondering if I can display this "recent orders" on the homepage as well? My website requires ...
Magento_learner's user avatar
0 votes
1 answer
297 views

Magento2 Custom Observer - Page Creation - getPage() within the observer - is not working for newly created pages

I have a custom observer to trigger some code when a page is saved/created. It's working great when I save a page - but it cannot see the new page when I create one - it is running the code but the ...
UrbanwarfareStudios's user avatar
0 votes
1 answer
222 views

Magento 2 can't view blocks or pages in backend

I just did a copy of my live website to set up a dev website but now on my dev website when I try to view the pages or blocks I get a log of errors. 1 exception(s): Exception #0 (ReflectionException): ...
Carter's user avatar
  • 47
1 vote
1 answer
228 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 ...
Juliano Vargas's user avatar
1 vote
1 answer
129 views

Custom layout update not shown for CMS page

I've made a custom layout update file according to the instruction (https://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/xml-manage.html) in 2.4.1, but the option is not displayed for a ...
laketuna's user avatar
  • 6,850
0 votes
2 answers
96 views

Magento 2: How to add a phtml bloxk in cms page only?

I want to add a phtml but this phtml should only visible in all cms page only ? how can I implement this using layout XML method ?
jojo's user avatar
  • 39

1
2 3 4 5 6