A static block is a normal block of code enclosed in braces, { }, and preceded by the static keyword.
Questions tagged [static-block]
166 questions
0
votes
1 answer
Magento - How to add a widget in a variable in a static block
Hi everyone this may be silly, I want to know if it's possible to add a widget into a variable I made.
{{translate fr='' en=''}}
This is the variable. Quiet simple admin can translate static block with multiple language in only 1 static block and…

Sebastien B.
- 476
- 3
- 10
0
votes
1 answer
How to add categories to top navigation bar?
Please Click Here To My Website
In Magento Admin Panel, I try to create a new category on the top navigation bar, but when ever I add a new block is not displaying on the top. If you see:(They are actually are all in one static block)
Best…

Vinsin
- 61
- 1
- 6
0
votes
0 answers
Magento - move Categories block to top of sidebar (right)
I'm not too familiar with Magento, but i've done a lot with code before and modifying themes and plugins in Wordpress ... but i'm out of idea's on this one.
I'm want to get the block that display's the Categories on the top of its sidebar (right…

Menno van der Krift
- 303
- 1
- 3
- 15
0
votes
1 answer
Magento static block displaying html instead of element
Hello my boss bought a theme for magento called megatronics
Now I have followed the manual precisely, somehow I'm having problems with some of the static blocks. They are displaying just plain html code like this…

hashJuice
- 31
- 3
0
votes
1 answer
Magento: how to retrieve the content of a Category CMS Block from a CMS layout?
In magento one could define his own CMS Block for a Category.
Question:
I would like to be able to get the contents of the static block, defined for a category and use this block anywhere in my phtml layouts.
EDIT:
Approaching the problem from the…

Rubytastic
- 15,001
- 18
- 87
- 175
0
votes
1 answer
Magento Config variable in CMS Block with break lines
I'm wanting to use the store address within a CMS Block on a Magento website, however the problem is the line breaks are not formatted with the below:
{{config path="general/store_information/address"}}
Previously in the template we have…

Jonathan Garrett
- 115
- 1
- 1
- 10
0
votes
0 answers
Static Page on Category Main page to show sub categories ina grid with images
With the help of an online tutorial, I am trying to create a static block showing subcategories (Swing Seats ... Weathercovers ) in a grid on a main category page (Garden). I have copied and amended the Navigation.php into the local folder and also…

Techiescot
- 1
- 1
0
votes
1 answer
Getting Error : Exception in thread "main" while executing program for different loop conditions in static block
There is no problem in program execution if i am having loop condition as little value (i.e. 1000 or 10000) in static block, its working. the problem is in loop in static block for given code. whenever i am executing below code i am getting…

Prashant
- 2,556
- 2
- 20
- 26
0
votes
1 answer
Loading xml file from another project
I have written a java class with static block to read a xml in project A. Also i have added a dependency of project-A into B which needs data from xml. But when i try to read the xml using the readerclass in A, am getting an error saying the file…

sheikhisham
- 83
- 1
- 2
- 8
0
votes
2 answers
Magento shop static block with different content in shops
so as you read title, i need help with magento static block, my task is to make static block content different in 2 shops, if it's even possible? ty for answers.
P.S. Sorry for bad english.

STALKER Aurimas
- 3
- 1
0
votes
3 answers
Running a Static Block Without Instantiating a Class - Java
I have several child classes extending an abstract parent class. I want the parent class to have a static ArrayList holding instances of each child. If possible, I would like to be able to add more child classes without having to change the parent…

Camander
- 147
- 1
- 10
0
votes
0 answers
Magento: Block disappear when change language
I created a custom theme with my Magento Website, in my theme I have a slider and some other blocks but if I click and change language my homepage's blocks disappear and I don't know why, I had a look in the Configuration -> My language store and in…

valentina.a87
- 117
- 1
- 3
- 15
0
votes
1 answer
Magento : How to put already created static block after all product listing and end of the sidebar in magento?
I have 2 column left sidebar theme in magento. I have 3 static block already created. Now i want to display these blocks after all product listing and before footer. How can i do ?
I already tried out but these blocks are mixed up with new product.

technogupshup
- 23
- 1
- 5
0
votes
1 answer
Magento attribute show in dropdown menu
I have make different attribute in my webshop.
Now well a show only in my dropdown menu show the attribute model, brands and category.
It's possible, how?

Mike
- 1
- 1
0
votes
1 answer
How to log in the static block for a jar library
i have the following situation:
We have a common library (made by our organization) that have some class that is static (because for optimization have many records in memory) and it's deployed in the lib directory of the tomcat (to be accesed to…

Enrique San Martín
- 2,202
- 7
- 30
- 51