Questions tagged [cms-pages]

Denotes questions related to CMS pages.

Filter by
Sorted by
Tagged with
1
vote
2answers
2k views

Magento 2 : Call cms page in anchor tag

I am new in magento2. I saw many question but i can't understand flow. can any one help me how to call cms page in anchor tag ? I tried some code but it is not working. <a href="<?php echo $...
2
votes
1answer
3k views

Magento2: Add JS from Admin CMS page Design “layout update XML”

I did added JS file from design layout update from Admin CMS page- > Design layout update XML , but it showing jQuery is not defined error, When I view source , these files are being added before the ...
4
votes
2answers
3k views

How to retrieve variable from CMS page in Magento 2

In Magento 1.9.x, we can do it like below In CMS page, add content: {{block type="core/template" name="..." my_vars="123,456" template="path-to/test.phtml"}} Create path-to/test.phtml: <?php ...
4
votes
2answers
5k views

How to add a static block on all pages on Magento 2

I want to add a static block on the left side of all pages. Can anyone tell me how to do that?
8
votes
1answer
542 views

Magento 2.1.x EE (Enterprise Edition) - How to enabled and access cms page versioning

Hi i am working on Magento 2.1.x EE and reading the devdocs i got to know magento ee has cms page versioning functionality Where we can preview/publish version wise cms page and we can also track ...
2
votes
0answers
335 views

CMS page is not working

I have added one new CMS page. Its redirecting to homepage if preview clicked. I have also checked with default about-us page but still its redirecting to homepage. It should redirect to 404 Page if ...
0
votes
1answer
81 views

Javascript loading issue in Magento

I am loading an external script on a Magento CMS page. On the CMS page, I have the following div: <div id="feefo-service-review-widgetId" class="feefo-review-widget-service"> </div> ...
2
votes
3answers
4k views

Magento 2 CMS page add custom breadcrumbs

I have tried the below code for Magento 2 cms page custom breadcrumbs, but I got this error : Please correct the XML data and try again. Element 'action': This element is not expected. Line: 3 ...
0
votes
5answers
1k views

Content > Pages not loading in the back end of Magento 2.1.7

Recently we have been experiencing issues when trying to access pages on the back end, the page just doesn't load. We have tried multiple browsers (IE, Chrome, Firefox, Safari) and this had made no ...
0
votes
1answer
105 views

List products by dropdown attribute

I want to have a cms page where I will list all products that have special_offer dropdown attribute with yes value. I found something here but this is work only with the Yes/No attribute. I need to ...
0
votes
1answer
427 views

How to add Child CMS page to Parent CMS page?

I'm Having two pages parent_page child_page and I'm having a child page link inside a parent page. If i click on child page link the url should be www.xyz.com/parent_page/child_page when the url ...
0
votes
2answers
1k views

Magento 1.9- Pass a Parameter to cms page url

I am new to Magento, I need to pass parameters to a cms page created through the backend under the cms section. The steps I followed to create a page are as follows: First of all, I added a new page ...
1
vote
4answers
1k views

My CMS page redirects to homepage - Magento 1.9

Hi i've modified a page url to my page name. I've also changed the url link present on my navigation menu eg: I've changed the page url about-magento-demo-store to about-us. But when I click on the ...
1
vote
1answer
81 views

Specific block not rendering inside of a static block

