Questions tagged [cms]
Denotes questions for the CMS section.
701
questions
0
votes
1
answer
8
views
Magetno 2.4.3-p3 no folders show up in wysiwig interface - where to put new config.xml
No folders show up in wysiwig interface in 2.4.3-p3
I have read this --> https://developer.adobe.com/commerce/php/tutorials/backend/modify-image-library-permissions/
and this --> Media folders ...
0
votes
1
answer
23
views
How to manually create a html link to another store view in CMS content?
I need to insert a link to CMS content that will point to the same site's different store view. How can I do that?
0
votes
0
answers
24
views
Hide the Cookie Banner on certain pages
I have a product widget page which I put in an iframe of an external site.
I need to deactivate the cookie message for this, suggestions?
3
votes
2
answers
755
views
Unable to save block changes using Page Builder in 2.4.5 EE
I'm Unable to save block changes using Page Builder in Magento 2.4.5 EE
Issue mostly found in google chrome, brave, edge all with windows operating systems.
however i tried to replicate the issue in ...
0
votes
0
answers
13
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) {...
0
votes
1
answer
20
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 ...
0
votes
1
answer
287
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 &...
-1
votes
1
answer
36
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....
5
votes
0
answers
208
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
0
answers
124
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
vote
1
answer
22
views
bundle product not creating from admin cms
Error:Stock with id "1" doesn't exist
1
vote
1
answer
182
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
372
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>
&...
1
vote
2
answers
255
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
192
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
912
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
227
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
34
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
115
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
238
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.
...
1
vote
2
answers
2k
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/...
0
votes
1
answer
97
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
741
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
72
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
1k
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?
0
votes
2
answers
811
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
vote
1
answer
358
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://...
0
votes
1
answer
66
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
231
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
38
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
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
1
answer
104
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....
0
votes
1
answer
151
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
39
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
827
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 ...
1
vote
1
answer
1k
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
223
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 ...
1
vote
1
answer
203
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 ...
14
votes
3
answers
13k
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 ...
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
644
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
214
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?
<...
1
vote
2
answers
62
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?
0
votes
1
answer
122
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
732
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
85
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
846
views
How to Show Static CMS block in Magento 2 html file?
I want to Show Static CMS block in Magento 2 html file.
1
vote
0
answers
92
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
0
votes
1
answer
335
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
260
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" ...