GithubHelp home page GithubHelp logo

ho_handles's Introduction

H&O Handles

This is a utility module that should make building Magento websites a bit easier.

Getting started with handles.

-- enter description here --

Add handles to category page

If you are viewing a category: /products/dvds.html (category id: 5)

You'll get a handle by default: CATEGORY_5

We add the following:

Handle: CATEGORY_2_child_child

Category 2 is the root category for this store, so allows for store specific configuration. If the category path is longer it will show something like CATEGORY_2_child_child_child

Handle: CATEGORY_2_child_dvds

This one is kinda cool, this one allows you have one layout for multiple childcategories. Imagine the following categories:

  • /playgroup/books.html
  • /kindergarten/books.html
  • /elementary/books.html

All these categories will have the CATEGORY_2_child_books handle, so you can all style them the same!

Handle: CATEGORY_3_child

Child of a certain category. If the category path is longer it will show something like CATEGORY_3_child_child.

Handle: CATEGORY_3_dvds

This one probably is kinda useless, but is the current category written in a different notation and the way the module works this one is currenlty automatically added.

Add category handle to product page.

The same as for the category applies, except everything is prefixed with PRODUCT_CATEGORY_.

Add attribute set handle to product page

PRODUCT_ATTRIBUTE_SET_default

For styling based on the attribute set handle.

Add handles to CMS page

If you have the page: customerservice/faq/question_one, you'll get the following handles:

CMS_PAGE_customerservice_child_child
CMS_PAGE_customerservice_faq_child
CMS_PAGE_customerservice_faq_question_one

ho_handles's People

Contributors

paales avatar

Watchers

Shay Zalman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.