Giter VIP home page Giter VIP logo

nicer-image-names's Introduction

Nicer Image Names

Build the image file names from product attributes so they have neat descriptive image names.

Facts

Description

This small extension builds the image file names from product attributes, allowing Customers saving images then always have neat descriptive image names, and you don't have to do the work before uploading them.

It also can automatically generate ALT and TITLE tag content for images where its not explicitly set.

The way image names are built can be specified in the configuration under System - Configuration - Catalog - Nicer Image Names [Netzarbeiter Extension]

It works like this example map:

  netzarbeiter.de-%manufacturer-%sku

The %manufacturer will be replaced with the products manufacturer, the %sku with the products sku. You can use any attribute that returns a scalar value (string, integer, float, boolean).

Simply prefix the attribute code with a %

All other parts of the map will be left just like they are. If you want to add an attribute with an underscore in the attribute_code (e.g. short_description), you have to capitalize the character after the underscore and remove the _ characters. e.g: short_description becomes shortDescription.

If you have an attribute codes that match another attribute completely, for example %text and %textColor, you might end up with the module always only parsing %text only.
In that case you can use %{textColor} to enforce the full attribute code to be used.

If product images are displayed in your skin's product listing then you will need to set the property "Used in product listing" to "Yes" under Catalog - Attributes - Manage Attributes for any attributes used.

In addition to product attributes you can also use %requestHost to specify the domain name of the current request.

Here is an example image name template string: %requestHost-%urlKey%manufacturer-%sku

Compatibility

  • Magento >= 1.1

Installation Instructions

  1. Install the extension by copying all the files from the repository to the appropriate folders.
  2. Clear the cache, logout from the admin panel and then login again.
  3. Configure and activate the extension under System - Configurataion - Catalog - Nicer Image Names

Support

If you have any issues with this extension, open an issue on GitHub (see URL above)

Contribution

Any contributions are highly appreciated. The best way to contribute code is to open a pull request on GitHub.

Developer

Vinai Kopp http://www.netzarbeiter.com @VinaiKopp

Licence

OSL - Open Software Licence 3.0

Copyright

(c) 2014 Vinai Kopp

nicer-image-names's People

Contributors

vinai avatar mikemanger avatar mpchadwick avatar kukovskyi avatar

Watchers

James Cloos avatar Bryan "BJ" Hoffpauir 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.