Questions tagged [cms]
Denotes questions for the CMS section.
700
questions
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 ...
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('...
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 ...
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 ...
20
votes
5
answers
21k
views
Adding a CMS block via setup script
I am working on a site that has, I believe 9 separate Magento instances, same site.
Therefore there are strict procedures surrounding any back-end data - config and even for CMS blocks.
I would like ...
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 ...
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 ...
14
votes
2
answers
25k
views
Equivalent of the CMS Directive {{media url="..."}} in Normal Block Templates
What is the equivalent of {{media url="wysiwyg/image.jpg"}} which can be used in CMS pages if we want to use this in a normal .phtml file (of the type core/template)
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 ...
13
votes
2
answers
11k
views
CMS XML Handles for Layout Updates
I've had a few scenarios where I've tried to use the cms handles to update a cms page's layout. For example I was trying to use the cms_index_index handle referencing root and setting the page ...
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?
13
votes
2
answers
13k
views
Import/Export CMS Pages / CMS Blocks
Does anyone know any modules that can be used to import/export cms pages (and blocks) in CE?
The scenario I am looking at now is:
users (content editors) create pages/blocks with content on a ...
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 ...
10
votes
2
answers
696
views
CMS Preview without styles when using custom theme
I use magento EE 1.13.1.0 with custom theme which is set in System->Configuration->Design->Default.
The issue appears when we use Magento CMS Preview. It is displayed without custom theme styles, ...
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 ...
9
votes
4
answers
19k
views
Adding content block to the Home Page, removing 'std' <div>
I want to do a few things, and I am new and very very far from proficient with Magento; what I am asking for is the best, most concise way to do the following:
I would like to edit the content of my ...
9
votes
1
answer
1k
views
If Statements in CMS Page
This is what I am trying to do:
{{if var data.request_quote=="on"}} Yes {{else}} No {{/if}}
Where var data.request_quote is a form variable. It keeps coming out as No, even if data.request_quote is ...
9
votes
3
answers
16k
views
Magento 1.9.1.0 - Upload PDF File Type in Wysiwyg Editor and show PDF Icon
I made a custom module allowing user to upload .PDF file type in CMS > Pages. The code used is below:
app/etc/modules
<?xml version="1.0"?>
<config>
<modules>
<...
9
votes
1
answer
277
views
For a cms/block entity, why are the subordinate data deleted from cms_page_store explicitly?
cms/block entities have a join table cms_block_store, the records in which link a given block to one or more stores. Prior to CE 1.6, the resource model Mage_Cms_Model_Mysql4_Block (link) does not ...
9
votes
1
answer
971
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 ...
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 ...
8
votes
2
answers
392
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/
...
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 ...
8
votes
2
answers
16k
views
Custom template for static blocks in CMS page?
I searched the web and could not find how to do this.
I want to add a static block that I have created in admin before to a cms-page. This works using either of this lines:
{{block type="cms/block" ...
8
votes
2
answers
6k
views
Why some html tags in not saving in cms pages?
I am trying to put some html in my home page but whenever I save the page the tags are gone, it doesn't save.
Here is the html which I am trying to save in the page ie.
<section class="bottom_sec"...
7
votes
4
answers
2k
views
Magento EE 1.13 catalog routing
UPDATE
Below is the original question, and while it's related to what the issue ends up being, it's tangential. Please see the edits starting with number 2 for more useful background information
On ...
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.
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 ...
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 ...
7
votes
1
answer
3k
views
make changes in page content before load in magento
I want to make changes in cms page's content dynamically before page load on front-end.
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 ...
7
votes
2
answers
6k
views
Using variables within CMS Static Blocks with {{depend}}
I have used the {{depend}} template functionality before using email templates and I am wondering if this is possible within CMS Static Blocks, for example:
<a href="{{store url='customer/account'}...
6
votes
4
answers
13k
views
Home page results in 404 after upgrade
We recently upgraded from 1.10 to 1.13 and are having some problems with our home page. All other cms pages are functioning properly, but the home page is consistently returning a cms 404. It doesn'...
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 ...
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.
6
votes
3
answers
18k
views
There was no Home CMS page configured or found
I already look online and still can't solve this problem, I have to do this my self because my developer is on a vacation.
This is my website: http://www.trenpon.com/
The website home page was ...
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 ...
6
votes
1
answer
2k
views
Getting at variables from CMS block insertions
Magento 1.9
I am trying to add a form several times onto a CMS page with code similar to:
{{block type="core/template" template="page/html/jobappform.phtml"}}
But I want to pass a variable thru to ...
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="...
6
votes
2
answers
2k
views
Using EE CMS Hierarchy in a custom theme
I can't seem to find an example of how to use the Enterprise Edition CMS Hierarchy functionality within my theme. The admin interface is simple enough, but its useless if I can't access that ...
6
votes
1
answer
2k
views
How to display a phtml in a backend custom menu
I've created a new menu on the backend, called "X" with an item called "Y". When I click on this item, it appears nowhere because I don't know how to display it. Let me show you what I have done.
In ...
6
votes
3
answers
2k
views
How to list featured products in the homepage in Magento 1.9 CE
Im trying to achieve what I though it would be a simple task, of adding a list of manually selected products, to be presented as a featured collection of products.
Tried several options, using custom ...
6
votes
2
answers
3k
views
Magento2: How to add separate css file on each cms page?
Is it possible to add individual CSS file on each cms page? Upon researching, I can do it by adding code on Layout update XML.
Unfortunately, it isn't working. Here's my code:
<head>
<...
6
votes
0
answers
1k
views
Magento 2 editor.js Unexpected Token
The content editor in the backend is not displaying on my site.
I'm getting the following error:
editor_template.js:1 Uncaught SyntaxError: Unexpected token <
editor_plugin.js:1 Uncaught ...
6
votes
0
answers
2k
views
Paging on CMS page with product list not working correctly [closed]
I have created a cms page
www.mysite.com/page
with the following code in the layout update XML, as mentioned in loads of sites on the net
<reference name="content">
<block type="catalog/...
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 ...
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 ...
5
votes
4
answers
14k
views
Magento Limit number of products displayed in grid on homepage
I am using Magento 1.7.0.2 with shopper theme. I want to limit the number of products to 4 for each category displayed on the homepage. I have duplicated list.phtml and created three different list ...
5
votes
2
answers
14k
views
How I can get secure url (https) of CMS page using url_key?
I have enable SSL and one of CMS is restricted for register users.
And this page is in footer.
If logged in user try to access without https it fails and redirect to my account.
I want that ...
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 ...