Questions tagged [cms]

Denotes questions for the CMS section.

2
votes
1answer
30 views

while saving admin cms pages getting 404 not found only for files in magento 2

while saving admin cms pages getting 404 not found page in magento 2 already permission for pub/media 777 var 777 how i can solve this i'm using magento 2.1.11 Edit1: I created new cms ...
1
vote
3answers
32 views

How to redirect page to cms page ie.(carrer.html) via controller file?

Mage::getSingleton('core/session')->addSuccess('Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.'); $this->_redirect('*/*/'); return;
3
votes
1answer
24 views

Magento 2.3 How to create custom cms page url?

I have use Magento 2.3 Question: How to modify custom CMS page URL structure? For example: I want to this type of page link. http://mydomainxyz.com/parent-service/childpage At present we are only ...
3
votes
0answers
57 views

Magento 2.3.1 CE Tinymce Error

We have upgraded Magento from 2.2.3 CE to 2.3.1 CE successfully. But we are facing few issues with the Tinymce js from admin end product edit page and cms pages etc.. when using Show/Hide Editor.. ...
0
votes
0answers
22 views

Magento 2.3CE CMS Suggestions for previous BlueFoot users

So at the moment, we are in the early stages of moving from 2.1 to 2.3. We've really benefitted from using Bluefoot CMS on 2.1 and most of our site content is built using it. It is as far i'm aware ...
1
vote
1answer
36 views

How do you configure a dynamic block for a customer segment in M2C?

Using Magento Commerce (nee EE) 2.3.1, how do you configure a Dynamic Block to render for a specific customer segment? The stock Magento documentation: https://docs.magento.com/m2/ee/user_guide/cms/...
0
votes
0answers
15 views

Magento Backend CMS Page And Block pages continously loading

After Searching in the block and page loading continously since a week and tried this Magento2 Error: "Something went wrong with processing the default view and we have restored the filter to its ...
0
votes
1answer
36 views

Magento 2: Header and footer not loading in custom module's CMS layout

I am developing a custom theme which inherits from Magento/blank. I am attempting to develop a CMS homepage layout within a custom module. I have created the module and successfully applied the ...
1
vote
0answers
15 views

cms pages and block is not loading in backend

CMS pages and blocks won't load in the backend. It keeps loading and loading without not showing any pages or blocks. I reindex, compile, clear cache... But nothing changed. Any help would be much ...
0
votes
1answer
28 views

How to add iframe tag in CMS page in Magento 2.2

How to add iframe tag in CMS page in Magento 2.2 <iframe src="https://google.com" frameborder="0" width="500" height="900"></iframe>
1
vote
1answer
56 views

Using {{store}} directive to get url for different store view

Scenario: In a static block, I need to generate the url for a specific page but not in the current store view, but to a specific store view / website. Question: Is there a combination of parameters ...
0
votes
1answer
34 views

how to check customer logged in or not in cms block page in magento 2

i have cms custom header page i want to check when click on (custom header) it will check customer logged in or not i already try this $objectManager = \Magento\Framework\App\ObjectManager::...
0
votes
0answers
20 views

magento 1,8 - 1,9 - html - cms -problem

My problem: magento 1.8 in page or block if i write: <a href="#"> <div class="class_1"> demo test </div> </a> and click "save" and i recheck the cose the html become <...
1
vote
0answers
42 views

Using inline SVG in the wysiwyg/backend cms elements

How can i get the wysiwyg/backend cms editor to accept inline svg code, i want to make the svgs stylable which means they need to be injected. Yes i can inject them via javascript, but this causes ...
4
votes
1answer
71 views

How to set cms block to category in Magento 2 programmatically?

I would like to add CMS block to a category programmatically, how to achieve it?
0
votes
2answers
43 views

How to get programmatically only enable CMS pages in Magento 2?

