creating a custom home page in magento - landmann interactive

26
– Identify the parts of the page Creating a Custom Home Page in Magento by Eric Landmann, Landmann InterActive Prepared for the Midwest Magento Meetup 7/10/13 – Decisions about which parts to allow admin to update – See how the home page is built – Design and coding concepts

Upload: eric-landmann

Post on 06-May-2015

21.497 views

Category:

Technology


1 download

DESCRIPTION

Creating a custom home page in Magento. Slides from my presentation at the Midwest Magento Meetup, July 10, 2013. Topics covered include design decisions, CMS pages, blocks, XML layouts and layout updates, custom HTML blcok templates.

TRANSCRIPT

Page 1: Creating a custom home page in Magento - Landmann InterActive

– Identify the parts of the page

Creating aCustom Home Page

in Magento

by Eric Landmann, Landmann InterActive

Prepared for the Midwest Magento Meetup7/10/13

– Decisions about which parts to allow admin to update

– See how the home page is built

– Design and coding concepts

Page 2: Creating a custom home page in Magento - Landmann InterActive

– Every Magento home page is a custom CMS page

– Purchased templates come with some instruction

– Original design – you’re on your own!

– Any home page can be modified or enhanced

– Consists of these pieces:

Concepts

● A CMS page● Base template and html blocks● Custom theme html blocks and CSS● Commercial add-ons (slider)● CMS blocks● Layout and block updates that add more features

Page 3: Creating a custom home page in Magento - Landmann InterActive
Page 4: Creating a custom home page in Magento - Landmann InterActive

Structural Blocks Content Blocks

Concepts

Page 5: Creating a custom home page in Magento - Landmann InterActive

StructuralBlocks

Page 6: Creating a custom home page in Magento - Landmann InterActive

ContentBlocks

Page 7: Creating a custom home page in Magento - Landmann InterActive

– Who gets to update CMS pages and blocks(marketing, owner, devs)? Answers drive how the page is built.

Marketing takes ownership

– Which pieces do they get to update?No changes to header links allowedChanges to footer links are allowedChanges to slider images and links are allowedAdmin and marketing will change CMS blocks and slidersNo changes to design or background of CMS blocks allowedNo changes to tooltips allowed

– What is the process?Update dev site; approve; update live; then check it!This is with CE - no content staging

– Dev site/live site considerations.

– Is there/should there be a developer involved?After setup, not necessary with proper training and usage

Decisions

Page 8: Creating a custom home page in Magento - Landmann InterActive

Controlledby Admin

NotEditable

Page 9: Creating a custom home page in Magento - Landmann InterActive

CMS Page

Selects base page template

Page 10: Creating a custom home page in Magento - Landmann InterActive

CMS Page

Specifies custom block output template

Page 11: Creating a custom home page in Magento - Landmann InterActive

In CMS page<div>{{block type="core/template" template="cms/default/lookslidehome.phtml"}}</div>

Setting the output block

Page 12: Creating a custom home page in Magento - Landmann InterActive

Setting the output block

In CMS page<div>{{block type="core/template" template="cms/default/lookslidehome.phtml"}}</div>

Page 13: Creating a custom home page in Magento - Landmann InterActive

In a layout xml file (if the page is built differently)<!–– 7/20/12 ECL - Set the template to Lookbook ––><reference name="root"> <action method="setTemplate"><template>page/lookslidehome.phtml</template></action></reference>

Setting the output block

Page 14: Creating a custom home page in Magento - Landmann InterActive

Using page layout update xml (CMS–>Pages–>homepage–>Design–>Layout Update XML)

Alternatively... building the whole page

Page 15: Creating a custom home page in Magento - Landmann InterActive

CMS Blocks

Page 16: Creating a custom home page in Magento - Landmann InterActive

“Typical” slider features with addition of product hotspots

jQuery-powered (possible integration issues)

Easy-to-use admin

Lookbook Slider

Page 17: Creating a custom home page in Magento - Landmann InterActive

Lookbook Slider

Page 18: Creating a custom home page in Magento - Landmann InterActive

Lookbook Slider

Page 19: Creating a custom home page in Magento - Landmann InterActive

Lookbook Slider

Page 20: Creating a custom home page in Magento - Landmann InterActive

Lookbook Slider

Page 21: Creating a custom home page in Magento - Landmann InterActive

What could go wrong?

• jQuery conflicts with Prototype

• Admin enters invalid html, page goes screwy

• XML is wrong or invalid, it just doesn’t work

• CSS gets changed

• Process not followed to copy from dev to live

• Design fallback not followed, pieces are not loaded

Troubleshooting

Page 22: Creating a custom home page in Magento - Landmann InterActive

Troubleshooting

Page 23: Creating a custom home page in Magento - Landmann InterActive

CommerceBug

Page 24: Creating a custom home page in Magento - Landmann InterActive

Video Documentation

Documentation

Content Admin Guide

Page 25: Creating a custom home page in Magento - Landmann InterActive

Magento Docshttp://www.magentocommerce.com/design_guidehttp://www.magentocommerce.com/knowledge-base/entry/magentos-theme-heirarchyhttp://www.magentocommerce.com/knowledge-base/entry/creating-your-own-homepage

jQuery Novice to Ninjahttp://www.sitepoint.com/books/jquery1/code.php

CommerceBughttp://store.pulsestorm.net/products/commerce-bug-2#product_select

SitePointhttp://www.sitepoint.com/an-introduction-to-magento-themes/

MageBasehttp://magebase.com/category/magento-tutorials/

Lookbook Sliderhttp://shop.altima.net.au/altima-lookbook-professional.html

Live Sitehttp://www.shopsilvernest.com/

Resources

Page 26: Creating a custom home page in Magento - Landmann InterActive

by Eric Landmann, Landmann InterActive

[email protected]

Creating aCustom Home Page

in Magento