Works fine in a CMS page. But I need to render this block in a static block: {{block type="catalog/product_list" category_id="37" template="tm/quickbuy/catalog/product/list.phtml”}} The block ...
2
votes
2answers
812 views

How can I get products details on CMS Page - Magento 1.9 [closed]

I need to get products name and thumbnail images on cms page if customer enters sku, they get name, price, and thumbnail images. Customer get short details using sku, if customer enter sku for given ...
1
vote
0answers
343 views

Magento : Layered Navigation on CMS Page is Only Filtering by 'Default Category'

I have a CMS page which displays products filtered by attribute (using 'Product List Plus' Magento extension widget). I am trying to get layered navigation to display on this CMS page to be able to ...
4
votes
1answer
394 views

How does the CMS page admin form data provider gets its data?

Long story short: The CMS page admin form data provider class Magento\Cms\Model\Page\DataProvider, more specific the method getData always returns an array with a single element that contains the data ...
0
votes
1answer
88 views

Call cms page from custom module

I have created an event observer in a module. Observer is called after checkout_card_add event. I want to call a cms page from the module if a certain condition is met. My observer.php file <?...
0
votes
1answer
3k views

magento 2 layered navigation on CMS page or homepage with selected category

I want layered navigation on CMS page with selected cateogry. I am following this link It is showing all category and attribute. But I don't know how to set selected category. For example on Clothing ...
5
votes
3answers
228 views

Prevent CMS page availability on base URL

I have an issue in a Magento 1.9.2.2 store that I can't quite figure out the solution for, so i was hoping for your assistance. There are 2 different store views each serving a different language. ...
1
vote
1answer
831 views

CMS content disappears with custom layout

I'm developing an e-commerce application for a client in Magento 2.1.5. Though this is my first experience with the platform, I have successfully built out a default layout and a handful of ...
6
votes
1answer
2k views

Magento 2: Get WYSIWYG editor's data in frontend?

I add wysiwyng editor in admin Ui form. <field name="content"> <argument name="data" xsi:type="array"> <item name="config" xsi:type="array"> <item name="...
4
votes
1answer
564 views

Extending magento 2 breadcrumbs through XML layout

Is there any method to extending magento 2 breadcrumb through XML layout in cms page in order to add parent page link?
0
votes
1answer
655 views

How can I remove wishlist and compare block pieces form the 404 not found page?

I need to remove wishlist and compare from the not found page. I use CMS to make the not found page. This is what I tried as a Design XML Update, and it didn't work: <referenceContainer name="...
0
votes
3answers
2k views

Is there a way to export static blocks and cms pages in mass from local to online?

I have a localhost version of Magento and another which is already in Hostgator. My changes on files I can ftp quick and easily, of course. But I would like to know if there is some faster way to "...
3
votes
1answer
1k views

How to overide ui component form in magento 2?

I want to add a custom field in cms page form in admin side. cms_page_form is created by using ui component form. How can I override this form in my custom module?
5
votes
3answers
4k views

Magento 2 : Add Hero Image Upload Field on CMS page

How to add image upload field to a CMS page and show this on top of my CMS page as Hero image like shown below? Maybe there are simple solutions/tutorials, but I can't find right one.
4
votes
3answers
5k views

Magento2 Something went wrong while saving the page

I have problem with creating new page from backend it shows me this message: Something went wrong while saving the page. I can edit and save the page but I can't create the new page. any idea??
3
votes
1answer
350 views

magento 1.9.3.2 Custom Image attribute not working on CMS Page

Error: Fatal error: Call to a member function setData() on boolean in C:\xampp\htdocs\magento-1-testing\app\code\core\Mage\Adminhtml\Block\Widget\Form\Container.php on line 141 I have create a ...
1
vote
0answers
583 views

How to call custom created phtml file in Cms page in magento 2?

I am finding a way to call my custom created phtml file in Cms page. The file is located in Magento_catalog > product > bestseller.phtml, And the way which I am trying is - {{block class="Magento\...
0
votes
2answers
255 views

Magento 2: How to load admin login on home page?

I want to display admin login on home page. How can I do this? Any help will be appreciated.
0
votes
1answer
27 views

CMS pages linked to from 2nd level category pages include category path in url and give 404

CMS pages (such as about-us, privacy-policy etc) link fine from root domain (such as domain.co.uk) and from domain.co.uk/category1.html. In this instance then the correct URL is domain.co.uk/about-us ...
1
vote
0answers
27 views

M2 - Have client be able to edit/change header on each CMS Page?

I have a client that wants to be able to change the header themselves through the admin (with css) so it can be different on each CMS page. They want this because their current header is transparent,...
0
votes
1answer
112 views

Get Identifire of CMS Page if it is not active

How to Get Identifier of CMS Page if it is not active. Using CMS Page Collection.
1
vote
1answer
2k views

Magento 2 - Add a template block in a CMS page via layout update

I'm trying to include a new template block in a CMS page in the admin via layout updates. Here is the xml: <block class="Magento\Catalog\Block\Product\View\Description" name="homepage.carousel" ...
1
vote
1answer
1k views

Magento 2 : How to Fetch CMS Page Content Using Search

I want to fetch cms page content using Search.? If anyone have any idea related to CMS Pages Content Search. Can anyone help me?
0
votes
1answer
209 views

Magento 1.9 - Modify CMS pages that are available in one store and aren't available in another

I'm looking for for a way to modify CMS pages that are available in one store and aren't available in another store. First problem is that I cannot filter cms pages the usual way: $collection = Mage:...
0
votes
0answers
77 views

Magento 2.1.2 Content > Pages Loading Loop

I have a problem with my Magento 2 backend only with the pages section. It just is stuck in a Loading loop (see screenshot) I have been looking and asking all over the net and forums without anyone ...
2
votes
1answer
175 views

Creating custom html thumbnails for cms pages - i.e. news section using title and a custom field image

Basically am wondering is if there is a way to use magento as an actual cms system. i.e. i have an html chunk (static block?!) with some parameters (page_image, pagetitle) <div class="thumb"> ...
1
vote
1answer
445 views

Button in CMS page that links to registering page

I am using Magento 1.7. I am designing a CMS page through the WYSIWYG editor in the Admin->CMS->Pages section, with the tool 'Edit HTML source'. I need to add a button in the CMS page that links to ...
4
votes
2answers
801 views

How I can disable cache for one file that include in cms page?

I have including of phtml file in cms page (home page) {{block type="catalog/product_new" product_ids="6747,4652,605,571,518,182,4432,4425" template="catalog/product/home_slider.phtml" }}, and I need ...
3
votes
2answers
14k views

Magento2 contact form in CMS page

in magento 1.x for add contact form in CMS page i use next code {{block type="core/template" name="contactForm" form_action="{{store direct_url='contacts'}}/index/post" template="contacts/form.phtml"}...
2
votes
0answers
491 views

Magento 2.1 Enterprise Edition: CMS hierarchy nodes where page_id is NULL

I have noticed an odd issue with Magento 2.1 EE where we end up with hierarchy nodes as part of the Magento EE CMS hierarchy feature which do not relate to any page_id, see the attached screenshot ...
1
vote
2answers
3k views

Newly added Page not work only redirect to 404 Error Page

I added a new page in Magento 2 with url newpage but it return with 404 Not Found eror. I compared it to a working page and the setting
0
votes
1answer
966 views

Get specific / any CMS page title

I would like to retrieve a specific page name in my frontend phtml on magento v1.9.2.4. I have found many ways to retrieve 'current' page title, such as thoses questions posted on stackoverflow : ...
3
votes
2answers
1k views

CMS tree structure in Magento 2

We are looking for a method to build up the cms pages in Magento 2 with a tree structure so that you can set hierarchy. For Magento 1 you have several modules, but we didn't find anything for Magento ...
6
votes
3answers
1k views

How to include module's CSS in CMS pages with module block

I have prepared one module in which I have prepared two .phtml files and included css and js through module layout file. Now, I want to include those .phtml file in different blocks and pages. I have ...
4
votes
1answer
2k views

add to cart button in CMS page

In Magento2.1, I'm able to load a product in CMS page using: $objectManager = \Magento\Framework\App\ObjectManager::getInstance(); $product = $objectManager->get('Magento\Catalog\Model\Product')-&...
2
votes
1answer
374 views

Removing footer for selected CMS page?

I am developing an Ecommerce site and I want to remove the footer from selected CMS page. I have refered this link, which say to remove the footer from entire CMS pages, but I dont need to remove ...
4
votes
1answer
5k views

Magento 2 - How to add or insert PDF file in a CMS page?

Do you have an idea on how to add or insert a PDF file in a CMS page or CMS block in Magento 2? Correct me if I'm wrong for the question title for this thread.