Questions tagged [cms-pages]
Denotes questions related to CMS pages.
296
questions
1
vote
1
answer
87
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 ...
0
votes
0
answers
21
views
How to use multiple "Contact Us" forms (now that it cannot be called in CMS)
My site used to have a Contact Us CMS page which called the standard "Contact Us" form and a Returns CMS page which called a very slightly edited template of the form.
It is now apparently ...
5
votes
0
answers
192
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:...
0
votes
1
answer
308
views
How to create different URL of a Single page in magento 2
How can i make different url of a single page
0
votes
1
answer
63
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 ...
1
vote
0
answers
89
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 ...
1
vote
0
answers
53
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 ...
0
votes
0
answers
12
views
Magneto 2 form style
We have problem with Fonts. General Text is samall and Form biger. How WE can changes that, whithout big Frontend. Best in content> Pages
0
votes
2
answers
30
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
0
votes
0
answers
74
views
Tried Uploading a GIF through the pagebuilder in Magento Admin
I tried uploading a GIF from the page-builder through Magento admin panel, but it gets converted to PNG. Can someone tell me if Magento 2.4.4 supports gif or not? or is there another way to upload GIF ...
1
vote
0
answers
153
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 ...
4
votes
0
answers
197
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 ...
0
votes
1
answer
177
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 ...
0
votes
0
answers
374
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 ...
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="...
0
votes
1
answer
232
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 ...
0
votes
1
answer
125
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 ...
1
vote
1
answer
127
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’ ...
1
vote
0
answers
39
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 ...
0
votes
2
answers
129
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 ...
0
votes
1
answer
57
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 ...
1
vote
1
answer
698
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
68
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.
0
votes
1
answer
590
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 ...
0
votes
1
answer
33
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 ...
0
votes
1
answer
297
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 &...
1
vote
1
answer
216
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?
0
votes
3
answers
2k
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
...
0
votes
1
answer
123
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 ...
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-...
0
votes
0
answers
28
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
0
votes
1
answer
92
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....
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 ...
2
votes
1
answer
440
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 ...
0
votes
1
answer
232
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="...
4
votes
1
answer
553
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 &...
0
votes
1
answer
35
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 ...
0
votes
3
answers
775
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 ...
2
votes
1
answer
597
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.
...
3
votes
1
answer
508
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 ...
0
votes
1
answer
224
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 ...
0
votes
1
answer
216
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 ...
0
votes
1
answer
189
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): ...
1
vote
1
answer
191
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 ...
1
vote
1
answer
106
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 ...
0
votes
2
answers
88
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 ?
0
votes
1
answer
289
views
I want to make full width of all cms page. now it is max-width of 1280px. i want to make it to 1720px. how can i change
I want to change max-width, but it is not overriding in custom-theme. how can i change
Here is the css style .
@media (min-width: 768px), print
.navigation, .breadcrumbs, .page-header .header.panel, ....
0
votes
1
answer
283
views
Button click to show custom static block in popup in magento 1.9
I have a custom static block and on my CMS page, I have a button, when the user clicks the button, I need to show the static block in the popup. How can I achieve this in Magento 1.9, can anyone help ...
0
votes
0
answers
103
views
GraphQl does not return CMS page having CMS block
I have created CMS Page which have custom CMS block.
{{block class="Magento\Framework\View\Element\Template" template="Vendor_Test::cms/vendortest.phtml"}}
This CMS Page gets ...
1
vote
1
answer
400
views
How to call block function in CMS page?
Version: Magento 2.4 EE
I want to show the Recently Ordered Items Block in CMS page but when I call the block in page, the block is not displaying as expected and the page is empty.
In CMS page, my ...