Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cms]

Denotes questions for the CMS section.

1
vote
0answers
14 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
37 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? Thanks in advance.
0
votes
2answers
34 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
34 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
22 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. ...
1
vote
1answer
71 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
87 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 ...
4
votes
2answers
177 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/ ...
2
votes
0answers
48 views

Magento Product Slider Missing

My Website is not show product slider missing please help me how to fix this issue before update magento 1.9 show this slider but now not show please check screenshot attachments and guide me complete ...
0
votes
0answers
18 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
188 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
19 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
21 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
1answer
51 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
10 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
8 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
110 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
60 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
18 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
30 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 ...
0
votes
0answers
37 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
8 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
32 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
42 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
68 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
53 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
147 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
151 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
184 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
220 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
57 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
89 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
82 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
313 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
14 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
46 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
47 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
327 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 ...
0
votes
1answer
57 views

CMS Image Padding - Magento 2

Have added two images to same line, they auto fill the width - but how can I remove the padding between the images? And remove the "line break" so I can have e.g. 4 images (2x2) without any padding ...
2
votes
2answers
103 views

How to out put a nest block in cms?

like this <block class="Magefan\Blog\Block\Post\PostList\Item" name="blog.posts.list.item" template="post/list/item.phtml"> <block class="Magefan\Blog\Block\Post\Info" name="blog.post....
1
vote
1answer
305 views

Change magento2 cms page layout

I am using 2 column left in home page. It is a cms page. In responsive i need to load as <div class="sidebar sidebar-main"></div> <div class="column main"></div>
0
votes
1answer
103 views

How to upload svg iamges in CMS pages in magento 2

I wish to add svg images in cms pages in backend. While uploading .svg images, it shows invalid file. Please provide me a solution to upload svg images in cms pages in magento 2
0
votes
2answers
119 views

How can i add static block in magento on category page?

I want to add a static block on my website Category page. This is the link of that page. https://flowerportal.in/online-flower-delivery/all-cities/bangalore I have just created some banners for ...
1
vote
2answers
41 views

How to use block from module on CMS page?

I have a block class called Fekete_Newsletter2Go_Block_Form. <?php class Fekete_Newsletter2Go_Block_Form extends Mage_Core_Block_Template { private $n2g; private $session; private $...
0
votes
1answer
130 views

Magento 2.2.5: How Cms Page Search Work?

Like i said in the title, i dont know how the Search in Catalog work. As far as i know, the Search is render through this code in this ui-component: C:\xampp\htdocs\magento\vendor\magento\module-cms\...
0
votes
1answer
78 views

CMS page not found

I have a strange error. I created a new CMS page with url mtclp/20 and got an error page 404. If I change url on just lps, it works. If I try with, for example, test/30, It also works. Other pages ...
0
votes
1answer
32 views

How to display a category on my homepage?

I'm just making my own Magento website and I was wondering if it is possible to display a specific category? I have two categories and I would like to display them separately. I'm using this CMS code:...
0
votes
0answers
170 views

Edit widget in CMS page Magento2

I have a widget added in my CMS page like this. It is added by default from a theme I purchased. How can I edit this JSON encoded widget as Magento is not able to filter out products. {{widget ...
0
votes
0answers
76 views

Best Practice for Url Key when using CMS Home Page and multiple store views in Magento 2?

Wondering how to approach this situation: We have two stores and corresponding store views, store1 and store2, which can be accessed via site.com/store1 and site.com/store2 Each store is linked to a ...
0
votes
1answer
380 views

Magento 2.2.4 particular page cache disable using the observer OR any other method [closed]

I want to create observer for particular page cache disable.