adding slider in magento to cms page - magento

{{block type="bannerslider/default" name="bannerslider.bannerslider" template="bannerslider/bannerslider.phtml" bannerslider_id="your_bannerslider_id"}}
I am trying to add a slider using the above code, to a cms page in Magento.
My banner id is called mySlider, so have done:
{{block type="bannerslider/default" name="bannerslider.bannerslider" template="bannerslider/bannerslider.phtml" bannerslider_id="mySlider"}}
Nothing shows.
I saw that someone recommended setting each banner to the day before it was creating but that didn't work either.

You should copy module files to your current template files. So that you have bannerslider/bannerslider.phtml in your templates folder.
Also look if slider is active and with slider content.

You should use the banner ID which is the number in the first column in the admin panel (under the section for managing the slider). What you are using now is simply the title.

Related

Magento layout block

i changed the images directly in the coding of the home page in the panel
and now its showing on the home page only before doing this it was showing on every product page any help will be appreciated.
Home Page - Screenshot
Product page - Screenshot
I think in homepage you have used 2columns-left layout and for product detail page 2columns-right layout, so you have to check into both layout's phtml file and check if anything(e.g. cms-block) missing for product detail page.
I think this is cms block which are calling on different positions first find block id for this and from admin disabled that block if you want to remove it thanks

How to create sub pages in magento?

I am working on Magento. I want to create a sub pages of cms page and sub pages will be shown in sidebar Let me know how can I do this?
I want sub pages as given in screen-shot:- http://awesomescreenshot.com/09c5rfnr41
I would like to inform you that hierarchy feature is not available in Magento Community version.
But I feel that you can achieve your requirement by using this extension https://www.magentocommerce.com/magento-connect/page-summary-block.html
Thanks!
Follow these steps:
Login to admin and navigate to CMS -> Pages.
Create new page.
Add URL Key as main-url/sub-url for example if your main page url is aboutus then sub page will be look like aboutus/aboutus-sub
To add those links to left sidebar, you should create phtml file in your theme template folder and call that phtml file from appropriate xml file.
<reference name="left">

Magento: Update several pages with a different tracking code

I have to put some Tracking code on several pages: some category pages, homepage, cart and success page. Whats the best way to accomplish that?
I thought:
homepage --> place the code in CMS -> pages -> home
success --> edit the success.phtml
cart --> edit the cart.phtml
categories -> create a CMS block --> place layout update in the concerning category page to load CMS block
But it looks like it is just a mess because for every code I have another solution. What would you suggest to get it done? Did I miss a better solution?
Thank you,
Hannes
If it's the same tracking code for each one, you could
Create a .phtml file containing the code
Add the file to the relevant hard pages (success, cart) using your layout xml files
Add the file to the relevant soft pages (home, categories) using the custom design tab / custom layout update area.
If the code changes based on the page, then you may need to create a new module with a block that alters the tracking code according to a parameter you include in the layout.
You can include a tracking script using the available Magento configurations fields.
Go to System > Configuration > Design
Under the HTML Head section, insert your tracking script into the Miscellaneous Scripts field.
Save Config, and clear your Magento caches.
Alternatively if you want it in the Footer instead, look under the Footer section and use the Miscellaneous HTML box there.

I change the footer on Magento, but it only apply to the homepage

I am using Magento, I change the footer by click "CMS/Static Blocks/Footer Links", but this change only apply to the home page, how do I make this change apply to the whole website?
Your homepage can youse one layout, and all of other pages can use different layout. For example: homepage has 1-column, and other pages - 2columns-left. First - go to CMS->pages->homepage. Open design tab and check, wich layout use your homepage. Second, in design tab, in xml-update can be overrided a homepage template. So you will code only home page template, and it will no affect other pages. If so - figure out, wich template is used on other pages (f.e. 2-columns-left.phtml), and change it too.

How to edit magento home page via code?

Hello I'm trying to edit home page
http://www.kreatifyazilim.com/magento/
For example I want to write code on the middle part of the page, ( banner )
The dropdown boxes you can see on demo must be included in banner side.
Go to Magento admin->CMS->Pages
Select Home Page
In Content Tab, add your dropdown
Create a new template (home.phtml).
(make a copy of design/frontend/base/default/template/page/1column.phtml).
And choose this template in the CMS Page design layout.
You can freely edit the complete template (PHP+HTML)

Resources