Questions tagged [cms]

Denotes questions for the CMS section.

Filter by
Sorted by
Tagged with
15 votes
3 answers
21k views

How to add a CMS block programmatically in Magento 2?

I need to add a CMS block via an install/upgrade script. I've already figured out how to add "normal" CMS pages as seen in the script below. But since I can't find any way to add CMS blocks in Magento ...
user avatar
7 votes
3 answers
10k views

Four Random Products on Homepage

I'm trying to get 4 random products on the homepage using PHP within a TPL file I've created. I'd like to be able to format the products in a foreach loop as I'm using some formatting in the code seen ...
Brian Schroeter's user avatar
8 votes
2 answers
7k views

layered navigation isn't populated by collection attributes -- CMS page

I'm attempting to add layered navigation to a CMS page containing a widget that contains a custom product collection (products that are 'new'). Within this widget are fuctions that, given the correct ...
easymoden00b's user avatar
  • 1,277
4 votes
5 answers
22k views

Magento 2 - upload SVG files

how can I upload SVG files(icons for example) to my cms Page. If I try to upload them by using "insert image" and upload them to my media storage I always get "Disallowed file type"? Is there any ...
TrytoFly's user avatar
  • 624
23 votes
1 answer
39k views

Show products on homepage magento 1.9

Just installed magento 1.9 and have fallen on the first hurdle. I've created a product and have used suggestions from previous versions to display the product on the homepage but am getting the ...
rufus's user avatar
  • 233
7 votes
4 answers
8k 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.
Carloscody's user avatar
6 votes
7 answers
16k views

Adding CSS to a CMS page using Layout Update XML

I need to add a specific CSS file to a CMS page using Magento 2. I am wanting to achieve this by using the Layout Update XML area in the admin. However, I cannot figure out or find any working ...
Gary's user avatar
  • 151
1 vote
3 answers
22k views

Magento get store url in cms page

I want to get the store URL in cms page when I tried this {{store url='abc/efg/xxx/yyyy'}} It does not return the given URL. Its give output like this http://domain.com but I need to get like ...
MeenakshiSundaram R's user avatar
25 votes
4 answers
22k views

how to create multilingual static block

I need to create multilingual static block. So far I have created static block with id 'delivery_returns'. I'm calling it in catalog\product\view.phtml like this: $deliveryBlock = Mage::getModel('...
ruuter's user avatar
  • 1,049
4 votes
1 answer
9k views

Product list by category in CMS page

