Magento, how to change home page? - magento

I see that you can set a cms home page at "Default Pages" at admin panel (system/configuration/web) but I want a whole template including [html][head][body] tags to be shown, is this possible?
I can't do it via (CMS/Pages) as it deletes/modifies the code.. Even when I set it on "empty" don't really understand it..
Help would be much appreciated, cheers!

The file that you want is the layout file. If you need to add new layout of your home page then you can make a new layout file using following link
http://rakeshwebdev.wordpress.com/2014/02/13/add-new-custom-page-layout-in-magento-1-7/
Then after making layout while creating CMS Page go to layout section and choose your created layout. Then your home page will have what you want.
Note: By default header, footer all these are kept in different file and called from the 1column.phtml etc. So it will be always better to keep it that way only. As we always should follow Magento programming methodology.

Related

Magento layered navigation position

i bought one theme and i want to fix my layared navigation to work well.
I need help from which file i have to edit to fix my layered navigation to show after my menu.
First you should find correct template file,then override the template within your theme, then finally rearrange the code so that it displays beneath the vertical navigation. The following may (possibly) work for you. But I don't know what type of theme you are using.
go to your magento backend url, then go to system->configuration->developer then open the debug panel.
Change the current configuration scope to 'Main Website'. Upper left corner of config page.
This should add some items to the debug panel. Set template path hints to 'yes'.
go back to the website and find the phtml file that controls your nav.
copy the file into the theme your using using the same folder structure.
edit that code.
PS another solution may be available to alter the layout files of your site. they get overridden in a similar fashion to phtml files.

Home page block order

I would like to change the order of some blocks in our Magento environment.
I've opened nearly every layout XML, but I can't find what I am looking for.
Does anyone know where to start looking for the order of the blocks?
Anything front-end or design related is under app/design/frontend (for general site) and app/design/adminhtml for the admin panel.
The next folder you navigate to is the package you use, you can check this under the design tab of the system config of the admin panel. So for example if it is base, you go to the app/design/frontend/base
Next folder is the theme, you can check it in the design tab too. So assume it's the default theme it would be like app/design/frontend/base/default
Now go to the layout folder and find the .xml for the page you looking for. If its a product page it would be the app/design/frontend/base/default/layout/catalog.xml

magento; diasble blocks on product page

I have a slider on my home page. Thats correct but when I go to product page you see also the slider. Where can I turns this off?
I want it only on the home page.
Thanks!!
Use latest version of magento and the Magikshop theme from Themeforest.
First of all, have you installed the seperate extension for slider or it comes with your theme? If it was default provided by your theme.Then you can find the setting to configure the slider in
"System->configuration" in your admin panel.
Search for the banner or slider you may get the setting there to select which page you want to show the slider.
The setting may be different according to the slider.
If you have installed the extension yourself then you may find the banner/slider menu in the admin panel.
Hope this will help.
If the slider is a widget, you should be able to specify the pages that show a widget instance. The widgets that are in use can be found in the CMS section of the Magento Admin panel.
If the slider is a block you probably need to disable/remove/unset that block from your product detail page. To disable block on a particular page, you need to edit your layout Xml file. These files are most probably found in the following folder:
app/design/frontend/THEME/default/layout/
How to unset a block is described, e.g. here: Magento - remove block using update XML

Which template do you edit to change doctype in Magento checkout?

Which template do you edit to change doctype on the Magento checkout page?
I am trying to implement a design change using an alternative package/theme for mobiles using the Magento's HTML5, "iphone" template but I have been having problems with doctypes on certain pages.
The checkout is one such page. Try as I have I haven't been able find the template.
IT is driving me insane.
Any help appreciated.
Using Magento 17.0.2
Go to app/design/frontend/default/yourtheme/template/page folder, then edit the 1-column.phtml, 2columns-left.phtml, 2columns-right.phtml and 3 columns.phtml
First go to layout/checkout.xml. Copy that into your design if it's not already there so you can change the section that references template/page/1column.phtml as the template. Override that with your own file and in there you'll be able to set any doctype.
If you want to change the doctype globally, and not just on the checkout page, you can just edit your 1column.phtml.
As you make changes to these files go into the admin and clear your cache if you don't see the updates immediately.

How to have custom sidebar content per article in Joomla?

I'm in the process of porting an existing website to Joomla. Most pages of this website consist of a main content area and a sidebar containing additional items relating to the main content, such as (in-page) links, images, additional information, etc.
In Joomla, the main page content would probably be an article, but I'm not sure what would be the best way to create the sidebar content in Joomla.
Examples of pages-with-sidebar:
http://www.aikikan.nl/en_watisaikido
http://www.aikikan.nl/dojo?id=2
I'm creating a custom template for this website, so any solutions that require modifying the template are fine as well. What would be the best way to set this up?
Keep the content of each sidebar in an article and then assign it to a module by means of the article-as-module extension. You can then control the scope for each module (i.e. choose menu postions for which it will be shown) in the admin interface.
There is an extension called meta mod which is perfect for this sort of thing. It allows you to show modules based on any condition you can evaluate with PHP

Resources