Questions tagged [cms-pages]
Denotes questions related to CMS pages.
281
questions
0
votes
0
answers
13
views
How can I add static block with arguments in cms page?
I would like to add that static block
{{block class="MSP\ReCaptcha\Block\Frontend\ReCaptcha" name="msp-recaptcha-newsletter" template="MSP_ReCaptcha::msp_recaptcha_newsletter....
0
votes
0
answers
24
views
Magento2 Rest API Endpoint cmsPage rest/all/V1/cmsPage custom_layout_update property
we are running a Magento 2.4.3 Store and want to roll out a fresh Magento 2 instance with just one click.
For this purpose, we have a set of static cms-pages that we want to deploy every time.
We are ...
0
votes
0
answers
9
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
37
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
35
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
142
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
27
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
74
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
26
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
0
answers
28
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 &...
0
votes
0
answers
17
views
Why does my plugin work only when I add Page Result object as a dependency?
I'm trying to add a layout update to a specific group of CMS pages. I created a plugin class that applies a layout update if a certain condition is met. The plugin works if I use the following class ...
1
vote
1
answer
56
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
1
answer
593
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
46
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
261
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
13
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
48
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
768
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
93
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
71
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
232
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
24
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
262
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
414
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.
...
2
votes
1
answer
201
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
83
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
82
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
94
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
63
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
69
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
14
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
104
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
138
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
55
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
101
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 ...
0
votes
3
answers
158
views
Magento 2 how to work with CMS blocks and CMS pages on repository?
I have created many blocks but as far as I know only by exporting them from database is the only way to have their code. Is there another way to have the files? because pushing and commiting .sql to ...
0
votes
1
answer
48
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
26
views
Magento 2.1.9 can't find save button class
I am trying to get a save button on a dynamic row field to fire but on loading a CMS page I get the following error:
Class Brancom\PageExtensions\Block\Adminhtml\DynamicRows\Edit\SaveButton
...
1
vote
1
answer
106
views
Magento 2 - WYSIWYG uploaded images resized to 500px wide. How can I prevent this?
When uploading large images to be used within a block or page, Magento 2 resizes them to 500px width.
I don't want that instead I want them left at their original size.
I have no extensions installed ...
0
votes
1
answer
607
views
Magento 2.3.5 how to add canonical links for cms pages having slash at the end of url-key
I am using magento 2.3.5p1 community edition.
I want to add canonical links in cms pages.
As in 2.3.5 magento we have to create a separate layout update file as cms_page_view_selectable_[cms-url-key]_[...
1
vote
0
answers
19
views
Display Custom CMS Fields in Magento 2 Template
I'm can't seem to find any documentation on how to get custom CMS fields in a PHTML template in Magento2. The following snippet did it in Magento2:
Mage::getBlockSingleton('cms/page')->getPage()-&...
2
votes
1
answer
268
views
Can you redirect CMS page to custom frontend route magento 2.3.5
I am trying to redirect a cms page to a new route which I have created for frontend.
I am not sure if we can redirect to the new custom module route frontend with a config in admin area.
My aim is I ...
0
votes
1
answer
258
views
Magento 2.3.5 Custom Layout Update
I need to use a layout update for cms page.
I've created a file called cms_page_view_selectable_home_HomePageBlocks.xml
<?xml version="1.0" encoding="utf-8"?>
<page xmlns:xsi="http://www.w3....
2
votes
2
answers
242
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, ...
2
votes
1
answer
847
views
Cms page custom layout update file for multiple pages - Magento 2.3.4
In Magento 2.3.4 you can add custom layout update via XML files, using
cms_page_view_selectable_<PAGEIDENTIFIER>_<CUSTOMNAME>.xml
format.
But what if I want to apply this layout update ...
0
votes
1
answer
231
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.
0
votes
1
answer
233
views
CMS homepage content not changed
I am new to Magento.
I have setup the Magento 2.3.4.
I am seeing below homepage:
To change the message CMS homepage content goes here., I have made changes in cms_page table like below:
Restarted ...
2
votes
1
answer
268
views
Magento 2: Page template is coming blank
I created a theme in magento 2 and in that theme i created a new page layout.
I can see the page layout in my magento admin dashboard.
So i assigned the page layout to my homepage.
But now my ...
1
vote
0
answers
77
views
Custom Form Call using CMS page will not show Magento 2 Captcha code
When i call form using direct URL
http://192.168.1.35/m234/customemail/index/index OR http://192.168.1.35/m234/customemail/ it will show Captcha code but when i call this same form using CMS page like
...
0
votes
1
answer
73
views
Magento2: How to add Paypal checkout and Paypal credit button on custom .phtml file?
How to add the Paypal checkout and Paypal credit button in the custom .phtml file?
I want to add the same as a mini cart/my cart PayPal button on the custom page.