I have 5 stores, each store with 3 categories. Every store has it's own CMS page. I want to show the products of a given category of those 3 categories in store's CMS page (e.g. categories 12, 13, 27,...
Carlos Eduardo Santos's user avatar
21 votes
3 answers
17k views

CMS blocks disappeared after 1.9.2.2 update

Last night my backend was auto updated to 1.9.2.2 release. Today all my static block on CMS pages have disappeared. They wereconfigured for all store views and I tried each of the views and they are ...
Ying's user avatar
  • 433
15 votes
4 answers
4k views

CMS block caching issue in EE 1.14.2

I have an issue that seems to be related to the caching of CMS static blocks. I have a cms page and within that page I am rendering a number of cms static blocks. A simplified version of the CMS ...
Andrew Kett's user avatar
  • 3,478
13 votes
5 answers
23k views

Magento 2 - How to create FAQ page with accordion

I want to create a FAQ page with the Accordion widget (http://devdocs.magento.com/guides/v2.0/javascript-dev-guide/widgets/widget_accordion.html). Is it possible to use it on a CMS page?
ClassMP's user avatar
  • 1,793
11 votes
2 answers
6k views

Magento 1 Widget setup in backend - how do I move upwards

I have a widget setup on all category pages via backend -> CMS - > Widgets Now when I use this method I select a block for category pages and the block shows up nicely. It is at the bottom of all ...
snh_nl's user avatar
  • 5,412
7 votes
1 answer
10k views

Adding custom fields in the cms - Magento

I am new to Magento and I have some static pages that I am trying to integrate into the CMS. I have been looking for days for a way to add custom fields to the CMS in a similar way to how Wordpress ...
fnk's user avatar
  • 175
6 votes
3 answers
20k views

Where Do I Put a Template To Add Using {{block type="core/template" template="template.phtml"}}

I am new to Magento and so sorry for the noddy question. I am trying to add php to a CMS page and the way to do this appears to be to put the php (including Mage calls) to a phtml template and then ...
Norman_SK's user avatar
6 votes
6 answers
38k views

Magento contact form in CMS page

I'm new in magento and I wonder how to create a form in a CMS page and receive the information by email. I did some research on the internet but I did not find explicit answers.
djodev's user avatar
  • 71
4 votes
2 answers
2k views

Add new custom CMS template directive {{cdnmedia}}

I want to add a new CMS directive to render CDN media URL's just like the media directive: {{media url="wysiwyg/image.jpg"}} Will result in http://www.example.com/media/wysiwyg/image.jpg Now I have ...
7ochem's user avatar
  • 7,502
4 votes
4 answers
6k views

Add Content before footer

I am using magento 1.9.2.2 version. I want to add content from custom module before footer (after all page content) without change any core file and theme files ( .phtml ) .
Chirag Rajput's user avatar
4 votes
2 answers
6k views

Magento 2 - How to add Attribute for cms_page?

I knew how to add attributes for product entity: $eavSetup->addAttribute( \Magento\Catalog\Model\Product::ENTITY, 'period_date_start',/* Custom Attribute Code */ ...
MrTo-Kane's user avatar
  • 3,656
4 votes
3 answers
29k views

Add a javascript to any cms page magento

I would really like to use this on a single cms page in magento. For some reason it will not show the content. page with script <script type="text/javascript" src="http://code.jquery.com/jquery-1....
user5836's user avatar
  • 121
4 votes
4 answers
5k views

CMS Block Cache issue with included dynamic template

I've seen lots of issues with CMS block caching in Magento 1.9.2.0 and have an issue where I've created a static block that loads the current category ID and then displays variables that have a ...
Duncan Wardlaw's user avatar
3 votes
1 answer
5k views

How to add custom error pages in Magento 2?

I'm having a problem since I'm new to Magento. how can I create a custom error pages in my Magento 2 site? For example these pages: 500, 401, 403, and 404. I hope someone can help me. Thanks
MazeStricks's user avatar
  • 1,235
1 vote
1 answer
841 views

How to Show Static CMS block in Magento 2 html file?

I want to Show Static CMS block in Magento 2 html file.
Prits's user avatar
  • 626
1 vote
1 answer
8k views

Get New Products List from specific Category with Widget in CMS

Is there any way to get New Products List from specific Category with Widget in CMS Pages? I have tried specifying category ID using category_id="12" but it is pulling latest products from all the ...
Kevin S's user avatar
  • 169
1 vote
1 answer
260 views

Showing certain product price on an cms page

So I am trying to show a certain products price on an cms page. Is there anyway that I can do this? I have a hardcoded landing cms page and I wanted to display dynamically a price of a certain ...
DevAnd's user avatar
  • 516
0 votes
2 answers
3k 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.
Pukhraj Suthar's user avatar
0 votes
2 answers
5k views

How do I show sub-categories as images for a specified category?

I'd like to be able to show sub-categories as images for specific categories (cms pages / cms blocks). I do not want categories to appear that do not have images. I have figured out how to put the ...
SR_Magento's user avatar
  • 5,209
27 votes
6 answers
125k views

Add static cms block in home page

I have read different tuts about this and some say it all can be done from the admin panel, others say I have to add code in my layout and in the template files. Well, nothing works... I created the ...
Syspect's user avatar
  • 1,283
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 ...
Rich D's user avatar
  • 143
9 votes
2 answers
40k views

Why do we have to use "store" for links in CMS like <a href="{{store url='home'}}">home</a>

To insert links in the CMS, we use this code: <a href="{{store url='home'}}">home</a> What is this "store" keyword doing and why is it called "store"? And are there any other keywords ...
MageDev's user avatar
  • 627
8 votes
1 answer
4k views

Remove Title suffix from home page only

I have give Title suffix in magento system configuration like | Magento site. So this 'll add Title to every page in the store as suffix. But when i goto home page title shows like Home | Magento ...
MeenakshiSundaram R's user avatar
7 votes
3 answers
19k views

Execute PHP code in CMS page

I'm new working with Magento, and I was wondering if there's any way I can create a CMS page that uses PHP code. I mean,the page I need to create is something like an About Us, with a short ...
Sebastian's user avatar
  • 173
6 votes
1 answer
20k views

Magento include phtml file within another phtml file

I am making a custom home page for my magento website in a phtml file named home_banner.phtml, which in turn i have referenced in the CMS->Pages->Home Page content by the following code {{block type="...
Saptarsi Bhowmick's user avatar
5 votes
4 answers
26k views

Forgot username and password after installing magento cms on my local server xampp

I've forgot my admin username and password. what should i do, please help. when i click forgot password. and after enter email address. I've not get email on my gmail account, because of magento is ...
nadzhq's user avatar
  • 63
5 votes
2 answers
7k views

Add Owl Carousel to Homepage in Magento CE 1.9

I was able to locally create the carousel but now sure how to implement this into Magento. I have my CSS, Js and Images. Images are in Magento already but not sure where to put the CSS and Js files. ...
user3883744's user avatar
5 votes
4 answers
25k views

Include phtml in magento CMS

I'm trying to make different page where i need PHP. thats why i use a phtml file. I don't want to make any changes to the other Magento layouts so I just want to include the phtml file via the CMS. I'...
Tim's user avatar
  • 53
5 votes
2 answers
10k views

How to create a new page without using CMS?

Is there any way to create a new custom web page without using the Magento CMS Admin panel? I'd like to create a new web page (let's say newsletter) using the 1 column layout. But I would like to ...
Mariton's user avatar
  • 151
5 votes
2 answers
17k views

How do I modify Magento rendered page before it's displayed?

I am trying to modify the rendered page content before it's displayed to the user. I would like to do this in my custom module. So far, I have tried hooking into the cms_page_render event but: it ...
Aamir's user avatar
  • 153
5 votes
3 answers
11k views

Removing Header and Footer from CMS page

is it possible to remove both the header and footer and only display the contents of a CMS page? If so, how? Currently the html looks something like this by default: <body class=" cms-page-view ...
hownowbrowncow's user avatar
3 votes
1 answer
4k views

Recently viewed widget display nothing - Magento 2.0.8

I installed Magento 2.0.8 without sample data. When I insert the widget in the static block, it does not show any recently viewed product in home page(after sign in). why it is not work in cms ...
Bilal Usean's user avatar
  • 9,907
3 votes
4 answers
2k views

WYSIWYG editor inserting &quot; instead of correct " in 2.3.0 when we use any anchor tags

I am facing an issue with Magento 2.3.0+ WYSIWYG editor inserting " instead of correct " and also when we write like <a href="{{store_url}}sales/guest/form/">Orders and Returns</a> ...
gajjala sandeep's user avatar
3 votes
1 answer
6k views

Magento admin panel gives 404 when trying to enter cms pages

Magento admin display "404 error: Page not found." when I'm trying to enter CMS/Pages in the navigation. All other pages work great and even other items in CMS menu, only Pages gives 404. What should ...
Jarnail S's user avatar
  • 4,687
3 votes
1 answer
7k views

How to add custom fields to magento cms page's Page Information tab?

I need to add some extra field to "Page Information" tab in cms->pages. How can i add custom fields from getDefaultEntities() function of my Setup.php file.Can anyone help me ?
Anu's user avatar
  • 420
3 votes
2 answers
656 views

Where is the code for "{{store url="example/example"}}

I would like to know how Magento converts {{store url="example/example"}} into http://www.example.com/example/example/
Goose84's user avatar
  • 2,559
2 votes
2 answers
5k views

How to add other pages to search results besides just products

Does anyone have any idea where I would start regarding having CMS pages show up in search results, not just products on the front end? I know you can do a redirect with a keyword, but I don't want to ...
CaitlinHavener's user avatar
2 votes
1 answer
2k views

Integrate WYSIWYG TinyMCE in Admin Custom Module and Contact Us / CMS Page

I followed this blog to add WYSIWYG editor (TinyMCE) in my custom Admin Magento Module. I can see it in my backend, but the issue is when I click on Insert Image, Insert Variable or Insert Widget, it ...
Mark's user avatar
  • 529
2 votes
3 answers
7k views

How to check whether a block exist ( based on its type )

This really confuses me !! I came to a situation, where I need to create a new block (core/template block) programmatically, if there is CMS Block present in a page layout. In general case, according ...
Rajeev K Tomy's user avatar
2 votes
1 answer
719 views

Magento 2 : How can I add customer dashboard navigation programatically

Let's talk abstract: I have a certain parameter which determines wether or not the customer account dashboard navigation should be shown on a page or not. My CMS page has the layout '2 columns left' ...
Giel Berkers's user avatar
  • 12.2k
2 votes
2 answers
3k views

Show products with specific attribute on cms page

I have a question about a specific product collection on a cms page I have an amount X of products which have an attribute A which is set to true. Now I want to have a cms page with some content and ...
Klettseb's user avatar
  • 3,572