I want to get only enable CMS pages I merge my custom array and CMS pages as shown below: <?php namespace Vender\Module\Model\Config\Source; use Magento\Cms\Model\Config\Source\Page; /** * ...
2
votes
1answer
39 views

How to call a CMS page in another CMS page in magento 2

I have two CMS pages in magento 2 . I want to call one cms page to another cms page. anyone can help me.
2
votes
0answers
32 views

How to edit source of the index page in Magento

I am a professional PHP developer, it's been like 2-3 days since I am trying to work with magento. My task is to optimize the index page. Thing is, I can not edit the "actual" source of index page. ...
2
votes
1answer
281 views

Programmatically create a wysiwyg editor for frontend magento 2.3

I don't see any examples in frontend of magento for this case. Wonder how to add editor field from php class instead template When try to call wysiwygConfig->getConfig() in my block class i got error ...
2
votes
0answers
278 views

Should i use tinymce or tinyMCE in magento 2.3 and also usage for backward compatible

From magento 2.3 i see core team integrated new version of tinymce. It's a good thing. Maybe future they will add more editor for magento. But i have a confuse a bit when to use wysiwyg through below ...
6
votes
2answers
211 views

store_url does not render link correctly

I am using this link in my static CMS block <a href="{{store_url='produkte/insektenschutz/fenster/spannrahmen.html'}}"> but it renders as https://www.mysite.de/produkte/insektenschutz/fenster/ ...
0
votes
0answers
23 views

Magento 2 Add custom field (dropdown value) to CMS page

I want to add a dropdown value to CMS page, and I have found this link https://www.magevision.com/blog/post/add-custom-field-to-cms-page-magento-2/ about how to add a custom field to CMS page, and it ...
0
votes
0answers
309 views

Magento 2.3 File validation failed when uploading SVG image in CMS

I created a module, to override vendor/magento/module-cms/etc/di.xml, since SVG format is not supported by default This is how di.xml looks like in my module. <type name="Magento\Cms\Model\...
0
votes
1answer
27 views

CMS wyswig images wrong path

In blocks or cms pages I'm trying to add an image (Magento 2). But after selecting an image and choosing insert (from insert image popup) image URL of the image is wysiwyg/image.jpg and preview is ...
1
vote
1answer
22 views

Magento - Should I stop to write JS/CSS directly in the backend in CMS pages?

In Magento you can create CMS pages. It is also possible to add CSS and JS code, directly to the page, which I sometimes do for rather smaller changes and style fixes and such, because then that ...
0
votes
2answers
203 views

Change Default Web URL

I want to change the url of the index page for magento 2 store. I changed the Default Web URL to "custom", but when I go to site.com/custom it gives me a 404 and the index page is still site.com/cms
0
votes
0answers
12 views

Content not appearing after adding two text content types

I've gone through the Magento admin control panel to Content > Content Types > Select Section (For us it is called "0-Home") > Manage Fields and added two text fields, not required, no max ...
0
votes
0answers
10 views

Custom checks after save or preview in content manager

The goal is simple enough, but I'm a total Magento noob and don't know how to accomplish this. We have a specific two column content block that has an image on the left hand column and text on the ...
0
votes
1answer
218 views

How to fix error in magento 2.3.0

When I go to my admin page, the Sign In panel which is supposed to display ,isn't displaying. Instead I'm only getting this plain background color. The default store front (localhost/magento/) shows ...
0
votes
1answer
172 views

Mageplaza Magento 2 Products Slider Category ID not working?

https://github.com/mageplaza/magento-2-product-slider When using the CMS shortcode for selecting a category: {{block class="Mageplaza\Productslider\Block\CategoryId" template="...
0
votes
0answers
30 views

How can i modify or choose what my Magento datalayer shows?

I'm in an ecommerce project with a store that is using Magento. I configured in the CMS the Google Tag Manager connection writing the container code and activating the option Data Layer as the image ...
0
votes
0answers
33 views

Weird issue killing CMS homepage everyday (Magento 2.3.0)

So I am having a weird issue... Everyday at different times, the CMS Homepage goes blank. I have set up alerting to tell me when it happens. The fix has been to SSH in and run cache:flush and ...
1
vote
0answers
65 views

editing content pages and configuration hangs (spinning donut)

This has happened to me twice now: I get the site installed, I get the template installed, and eventually I start customizing the site and the content pages in the backend stop loading. The first ...
0
votes
0answers
9 views

Dual CMS setup login to Magento from primary site

We have a dual setup for our website, most of the site is served up on another CMS but the commerce side is all Magento 2. The primary CMS doesn't have any frontend logins for users but we need to ...
0
votes
2answers
34 views

Block type error

I accidentally removed a space then suddenly the code below became 1 line spacing instead of 0 and I can't bring it back. {{block type="bannerslider/default" name="bannerslider.bannerslider" template=...
0
votes
1answer
53 views

Override footer content with custom cms blocks?

Is there a way to "delete" all current footer content, and put a single cms block in there? I want to manage all its content in a simple cms block. Designing a custom footer seems to be very ...
0
votes
1answer
86 views

how to get shipping methods in cms(in admin panel) but not programmatically using php magento 2?

Actually i am trying to get selected shipping methods from checkout page in cms(in admin panel). Here I want to put if else condition in cms content only with selected shipping Method. Actually i ...
0
votes
3answers
86 views

How to programmatically create multiple CMS pages at once?

I am working in Magento 2 and I am needing to create multiple CMS pages all at one time. I am trying to set up an Install script to do this all at once. Every tutorial and search that I look up shows ...
0
votes
2answers
176 views

Unable to get CMS page identifier

I am trying to get CMS page identifier with Mage::getSingleton('cms/page')->getIdentifier(); in a footer.phtml but for some reason I am getting no-route on all the pages. It used to work before ...
0
votes
1answer
253 views

Put a trailing slash at the end of CMS URL without redirection

I would to put a trailing slash at the end of my CMS URL, but without make redirection when it's possible : I want to put this slash when the URL is build. In the BO, in CMS page, we can define url ...
0
votes
0answers
271 views

Add canonical link to CMS page | Trailing slash added after URL

I have a problem with my CMS page. I found out that the page is available under two versions: www.mydomain.co.uk/MyCMSpage www.mydomain.co.uk/MyCMSpage/ I am not sure why the trailing slash ...
2
votes
2answers
322 views

Magento 2 - CMS Block redirection to url

I would like to be able to redirect to a url when the user clicks the category. I have this menu, with the News category. This category loads a CMS Block: And only having a script which redirects me ...
2
votes
0answers
79 views

How to get store currency in cms blocks in magento2

I have a CMS block which will be used in multi-currency stores. I have a content,lets say "Grab it for USD 100".Now I want this to change based on store currency selected.How can i achieve this on ...
5
votes
2answers
91 views

Invalid Blocktype

I try to help a user on magento.stackexchange. So I created his extension and created a new CMS site with the following content: {{block type="atwix/cmsattr" template="atwix/cmsattr/list.phtml"}} I ...
1
vote
1answer
104 views

Cannot create static Cms block from backend

Whenever I try to create a new static block from the backend, I always get the notice "Could not save block, sorry something went wrong". Checking logs I found this exception of the violation of ...
0
votes
2answers
521 views

Get product list by ids in CMS page [ Magento 2 ]

I want to create cms page and will show products list as per given ids in admin editor.
0
votes
0answers
17 views

Custom session unset after calling cms static block after upgrade to magento2.2.5 from magento2.2.4

I have set some session values and that I am using after sending an email. Up to version 2.2.4, it was working fine, but as I upgrade Magento to 2.2.5 then I am not getting session values after ...
1
vote
1answer
69 views

magento 1.X show cms block depends on language

In default RWD theme, it uses the following code for showing company footer <default> <reference name="footer"> <block type="cms/block" name="cms_footer_links" before="...
1
vote
1answer
58 views

Adding CMS Blocks to a Products, not programatically - Magento 2

I would like to add additional information to specified products, we would like to use the block as a template where we would just need to add this block to the product content so it would appear ...
3
votes
4answers
360 views

Why my homepage doesn't display a cms block content?

I have programmatically created a CMS block, which is working fine. I've added some content into it and trying to display it in my homepage. My block identifier is this_is_a_block_identifier. I'm ...